POST
/
donor
/
{donor_id}
/
paypal
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"
}

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
PayPal email is required
paypal_email
string
Example:

"donor@example.com"

Response

200
application/json
Success
message
string
Example:

"Paypal email updated"

status
string
Example:

"success"