API documentation
User
Tenant
Feature
Entitlement
User & permissions
Settings
- Settings
- Media
- Webhook
- Notification
Payment
- Payment Method
- Transaction
- SEPA XML
- Open Banking
- Bank Account Transaction
Customer
- Customer
- Customer Address
- Customer Email
- Customer Settings
- Customer Otp
Billing
- Invoice
- Invoice Position Item
- Billing Run
Dunning
- Dunning Document
- Dunning Rule
Subscription
- Subscription
- Subscription Item
- Subscription Measurement
- Billing Group
Offers
- Offer
- Offer Recipient
- Offer Template
Catalogue
- Unit
- Measurement
- Product
- Product Family
- Price Plan
- Coupon
Checkout
- Checkout Link
- Cart
Accounting
Get customer's payment methods
Get customer’s payment methods.
Required permissions:payment-method:read
, customer:payment-method:read
curl -X GET \
/customers/{customerId}/payment-methods \
--header "Authorization: Bearer <token>"
{
"data": [
{
"id": "<string>",
"customer": "https://example.com/",
"gatewayName": "wallet",
"type": "sepa_debit",
"referenceId": "<string>",
"default": true,
"status": "active",
"source": "api",
"enabled": true,
"name": "<string>",
"data": [
"<string>"
],
"creationDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"sepaMandate": {
"id": "ad8f0b9c-0b1a-4e1a-8b0a-0b1a4e1a8b0a",
"status": "active",
"creditorIdentifier": "<string>",
"mandateReference": "MNDT-2021-0001",
"bankAccount": {
"id": "ad8f0b9c-4b1e-4e0e-8b9c-4b1e4e0e8b9c",
"iban": "DE12500105170648489890",
"bic": "PBNKDEFFXXX",
"accountHolder": "Max Mustermann",
"bankName": "Commerzbank"
},
"sequenceType": "FRST",
"sepaType": "core"
},
"card": {
"brand": "Visa",
"last4": "4242",
"expMonth": 12,
"expYear": 2022,
"cardHolder": "Max Mustermann"
},
"sepaDebit": {
"iban": "DE8937*********3232",
"bic": "COBADEFFXXX",
"mandateReference": "MNDT-2021-123456",
"signingDate": "2021-01-01T00:00:00+00:00"
},
"paypal": {
"email": "max@mustermann.de",
"billingAgreementId": "I-1J5gqz2eZvKYlo2C2X2X2X2X"
},
"expirationInDays": 123
}
],
"meta": {
"pagination": {
"totalItems": 123,
"itemsPerPage": 123,
"currentPage": 123,
"lastPage": 123,
"pageTotalItems": 123
}
}
}
Authorizations
Value for the Authorization header parameter.
Path Parameters
PaymentMethod identifier
Query Parameters
The collection page number
The number of items per page
0 <= x <= 100
Response
"https://example.com/"
wallet
, sepa_debit
, stripe
, fake_provider
, paypal
, bank_transfer
, go_cardless
, testing
sepa_debit
, card
, paypal
, bank_transfer
, wallet
, fake_provider
active
, action_required
, expired
, revoked
, gateway_unconfigured
"active"
checkout
, customerfront
, api
, add_link
"api"
The sepa mandate of the payment method, if the gatewayName is "payment_sepa"
"ad8f0b9c-0b1a-4e1a-8b0a-0b1a4e1a8b0a"
The status of the mandate
Possible values:
active
: The mandate is active and can be used for paymentsrevoked
: The customer has revoked the mandate or a payment was rejected by the bank. The mandate can not be used for payments anymore
active
, revoked
"active"
The reference of the mandate
"MNDT-2021-0001"
The bank account of the mandate
"ad8f0b9c-4b1e-4e0e-8b9c-4b1e4e0e8b9c"
"DE12500105170648489890"
"PBNKDEFFXXX"
"Max Mustermann"
"Commerzbank"
The sequence type of the mandate
Possible values:
FRST
: The sepa mandate is used for the first time for a recurring paymentRCUR
: The sepa mandate was already used the first time and is now used for recurring paymentsFNAL
: The sepa mandate is used for the last time for a recurring paymentOOFF
: The sepa mandate is only allowed to be used for one payment
FRST
, RCUR
, FNAL
, OOFF
"FRST"
The type of the mandate
Possible values:
CORE
: The core scheme is used for payments between consumers and companiesB2B
: The B2B scheme is used for payments between companies. No refund is possibleCOR1
: The COR1 scheme is used for payments between consumers and companies. The payment is processed faster than with the core scheme
CORE
, B2B
, COR1
"core"
The card data of the payment method, if the type is "card"
The brand of the card
"Visa"
The last 4 digits of the card
"4242"
The expiration month of the card
12
The expiration year of the card
2022
The card holder name
"Max Mustermann"
The sepa mandate data of the payment method, if the type is "sepa_debit"
The iban of the sepa mandate
"DE8937*********3232"
The bic of the sepa mandate
"COBADEFFXXX"
The mandate reference of the sepa mandate
"MNDT-2021-123456"
The signing date of the sepa mandate
"2021-01-01T00:00:00+00:00"
Was this page helpful?
curl -X GET \
/customers/{customerId}/payment-methods \
--header "Authorization: Bearer <token>"
{
"data": [
{
"id": "<string>",
"customer": "https://example.com/",
"gatewayName": "wallet",
"type": "sepa_debit",
"referenceId": "<string>",
"default": true,
"status": "active",
"source": "api",
"enabled": true,
"name": "<string>",
"data": [
"<string>"
],
"creationDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"sepaMandate": {
"id": "ad8f0b9c-0b1a-4e1a-8b0a-0b1a4e1a8b0a",
"status": "active",
"creditorIdentifier": "<string>",
"mandateReference": "MNDT-2021-0001",
"bankAccount": {
"id": "ad8f0b9c-4b1e-4e0e-8b9c-4b1e4e0e8b9c",
"iban": "DE12500105170648489890",
"bic": "PBNKDEFFXXX",
"accountHolder": "Max Mustermann",
"bankName": "Commerzbank"
},
"sequenceType": "FRST",
"sepaType": "core"
},
"card": {
"brand": "Visa",
"last4": "4242",
"expMonth": 12,
"expYear": 2022,
"cardHolder": "Max Mustermann"
},
"sepaDebit": {
"iban": "DE8937*********3232",
"bic": "COBADEFFXXX",
"mandateReference": "MNDT-2021-123456",
"signingDate": "2021-01-01T00:00:00+00:00"
},
"paypal": {
"email": "max@mustermann.de",
"billingAgreementId": "I-1J5gqz2eZvKYlo2C2X2X2X2X"
},
"expirationInDays": 123
}
],
"meta": {
"pagination": {
"totalItems": 123,
"itemsPerPage": 123,
"currentPage": 123,
"lastPage": 123,
"pageTotalItems": 123
}
}
}