Update an external gateway
Changed onUpdate an external gateway
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/external_gateways/{externalGatewayId}
- AuthHTTP bearer
Path parameters
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"name": "US payment gateway",
"force_payments": true,
"idempotency_window_mins": 60,
"_disable": true,
"_enable": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
},
"_reset_circuit": true,
"_regenerate_shared_secret": true,
"external_includes": [
"order.line_item_options"
],
"authorize_url": "https://external_gateway.com/authorize",
"capture_url": "https://external_gateway.com/capture",
"void_url": "https://external_gateway.com/void",
"refund_url": "https://external_gateway.com/refund",
"token_url": "https://external_gateway.com/token"
}
}
}Response
The updated external gateway object
Changes
- info
added the new optional request property
// - info
added the optional property
//to the response with the status
- info
- breaking
request property
/was restricted to a list of enum values - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valueexternal_gatewayswas removed - info
added the new
external_gatewaysenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking