POST
/
admin
/
donor-credit-card
/
{donor_id}
curl --request POST \
  --url https://api.helpyousponsor.com/v1/admin/donor-credit-card/{donor_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cardHolderName": "John Doe",
  "firstName": "John",
  "lastName": "Doe",
  "token": "tok_ODONGNndknfkn2452"
}'
{
  "message": "Credit Card Successfully Updated."
}

Authorizations

Authorization
string
header
required

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

Path Parameters

donor_id
integer
required

The id of the donor

Body

application/json
Donor ID and card details are required
cardHolderName
string
Example:

"John Doe"

firstName
string
Example:

"John"

lastName
string
Example:

"Doe"

token
string
Example:

"tok_ODONGNndknfkn2452"

Response

200
application/json
Card details updated successfully
message
string
Example:

"Credit Card Successfully Updated."