Create a payment wallet
How to create a payment wallet via API
To create a new payment wallet, send a POST request to the /api/2026-05/payment_wallets endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/2026-05/payment_wallets
Arguments
type
string
Required
attributes._payment_details
object
Optional
attributes._internal_version
string
Optional
attributes.customer_token
string
Required, a tentative to generate it on the gateway is made
attributes.payment_token
string
Required, a tentative to generate it on the gateway is made
attributes.options
object
Optional
attributes.expires_at
string
Optional, default is fetched by gateway
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.customer
object
Required
relationships.payment_setting
object
Required
Example
The following request creates a new payment wallet:
On success, the API responds with a 201 Created status code, returning the created resource object:
Last updated