curl --request POST \
--url https://app.pennylane.com/api/external/v2/gocardless_mandates/mail_requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"customer_id": 42,
"email": {
"subject": "Please authorize your direct debit mandate",
"body": "Please click the link to authorize your direct debit mandate.",
"recipients": [
"customer@example.com"
]
}
}'
This response does not have an example.
This endpoint allows you to send an email request for a GoCardless mandate to a recipient.
ℹ️ This endpoint requires one of the following scopes:
customer_mandates:all
curl --request POST \
--url https://app.pennylane.com/api/external/v2/gocardless_mandates/mail_requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"customer_id": 42,
"email": {
"subject": "Please authorize your direct debit mandate",
"body": "Please click the link to authorize your direct debit mandate.",
"recipients": [
"customer@example.com"
]
}
}'
This response does not have an example.
The access token received from the authorization server in the OAuth 2.0 flow.
Mail request successfully created
Was this page helpful?