Update Braintree Gateway
PUThttps://useast.api.elasticpath.com/v2/gateways/braintree
Use this endpoint to configure Braintree.
Request
- application/json
Body
data object
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
{
"data": {
"enabled": true,
"name": "Braintree",
"environment": "sandbox",
"merchant_id": "{{braintreeMerchantId}}",
"private_key": "{{braintreePrivateKey}}",
"public_key": "{{braintreePublicKey}}",
"slug": "braintree",
"type": "gateway"
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
detail string
status string
title string
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://useast.api.elasticpath.com/v2/gateways/braintree' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"data": {
"enabled": true,
"environment": "string",
"merchant_id": "string",
"private_key": "string",
"public_key": "string"
}
}'
ResponseClear