Skip to main content

Add Card for an existing Customer

Endpoint for adding a Card for an existing Customer.

info

Please be aware that this endpoint requires a Manage Customers API Key.

POST /api/v1/groups/{group_id}/revere_pay/{linked_account_id}/customers/{customer_id}/payment_methods/card

Request Parameters​

NameDescriptionTypeRequired
tokenCard token generated with Reverepay Tokenizer.stringRequired
billing_addressBilling address of the Customer.objectRequired
billing_address.cityCity of the Customer. Maximum 24 characters.stringRequired
billing_address.companyCompany Name of the Customer.string
billing_address.countryCountry of the Customer. Exactly 2 characters (ISO code).stringRequired
billing_address.line_1First Address line of the Customer. Maximum 60 characters.stringRequired
billing_address.line_2Second Address line of the Customer. Maximum 32 characters.string
billing_address.postal_codePostal Code of the Customer. Between 1 and 10 characters (must be exactly 5 for US). Single space and hyphen are allowed. Must start and end with number or letter.stringRequired
billing_address.subdivisionSubdivision of the Customer. 2 or 3 characters (depends on country).stringRequired

Response​

CodeDescription
200Success
400Bad Request / Validation error
500Internal Error

Example Usage​

add_card.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');

var requestOptions = {
	method: 'POST',
	headers: headers,
	redirect: 'follow',
	body: {
		// request body data
	}
};
const group_id = '';
const linked_account_id = '';
const customer_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/revere_pay/${linked_account_id}/customers/${customer_id}/payment_methods/card`;
fetch(url, requestOptions)
	.then((response) => response.text())
	.then((result) => console.log(result))
	.catch((error) => console.log('error', error));

Example Request​

{
	"token": "25f8fa96-5c96-4448-994c-c2b7281ed263",
	"billing_address": {
		"line_1": "742 Evergreen Terrace",
		"line_2": "Apt 5B",
		"city": "Springfield",
		"subdivision": "IL",
		"postal_code": "62704",
		"country": "US"
	}
}

Example Success Response​

{
	"card_id": "7aef4024-045b-4901-a5cc-b9a54ea19bb1",
	"first_six": "411111",
	"last_four": "1111",
	"expiration": "11/29",
	"brand": "Visa",
	"card_type": "debit",
	"card_category": "PERSONAL",
	"holder_name": "John Doe",
	"billing_address": {
		"line_1": "742 Evergreen Terrace",
		"line_2": "Apt 5B",
		"city": "Springfield",
		"subdivision": "IL",
		"postal_code": "62704",
		"country": "US"
	},
	"issuer": "Visa Sandbox",
	"issuer_country": "US",
	"regulated": true,
	"commercial": false,
	"card_on_file": true,
	"created_at": "2026-07-21T12:43:14.964535Z",
	"updated_at": "2026-07-21T12:43:14.964535Z"
}