> For the complete documentation index, see [llms.txt](https://docs.commercelayer.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.commercelayer.io/core-api-reference/2026-05/payment_setting_braintrees/object.md). Agents can also search and read this documentation through its [MCP server](https://docs.commercelayer.io/~gitbook/mcp).

# The payment setting braintree object

A comprehensive list of the payment setting braintree resource's attributes and relationships

A payment setting braintree object is returned as part of the response body of each successful list, retrieve, create or update API call to the `/api/2026-05/payment_setting_braintrees` endpoint.

## Fields

| Field                                    | Type      | Description                                                                                                                                                                                         |
| ---------------------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **type**                                 | `string`  | `payment_setting_braintrees`                                                                                                                                                                        |
| **id**                                   | `string`  | The payment setting braintree unique identifier                                                                                                                                                     |
| links.**self**                           | `string`  | The payment setting braintree endpoint URL                                                                                                                                                          |
| attributes.**gateway\_version**          | `string`  | The gateway version of the payment setting (external API version).                                                                                                                                  |
| attributes.**idempotency\_window\_mins** | `integer` | The minutes within which a repeated payment operation is deduplicated by the gateway idempotency key. Later attempts get a fresh key.                                                               |
| attributes.**internal\_versions**        | `object`  | The internal versions of the payment setting for payload changes.                                                                                                                                   |
| attributes.**internal\_versionable**     | `boolean` | Indicates whether this payment setting's gateway supports internal payload versioning (see internal\_versions).                                                                                     |
| attributes.**auto\_capture**             | `boolean` | Send this attribute if you want the payment to be automatically captured when authorized.                                                                                                           |
| attributes.**auto\_place**               | `boolean` | Send this attribute if you want the order to be automatically placed when a payment session using this payment setting is authorized.                                                               |
| attributes.**status**                    | `string`  | The payment setting status. It is pending until the gateway webhook is configured, either automatically or by providing its secret.                                                                 |
| attributes.**name**                      | `string`  | The name of the payment setting.                                                                                                                                                                    |
| attributes.**\_disable**                 | `boolean` | Send this attribute if you want to mark this resource as disabled.                                                                                                                                  |
| attributes.**\_enable**                  | `boolean` | Send this attribute if you want to mark this resource as enabled.                                                                                                                                   |
| attributes.**disabled\_at**              | `string`  | Time at which this resource was disabled.                                                                                                                                                           |
| attributes.**created\_at**               | `string`  | Time at which the resource was created.                                                                                                                                                             |
| attributes.**updated\_at**               | `string`  | Time at which the resource was last updated.                                                                                                                                                        |
| attributes.**reference**                 | `string`  | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. |
| attributes.**reference\_origin**         | `string`  | Any identifier of the third party system that defines the reference code.                                                                                                                           |
| attributes.**metadata**                  | `object`  | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format.                                        |
| attributes.**\_check**                   | `boolean` | Send this attribute if you want to validate the payment gateway credentials using the gateway’s own APIs.                                                                                           |
| attributes.**merchant\_id**              | `string`  | The gateway merchant ID.                                                                                                                                                                            |
| attributes.**public\_key**               | `string`  | The gateway public key.                                                                                                                                                                             |
| attributes.**private\_key**              | `string`  | The gateway private key.                                                                                                                                                                            |
| attributes.**merchant\_account\_id**     | `string`  | The gateway merchant account ID, used to route transactions to the correct sub-account.                                                                                                             |
| attributes.**google\_pay\_merchant\_id** | `string`  | The Google Pay merchant ID, issued by the Google Pay & Wallet Console and required to offer Google Pay in production.                                                                               |
| attributes.**webhook\_endpoint\_url**    | `string`  | The gateway webhook URL to configure manually in the Braintree Control Panel.                                                                                                                       |
| relationships.**payment\_links**         | `array`   | The associated payment links.                                                                                                                                                                       |
| relationships.**payment\_sessions**      | `array`   | The associated payment sessions.                                                                                                                                                                    |
| relationships.**payment\_transactions**  | `array`   | The payment transactions associated to available sessions.                                                                                                                                          |
| relationships.**payment\_wallets**       | `array`   | The associated payment wallets.                                                                                                                                                                     |
| relationships.**order\_subscriptions**   | `array`   | The associated order subscriptions.                                                                                                                                                                 |
| relationships.**events**                 | `array`   | The associated events.                                                                                                                                                                              |
| relationships.**event\_stores**          | `array`   | The associated event stores.                                                                                                                                                                        |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.commercelayer.io/core-api-reference/2026-05/payment_setting_braintrees/object.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
