Update PayPal Express Checkout
PUThttps://useast.api.elasticpath.com/v2/gateways/paypal_express_checkout
Use this endpoint to configure PayPal Express Checkout.
note
To learn more about PayPal Express Checkout and check whether it will work for you, contact your sales or customer success team.
Request
- application/json
Body
data object
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (auto)
Schema
data object
{
"data": {
"enabled": true,
"payer_id": "{{merchant account id}}",
"name": "PayPal Express Checkout",
"test": true,
"slug": "paypal_express_checkout",
"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/paypal_express_checkout");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"data\": {\n \"enabled\": true,\n \"payer_id\": \"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