The “add card” API endpoint allows users to add a new payment card to their account. This API requires the user ID and the details of the new card, including the card type, name on card, card number, CVC, and expiry date. Once the request is successful, the new card will be added to the user’s account and can be used for future transactions.
Endpoint #
The Voomerr Add Cards endpoint is POST https://admin.voomerr.com/api/add_card.php
Request Parameters #
Parameter | Required | Description |
---|---|---|
user_id | Yes | The user ID for which the card is being added. |
card_type | Yes | The type of card being added (Visa, Mastercard, etc.). |
name_on_card | Yes | The name of the cardholder. |
card_number | Yes | The card number. |
cvc | Yes | The card’s security code. |
expiry | Yes | The card’s expiration date in MM/YY format (e.g. 05/24). |
Response Parameters #
Parameter | Description |
---|---|
success | A boolean value indicating whether the card was successfully added. |
message | A message describing the result of the operation. If the operation was successful, this will be “Card added.” |
Example Request #
bash
POST https://admin.voomerr.com/api/add_card.php
Content-Type: application/json
{
"user_id": "123",
"card_type": "Visa",
"name_on_card": "John Doe",
"card_number": "4111111111111111",
"cvc": "123",
"expiry": "05/24"
}
Example Response #
json
{
"success": true,
"message": "Card added."
}