Create a payment option
How to create a payment option via API
Last updated
How to create a payment option via API
Last updated
To a new payment option, send a POST
request to the /api/payment_options
endpoint, passing the resource arguments in the request body.
POST https://yourdomain.commercelayer.io/api/payment_options
type
string
Required
attributes.name
string
Optional
attributes.payment_source_type
string
Required
attributes.data
object
Required
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.order
object
Required
The following request creates a new payment option: