latestOpenAPI 3.0.32026-08-215925112.0 MB

36be0dca14e7

api
customer-payment-methods

Create a customer payment method

post/api/customers/{id}/payment-methods

Path parameters

idstring required

Request body

OR
OR
OR

Response

Created

_idstring required

The ID of the payment method

status'ACTIVE' | 'DELETED' | 'EXPIRED' required

The status of the payment method

sellerIdstring required

The ID of the seller this payment method

dataobject

Whether the payment method is primary

paymentDetailsobject

Whether the payment method is primary

primaryboolean required

Whether the payment method is primary

activeboolean required

Whether the payment method is primary

gatewayType'stripe' | 'paypal' | 'adyen' | 'custom' | 'cardconnect' | 'worldline' | 'shift4' | 'authorizenet' | 'wallee' | 'square' | 'payfast' | 'touchnet' | 'transact' | 'unzer' | 'monext' | 'vivenuPayments' | 'ebanx' | 'rapyd' | 'momentusPayments' | 'additional-payment-method'

The type of the payment gateway associated to this method

gatewayIdstring required

The ID of the attached payment gateway or additional payment method

createdAtstring date-time

The created ISO timestamp

updatedAtstring date-time

The last updated ISO timestamp