Get Cards

This API provided by Voomerr allows users to retrieve a list of cards associated with their account. It requires the user_id parameter to be passed in the API call. Once the API is called with the necessary parameter, it will return a list of cards associated with the user’s account.

Endpoint #

The Voomerr Get Cards endpoint is POST https://admin.voomerr.com/api/get_cards.php

Parameters #

Parameter Required Description
user_id Yes The unique identifier of the user whose cards need to be retrieved.

Response #

The response of the Get Cards API will be in JSON format and will contain an array of card details associated with the user’s account. Each card object will have the following properties:

Property Type Description
card_id String The unique identifier of the card.
card_number String The last 4 digits of the card number.
card_type String The type of the card (e.g., Visa, Mastercard).
expiration_date String The expiration date of the card in MM/YYYY format.
is_default Integer Indicates whether the card is set as the user’s default payment method (0 for false, 1 for true).

Example Request #

json
POST https://admin.voomerr.com/api/get_cards.php
{
"user_id": "1234567890"
}

Example Response #

json
{
"status": 1,
"message": "Cards retrieved successfully",
"data": [
{
"card_id": "1234",
"card_number": "xxxx xxxx xxxx 1234",
"card_type": "Visa",
"expiration_date": "12/2024",
"is_default": 1
},
{
"card_id": "5678",
"card_number": "xxxx xxxx xxxx 5678",
"card_type": "Mastercard",
"expiration_date": "10/2025",
"is_default": 0
}
]
}

Powered by BetterDocs