Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Query Parameters

accountId
string
required

The ID of the account to work with.

Example:

"F50091"

Body

application/json

Body

type
enum<string>
required
Available options:
SHOPPING
name
string
required

The merchant's name for the checkout. Never shown to payers.

Required string length: 1 - 64
Example:

"Online shop"

currencyCode
enum<string>
required

The currency the checkout takes payments in. Cannot be changed later.

Available options:
GBP,
EUR
Example:

"GBP"

returnUrl
string<uri>
required

Where the payer is sent once a checkout session ends, unless the session sets its own.

Maximum string length: 2048
Pattern: ^https:\/\/
Example:

"https://shop.example.com/checkout/complete"

locale
string

Default locale for payer-facing screens. Omit to let the payer's browser decide.

Pattern: ^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|\d{3}))?$
Example:

"en-GB"

settlementAccountId
string<uuid>

The APPROVED settlement account, in the checkout's currency, that sessions pay into. Omit to use the default settlement account.

Maximum string length: 36
Example:

"5c8e2a1f-9d4b-4f7a-8e3c-1b6d0f2a9e64"

shippingOptions
object

Omit to collect no shipping address.

Response

Created

id
string<uuid>
required

The ID of a checkout: the configured payment page a checkout session is taken on.

Maximum string length: 36
Example:

"6f1c2d0e-7a4b-4e2f-9c1d-3b5a7e9f0a12"

type
enum<string>
required

The type of checkout session the checkout takes. Fixed at creation.

Available options:
SHOPPING,
TOP_UP
Example:

"SHOPPING"

name
string | null
required

The merchant's name for the checkout. Never shown to payers. null when none was stored.

Minimum string length: 1
Example:

"Online shop"

status
enum<string>
required

Only an ACTIVE checkout can take new checkout sessions; sessions already created can still complete. The merchant switches between them.

Available options:
ACTIVE,
DEACTIVATED
Example:

"ACTIVE"

currencyCode
enum<string>
required

The currency the checkout takes payments in. Fixed at creation.

Available options:
GBP,
EUR
Example:

"GBP"

settlementAccountId
string<uuid> | null
required

The settlement account SHOPPING sessions pay into. null uses the default settlement account; always null for TOP_UP, whose sessions pay into a payee.

Maximum string length: 36
Example:

"5c8e2a1f-9d4b-4f7a-8e3c-1b6d0f2a9e64"

shippingOptions
object | null
required

Shipping collection for SHOPPING checkouts. Always null for TOP_UP.

returnUrl
string<uri>
required

Where the payer is sent once a checkout session ends, unless the session sets its own.

Maximum string length: 2048
Pattern: ^https:\/\/
Example:

"https://shop.example.com/checkout/complete"

locale
string | null
required

Default locale for payer-facing screens. A session's own locale overrides it. null lets the payer's browser decide, with en-GB as the final fallback.

Pattern: ^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|\d{3}))?$
Example:

"en-GB"

createdAt
string<date-time>
required

The date the Resource was initially created. ISO 8601 format without milliseconds.

updatedAt
string<date-time>
required

The date the Resource was last modified. ISO 8601 format without milliseconds.