Cards
The Cards API allows managing customer card information within your Rebill account. You can store multiple cards on a customer in order to charge subscriptions and one-time payments. Create and retrieve cards using these endpoints.
GET/v2/cards/{email}/cards
List cards by customer email
This endpoint allows you to retrieve a list of all cards associated to a customer by customer email.
Required Path Parameters
email
string
required
Loading...
Response
{
"has_more": false,
"data": [
{
"id": "a55248f7-a01f-xx-af40-xxxxxxxx",
"bin": 45179,
"last4": "0033",
"cardNumber": "530371bx_f3768799b0c740aa91ba876cfcafd376_bx8783",
"cardHolder": "John Doe",
"brand": "Visa",
"expiration": {
"month": 11,
"year": "2022"
},
"gatewayCards": {
"gatewayCardId": "a70d53ab-xx-4a6f-b2c1-xxxxxxxx",
"gatewayId": "xx-c5fc-450e-9192-xx",
"child": "OperationalGatewayCard"
}
}
]
}
POST/v2/cards/{customer_id}/card
Create a card
This endpoint allows you to add a new card to your customer in Rebill. To add a card, you must provide their Rebill customer ID, card number, card holder name, security code, and expiration data. Use only if you are PCI compliant. If not, you can use our SDK for safely storing card information.
Required Path Parameters
customerId
string
Required Body Parameters
cardNumber
string
cardHolder
object
securityCode
string
expiration
object
Loading...
Response
{
"id": "cc6b0134-996b-4106-b23d-e963b945d996"
}