Skip to main content

Update Braintree Gateway

PUT 

https://useast.api.elasticpath.com/v2/gateways/braintree

Use this endpoint to configure Braintree.

Request

Body

    data object
    enabledboolean

    Specifies whether the gateway is enabled or disabled. Set true to enable the gateway and false to disable the gateway. Default is false.

    environmentstring

    Specifies production or sandbox environment.

    merchant_idstringrequired

    Specifies Your Braintree merchant ID.

    private_keystringrequired

    Represents Your Braintree private key.

    public_keystringrequired

    Indicates Your Braintree public key.

Responses

OK

Schema
    data object
    enabledboolean

    Specifies whether the gateway is enabled or disabled. Set true to enable the gateway and false to disable the gateway. Default is false.

    Example: true
    namestring

    Specifies the name of the gateway.

    Example: Braintree
    environmentstring

    Specifies production or sandbox environment.

    Example: sandbox
    merchant_idstring

    Specifies Your Braintree merchant ID.

    Example: {{braintreeMerchantId}}
    private_keystring

    Represents Your Braintree private key.

    Example: {{braintreePrivateKey}}
    public_keystring

    Indicates Your Braintree public key.

    Example: {{braintreePublicKey}}
    slugstring

    Represents the slug of the gateway.

    Example: braintree
    typestring

    Specifies the type of object being returned.

    Example: gateway
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://useast.api.elasticpath.com/v2/gateways/braintree");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"data\": {\n \"enabled\": true,\n \"environment\": \"string\",\n \"merchant_id\": \"string\",\n \"private_key\": \"string\",\n \"public_key\": \"string\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://useast.api.elasticpath.com
Body
{
  "data": {
    "enabled": true,
    "environment": "string",
    "merchant_id": "string",
    "private_key": "string",
    "public_key": "string"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!