Update Stripe Connect Gateway
PUThttps://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
- application/json
Body
data object
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (auto)
Schema
data object
{
"data": {
"enabled": true,
"stripe_account": "{{stripeConnectAccountId}}",
"name": "Stripe Connect",
"test": true,
"slug": "stripe_connect",
"type": "gateway"
}
}
Unauthorized
- application/json
- Schema
- Example (auto)
- Example
Schema
detailstring
statusstring
titlestring
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear