Create or update checkout session

While there is an ongoing non-terminated session this endpoint can be used to update the currently ongoing session.
A session is non-terminated while in state CREATED, PENDING or PAYING, but the session can only be updated while in state CREATED or PENDING.
If there is no ongoing session this will create a new session.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
Body Params

CreateOrUpdateSessionRequest

string
required

Where to send the user after session was aborted

integer
required

Amount in minor units (e.g. cents)

string | null

Where to send the user if pressing back button, if not provided a back button will not be displayed.

string | null

Name of the client, will be displayed on some navigation buttons

uuid
required
string | null
boolean
Defaults to false

Whether the session will be displayed in an iframe, some payment methods won't be avalible when iframed

string
enum
Allowed:
metadata
object
order_lines
array of objects
required
length ≥ 1

List of order lines to be displayed to the payer

order_lines*
integer
required

Amount in minor units (e.g. cents)

string
uri
uri
uuid
required
metadata
object
string
required
string
enum
required
Allowed:
integer
required
≥ 1
integer
required
0 to 100
payer
object
boolean
Defaults to true

Whether the payer can update their details

string
length ≤ 50

Text to be displayed to the payer, will only be used for methods where setting a custom text is supported.

string
required

Where to send the user after session was successful

Headers
string
required

API secret

uuid
required

Tenant ID header

Response

Callback
Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json