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 (from schema)
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 (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/paypal_express_checkout' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"data": {
"enabled": true,
"payer_id": "string",
"test": true
}
}'
ResponseClear