curl --request POST \
--url https://api.helpyousponsor.com/v1/client/credit-card \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"token": "tok_1J2F3G4H5I6J",
"cardHolderName": "John Doe"
}'
{
"message": "Card saved successfully.",
"alert": "success"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Credit card token is required
The body is of type object
.
Successful operation
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/client/credit-card \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"token": "tok_1J2F3G4H5I6J",
"cardHolderName": "John Doe"
}'
{
"message": "Card saved successfully.",
"alert": "success"
}