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."
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The id of the donor
Donor ID and card details are required
The body is of type object
.
Card details updated successfully
The response is of type object
.
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."
}