Create a braintree gateway
How to create a braintree gateway via API
To create a new braintree gateway, send a POST
request to the /api/braintree_gateways
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/braintree_gateways
Arguments
Body Parameter | Type | Required |
---|---|---|
type |
| Required |
attributes.name |
| Required |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
attributes.metadata |
| Optional |
attributes.merchant_account_id |
| Required |
attributes.merchant_id |
| Required |
attributes.public_key |
| Required |
attributes.private_key |
| Required |
attributes.descriptor_name |
| Optional |
attributes.descriptor_phone |
| Optional |
attributes.descriptor_url |
| Optional |
relationships.braintree_payments |
| Optional |
Example
The following request creates a new braintree gateway:
Last updated