A Mandate is a record of the permission that your customer gives you to debit their payment method.
Attributes
- idstring
Unique identifier for the object.
- customer_
acceptanceobject Details about the customer’s acceptance of the mandate.
- payment_
methodstringExpandable ID of the payment method associated with this mandate.
- payment_
method_ detailsobject Additional mandate information specific to the payment method type.
- statusenum
The mandate status indicates whether or not you can use it to initiate a payment.
Possible enum valuesactiveThe mandate can be used to initiate a payment.
inactiveThe mandate was rejected, revoked, or previously used, and may not be used to initiate future payments.
pendingThe mandate is newly created and is not yet active or inactive.
- typeenum
The type of the mandate.
Possible enum valuesmulti_use Represents permission given for multiple payments.
single_use Represents a one-time permission given for a single payment.
More attributes
- objectstring
- livemodeboolean
- multi_
usenullable object - on_
behalf_ ofnullable stringConnect only - single_
usenullable object
{ "id": "mandate_1RpNYL2RM7tvzuemIyhnCrab", "object": "mandate", "customer_acceptance": { "accepted_at": 1753595721, "online": { "ip_address": "172.16.254.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" }, "type": "online" }, "livemode": false, "multi_use": {}, "payment_method": "pm_1RpNXw2RM7tvzuem88xCOsn5", "payment_method_details": { "type": "us_bank_account", "us_bank_account": {} }, "status": "active", "type": "multi_use"}Retrieves a Mandate object.
Parameters
No parameters.
Returns
Returns a Mandate object.
{ "id": "mandate_1RpNYL2RM7tvzuemIyhnCrab", "object": "mandate", "customer_acceptance": { "accepted_at": 1753595721, "online": { "ip_address": "172.16.254.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" }, "type": "online" }, "livemode": false, "multi_use": {}, "payment_method": "pm_1RpNXw2RM7tvzuem88xCOsn5", "payment_method_details": { "type": "us_bank_account", "us_bank_account": {} }, "status": "active", "type": "multi_use"}Retrieves a list of Mandates for a given PaymentMethod.
Parameters
- statusenumRequired
The status of the mandates to retrieve. Status indicates whether or not you can use it to initiate a payment, and can have a value of
active,pending, orinactive.Possible enum valuesactiveThe mandate can be used to initiate a payment.
inactiveThe mandate was rejected, revoked, or previously used, and may not be used to initiate future payments.
pendingThe mandate is newly created and is not yet active or inactive.
More parameters
- ending_
beforestring - limitinteger
- on_
behalf_ ofstringConnect only - starting_
afterstring
Returns
A dictionary with a data property that contains an array of Mandates. Each entry in the array is a separate Mandate object. If no Mandates are available, the resulting array will be empty.
{ "object": "list", "has_more": false, "url": "/v1/mandates", "data": [ { "id": "mandate_1RpNYL2RM7tvzuemIyhnCrab", "object": "mandate", "customer_acceptance": { "accepted_at": 1753595721, "online": { "ip_address": "172.16.254.1", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" }, "type": "online" }, "livemode": false, "multi_use": {}, "payment_method": "pm_1RpNXw2RM7tvzuem88xCOsn5", "payment_method_details": { "type": "us_bank_account", "us_bank_account": {} }, "status": "active", "type": "multi_use" } ]}