Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a payment setting external

How to create a payment setting external via API

To create a new payment setting external, send a POST request to the /api/2026-05/payment_setting_externals endpoint, passing the resource arguments in the request body.

Request

POST https://yourdomain.commercelayer.io/api/2026-05/payment_setting_externals

Arguments

Body Parameter
Type
Required

type

string

Required

attributes.gateway_version

string

Optional, default to the last available version

attributes.idempotency_window_mins

integer

Optional, default is one hour (60 minutes)

attributes.auto_capture

boolean

Optional

attributes.auto_place

boolean

Optional

attributes.name

string

Optional

attributes._disable

boolean

Optional

attributes._enable

boolean

Optional

attributes.reference

string

Optional

attributes.reference_origin

string

Optional

attributes.metadata

object

Optional

attributes.external_includes

array

Optional, default to resource specific list

attributes.session_url

string

Optional

attributes.authorization_url

string

Required

attributes.capture_url

string

Required

attributes.void_url

string

Required

attributes.refund_url

string

Required

attributes.token_url

string

Optional

Example

The following request creates a new payment setting external:

On success, the API responds with a 201 Created status code, returning the created resource object:

Last updated