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