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