Mandates
Get a Gocardless mandate
Changed onThis endpoint allows you to retrieve a specific Gocardless mandate by ID.
ℹ️ This endpoint requires one of the following scopes: customer_mandates:all, customer_mandates:readonly
get/api/external/v2/gocardless_mandates/{id}
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/gocardless_mandates/{id}
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: customer_mandates:all, customer_mandates:readonly
Path parameters
idinteger required
ID of the Gocardless mandate to retrieve
Headers
X-Company-Idstring
Example:12345
Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.
Response
A Gocardless mandate
Example response
{
"id": 42,
"external_reference": "MD000VDD0HN1RP",
"customer": {
"id": 42,
"url": "https://app.pennylane.com/api/external/v2/customers/42"
},
"external_customer_account": "test_account_id",
"external_customer_label": "test_label",
"created_at": "2023-08-07T14:23:12.000Z",
"updated_at": "2023-08-07T14:23:12.000Z"
}Changes
- info
added the new optional
headerrequest parameterX-Company-Id
- info