Skip to content

Stripe: Retrieve a Mandate

Stripe mandates.getMandatesMandate: arguments, response, policy and SDK examples.

← Mandates operations · Get started

Operation stripe.getmandatesmandate

Provider route: GET /v1/mandates/{mandate}. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["mandates"]["getMandatesMandate"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.mandates.getMandatesMandate(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.mandates.get_mandates_mandate(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.mandatestringRequired within parent
queryobjectOptionalAdditional keys: not allowed
query.expandarrayOptional
query.expand[]stringEach itemMaximum length: 5000

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve a Mandate — response body

Referenced models: Retrieve a Mandate — response body

704 more schemas are linked from the tables above, on the schema pages.

Retrieve a Mandate — response body
FieldTypePresenceDescription and constraints
$objectRootA Mandate is a record of the permission that your customer gives you to debit their payment method.
customer_acceptanceModelRequired within parentExpand Retrieve a Mandate — response body — customer acceptance
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
multi_useModelOptionalExpand Retrieve a Mandate — response body — multi use
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: mandate
on_behalf_ofstringOptionalThe account (if any) that the mandate is intended for.
Maximum length: 5000
payment_methodJSONRequired within parentID of the payment method associated with this mandate.
payment_method (anyOf 1)stringAlternativeMaximum length: 5000
payment_method (anyOf 2)ModelAlternativeExpand Create a Payment Method — response body
payment_method_detailsModelRequired within parentExpand Retrieve a Mandate — response body — payment method details
single_useModelOptionalExpand Retrieve a Mandate — response body — single use
statusstringRequired within parentThe mandate status indicates whether or not you can use it to initiate a payment.
Known values: active, inactive, pending
typestringRequired within parentThe type of the mandate.
Known values: multi_use, single_use

Referenced models: Retrieve a Mandate — response body — customer acceptance, Retrieve a Mandate — response body — multi use, Retrieve a Mandate — response body — payment method details, Retrieve a Mandate — response body — single use, Create a Payment Method — response body

Retrieve a Mandate — response body — customer acceptance
FieldTypePresenceDescription and constraints
$objectRoot
accepted_atJSONOptional
accepted_at (anyOf 1)JSONAlternative
accepted_at (anyOf 1) (anyOf 1)integerAlternativeThe time that the customer accepts the mandate.
Format: unix-time
accepted_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
accepted_at (anyOf 2)nullAlternative
offlineModelOptionalExpand Create a Payment Method — response body — zip
onlineModelOptionalExpand Retrieve a Mandate — response body — customer acceptance online
typestringRequired within parentThe mandate includes the type of customer acceptance information, such as: `online` or `offline`.
Known values: offline, online

Referenced models: Create a Payment Method — response body — zip, Retrieve a Mandate — response body — customer acceptance online

Retrieve a Mandate — response body — multi use
FieldTypePresenceDescription and constraints
$objectRoot
amountJSONOptional
amount (anyOf 1)integerAlternativeThe amount of the payment on a multi use mandate.
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencystringOptionalThe currency of the payment on a multi use mandate.
Format: currency
Retrieve a Mandate — response body — payment method details
FieldTypePresenceDescription and constraints
$objectRoot
acss_debitModelOptionalExpand Retrieve a Mandate — response body — payment method details acss debit
amazon_payModelOptionalExpand Create a Payment Method — response body — zip
au_becs_debitModelOptionalExpand Retrieve a Mandate — response body — payment method details au becs debit
bacs_debitModelOptionalExpand Retrieve a Mandate — response body — payment method details bacs debit
blikModelOptionalExpand Retrieve a Mandate — response body — payment method details blik
cardModelOptionalExpand Retrieve a Mandate — response body — payment method details card
cashappModelOptionalExpand Create a Payment Method — response body — zip
kakao_payModelOptionalExpand Create a Payment Method — response body — zip
klarnaModelOptionalExpand Create a Payment Method — response body — zip
kr_cardModelOptionalExpand Create a Payment Method — response body — zip
linkModelOptionalExpand Create a Payment Method — response body — zip
naver_payModelOptionalExpand Create a Payment Method — response body — zip
nz_bank_accountModelOptionalExpand Create a Payment Method — response body — zip
paypalModelOptionalExpand Retrieve a Mandate — response body — payment method details paypal
paytoModelOptionalExpand Retrieve a Mandate — response body — payment method details payto
pixModelOptionalExpand Retrieve a Mandate — response body — payment method details pix
revolut_payModelOptionalExpand Create a Payment Method — response body — zip
sepa_debitModelOptionalExpand Retrieve a Mandate — response body — payment method details sepa debit
twintModelOptionalExpand Create a Payment Method — response body — zip
typestringRequired within parentThis mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method.
Maximum length: 5000
upiModelOptionalExpand Retrieve a Mandate — response body — payment method details upi
us_bank_accountModelOptionalExpand Retrieve a Mandate — response body — payment method details us bank account

Referenced models: Create a Payment Method — response body — zip, Retrieve a Mandate — response body — payment method details card, Retrieve a Mandate — response body — payment method details upi, Retrieve a Mandate — response body — payment method details acss debit, Retrieve a Mandate — response body — payment method details au becs debit, Retrieve a Mandate — response body — payment method details bacs debit, Retrieve a Mandate — response body — payment method details blik, Retrieve a Mandate — response body — payment method details paypal, Retrieve a Mandate — response body — payment method details payto, Retrieve a Mandate — response body — payment method details pix, Retrieve a Mandate — response body — payment method details sepa debit, Retrieve a Mandate — response body — payment method details us bank account

Create a Payment Method — response body — zip
FieldTypePresenceDescription and constraints
$objectRoot

SDK function policy ID: stripe.getmandatesmandate. Catalog operation: GetMandatesMandate. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.