Skip to main content

Update Stripe Connect Gateway

PUT 

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

Use this endpoint to configure Stripe Connect in Commerce.

note

You can contact Elastic Path sales or customer success team to get more information about Stripe Connect and to check whether it will work for you.

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.

    stripe_accountstringrequired

    Specifies the Stripe Connect account ID.

    testboolean

    Specifies whether the test mode is enabled. Set true to enable test mode and false to disable the test mode. Default is false.

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
    stripe_accountstring

    Specifies the Stripe Connect account ID.

    Example: {{stripeConnectAccountId}}
    namestring

    Specifies the name of the gateway.

    Example: Stripe Connect
    testboolean

    Specifies whether the test mode is enabled. Set true to enable test mode and false to disable the test mode. Default is false.

    Example: true
    slugstring

    Represents the slug of the gateway.

    Example: stripe_connect
    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/stripe_connect");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"data\": {\n \"enabled\": true,\n \"stripe_account\": \"string\",\n \"test\": true\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,
    "stripe_account": "string",
    "test": true
  }
}
ResponseClear

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

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.