POST
/
client
/
credit-card
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Credit card token is required
token
string
Example:

"tok_1J2F3G4H5I6J"

cardHolderName
string
Example:

"John Doe"

Response

200
application/json
Successful operation
message
string
Example:

"Card saved successfully."

alert
string

Alert type

Example:

"success"