v1
latestOpenAPI 3.0.12026-07-141671231.8 MBMandates
List gocardless mandates
List gocardless mandates
ℹ️ This endpoint requires one of the following scopes: customer_mandates:all, customer_mandates:readonly
get/api/external/v2/gocardless_mandates
Query parameters
cursorstring
Example:dXBkYXRlZF9hdDoxNjc0MTIzNDU2
Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.
limitinteger
Example:20
Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.
filterstring
Example:[{"field": "id", "operator": "eq", "value": "42"}]
You can choose to filter items on specific fields. Available fields and values:
- id: lt, lteq, gt, gteq, eq, not_eq, in, not_in
- customer_id: lt, lteq, gt, gteq, eq, not_eq, in, not_in
- external_reference: eq
sortstring
You can choose to sort items on specific attributes. Sort field may be prefixed with - for descending order. Example: id will sort by ascending order, -id will sort by descending order. Available fields: id
Response
The list of gocardless mandates
Example response
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"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"
}
]
}