Wallet
Storefront Wallet API endpoints
An API endpoint to setup token for payment method.
Request body
Setup payment method body
gateway_idoptionalintegerReturnsPaymentMethodSetup
Token required to setup payment method
tokenstringAn API endpoint to get list of payment methods.
Query parameters
currency_codeoptionalstringCurrency ISO code
ReturnsPaymentMethod[]
Payment method object response
An API endpoint to store payment method.
Request body
Store payment method body
gateway_idRequiredintegertokenRequiredstringReturnsPaymentMethod
Payment method object response
An API endpoint to delete a customer payment method. The payment method is also detached on the payment gateway.
The last remaining payment method can only be deleted when the shop allows it and the customer has no active subscription, otherwise the request is rejected.
Path parameters
payment_method_idRequiredintegerPayment method ID
ReturnsPaymentMethod
The deleted payment method object
Error responses
403anyThe payment method does not belong to the customer, or it is the last one left and cannot be removed.
An API endpoint to make a payment method the customer default one.
Path parameters
payment_method_idRequiredintegerPayment method ID
ReturnsPaymentMethod
Payment method object response
Error responses
403anyThe payment method does not belong to the customer.
422anyThe payment method cannot be made the default: it belongs to a test mode gateway, or it is a card that has expired.