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