For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a payment setting braintree

How to create a payment setting braintree via API

To create a new payment setting braintree, send a POST request to the /api/2026-05/payment_setting_braintrees endpoint, passing the resource arguments in the request body.

Request

POST https://yourdomain.commercelayer.io/api/2026-05/payment_setting_braintrees

Arguments

Body Parameter
Type
Required

type

string

Required

attributes.gateway_version

string

Optional, default to the last available version

attributes.idempotency_window_mins

integer

Optional, default is one hour (60 minutes)

attributes.auto_capture

boolean

Optional

attributes.auto_place

boolean

Optional

attributes.name

string

Optional

attributes._disable

boolean

Optional

attributes._enable

boolean

Optional

attributes.reference

string

Optional

attributes.reference_origin

string

Optional

attributes.metadata

object

Optional

attributes._check

boolean

Optional

attributes.merchant_id

string

Required

attributes.public_key

string

Required

attributes.private_key

string

Required

attributes.merchant_account_id

string

Required

attributes.google_pay_merchant_id

string

Optional

Example

The following request creates a new payment setting braintree:

On success, the API responds with a 201 Created status code, returning the created resource object:

Last updated