curl --request POST \
--url https://api.helpyousponsor.com/v1/donor/{donor_id}/paypal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"paypal_email": "donor@example.com"
}'
{
"message": "Paypal email updated",
"status": "success"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The id of the donor
PayPal email is required
The body is of type object
.
Success
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/donor/{donor_id}/paypal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"paypal_email": "donor@example.com"
}'
{
"message": "Paypal email updated",
"status": "success"
}