Skip to main content

Cards

Cards​

The API allow you to create, update and delete bank cards. you can also retrieve a single card or list of cards.

endpoints​

POST /v1/cards/
GET /v1/cards/:id
POST /v1/cards/:id
GET /v1/cards
DELETE /v1/cards/:id

add card​

Parameters:

ParameterTypeinRequiredDescription
customerstringbodyNocustomer id see customer object for more information
cardNumberstringbodyNocard number
expMonthstringbodyNocard exp month
expYearstringbodyNocard exp year
cvcstringbodyNocard cvc

test cards​

Genuine card information cannot be used in test mode. Instead, use any of the following test card numbers, a valid expiration date in the future, and any random CVC number, to create a successful payment.

NumberBrandCountryCVCDate
4242 4242 4242 4242VisaUnited States (US)Any 3 digitsAny future date
4000056655665556Visa(debit)United States (US)Any 3 digitsAny future date
5555555555554444MasterCardUnited States (US)Any 3 digitsAny future date
5200828282828210MasterCard(debit)United States (US)Any 3 digitsAny future date
378282246310005American ExpressUnited States (US)Any 3 digitsAny future date
6011111111111117DiscoverUnited States (US)Any 3 digitsAny future date
4000001240000000VisaCanada (CA)Any 3 digitsAny future date
4000000760000002VisaBrazil (BR)Any 3 digitsAny future date

create card​

POST /v1/cards/

i.e

note

if you dont' have a customer id , then just pass cards info a new customer will be created and you will get a customer id back.

{
"cardNumber":"4242424242424242",
"expMonth":"8",
"expYear:"23",
"cvc":"567"
}

get card​

GET /v1/cards/:id

this will return a single card object

get all cards​

GET /v1/cards
note

customer id required , this end point will return all cards of a customer

set default card​

delete card​