Update a payment setting braintree
How to update an existing payment setting braintree via API
To update an existing payment setting braintree, send a PATCH request to the /api/2026-05/payment_setting_braintrees/:id endpoint, where id is the ID of the resource that you want to update.
Here below the list of all the possible arguments that you can pass with the request body.
Request
PATCH https://yourdomain.commercelayer.io/api/2026-05/payment_setting_braintrees/:id
Arguments
type
string
Required
id
string
Required
attributes.gateway_version
string
Optional
attributes.idempotency_window_mins
integer
Optional
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
Optional
attributes.public_key
string
Optional
attributes.private_key
string
Optional
attributes.merchant_account_id
string
Optional
attributes.google_pay_merchant_id
string
Optional
Example
The following request updates the payment setting braintree identified by the ID "XAyRWNUzyN":
On success, the API responds with a 200 OK status code, returning the updated resource object:
Last updated