Upload a document for a payment method, e.g. a signed sepa mandate
Required permissions:payment-method:writeBearer authentication header of the form Bearer <token>, where <token> is your auth token.
PaymentMethod identifier
The new PaymentMethod resource
Represents a payment method attached to a customer, such as a credit card, SEPA direct debit, PayPal, or bank transfer.
The ID of the customer that owns this payment method
"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a"
The payment gateway used to process the payment method
wallet, sepa_debit, stripe, fake_provider, paypal, bank_transfer, go_cardless, testing The type of the payment method
sepa_debit, card, paypal, bank_transfer, wallet, fake_provider, null The reference ID of the payment method at the payment gateway
The customer reference ID at the payment gateway
Whether this is the default payment method for the customer
true
The current status of the payment method
active, action_required, expired, revoked, gateway_unconfigured "active"
The source where the payment method was created
checkout, customerfront, api, add_link "api"
Whether the payment method is enabled for use
true
Whether this is an internal payment method (e.g. wallet)
false
Display name of the payment method
"Visa (4242)"
Additional data associated with the payment method
The expiration date of the payment method, if applicable
"2026-12-31T23:59:59+00:00"
List of notification IDs associated with this payment method
List of webhook result IDs triggered by this payment method
Gateway-specific data for the payment method (write-only)
PaymentMethod resource created
Payment method details returned when reading a payment method.
Unique identifier of the payment method
"c1a2b3c4-d5e6-4f7a-8b9b-0c1d2e3f4a5b"
The ID of the customer that owns this payment method
"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a"
The payment gateway used to process the payment method
wallet, sepa_debit, stripe, fake_provider, paypal, bank_transfer, go_cardless, testing The type of the payment method
sepa_debit, card, paypal, bank_transfer, wallet, fake_provider, null The reference ID of the payment method at the payment gateway
Whether this is the default payment method for the customer
true
The current status of the payment method
active, action_required, expired, revoked, gateway_unconfigured "active"
The source where the payment method was created
checkout, customerfront, api, add_link "api"
Whether the payment method is enabled for use
true
Display name of the payment method
"Visa (4242)"
Additional data associated with the payment method
The date when the payment method was created
"2024-01-15T10:30:00+00:00"
The expiration date of the payment method, if applicable
"2026-12-31T23:59:59+00:00"
The sepa mandate of the payment method, if the gatewayName is "payment_sepa"
The card data of the payment method, if the type is "card"
The sepa mandate data of the payment method, if the type is "sepa_debit"
The paypal data of the payment method, if the type is "paypal"
Number of days until the payment method expires. Null if no expiration.
365