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": "[email protected]"
}
'{
"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
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": "[email protected]"
}
'{
"message": "Paypal email updated",
"status": "success"
}