Customer Payment Methods
Customer Payment Methods represent chargeable payment methods like credit cards or direct debit mandates belonging to a customer. You can save them to Customer objects to store instrument details for future payments.
Endpoints
The Customer Payment Method object
Attributes
The ID of the payment method
The status of the payment method
ACTIVE
DELETED
EXPIRED
The ID of the seller this payment method
Whether the payment method is primary
Whether the payment method is primary
The ID of the attached payment gateway or additional payment method
Optional Attributes
Collapse all{"_id": "string","status": "ACTIVE","sellerId": "string","data": {},"paymentDetails": {},"primary": true,"active": true,"gatewayType": "stripe","gatewayId": "string","channels": [[]],"createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Get payment methods for customer
Query
Channel the methods are used for
Whether the payment method is primary or not
Whether the payment method is active or not
The ID of the payment gateway or additional payment method which the payment method belongs to
The allowed payment gateway channels
[{"_id": "string","status": "ACTIVE","sellerId": "string","data": {},"paymentDetails": {},"primary": true,"active": true,"gatewayType": "stripe","gatewayId": "string","channels": [[]],"createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}]
Create a customer payment method
Payload
The ID of the payment gateway or additional payment method which the payment method belongs to
Optional Attributes
Collapse all{"data": {"iban": "string","bic": "string","accountHolderName": "string"},"gatewayId": "string"}
{"_id": "string","status": "ACTIVE","sellerId": "string","data": {},"paymentDetails": {},"primary": true,"active": true,"gatewayType": "stripe","gatewayId": "string","channels": [[]],"createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Set customer payment method to primary
Query
{"_id": "string","status": "ACTIVE","sellerId": "string","data": {},"paymentDetails": {},"primary": true,"active": true,"gatewayType": "stripe","gatewayId": "string","channels": [[]],"createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}