New checkout session
checkout-sessions.write scope.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
A request to create a checkout session.
Defines when the checkout session will expire (in seconds). Defaults to an hour (3600 seconds).
3600 <= x <= 864007200
An array of cart items that represents the line items of a transaction.
Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it.
{ "key": "value" }The airline addendum data which describes the airline booking associated with this transaction.
Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used.
Response
Returns the new Checkout Session.
A short-lived checkout session.
checkout-session.
checkout-session "checkout-session"
The ID of the Checkout Session.
"8d3fe99b-1422-42e6-bbb3-932d95ae5f79"
The date and time when the Checkout Session will expire. By default this will be set to 1 hour from the date of creation.
"2022-01-01T00:00:00+00:00"
An array of cart items that represents the line items of a transaction.
Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it.
{ "key": "value" }Contains information about an airline travel, if applicable.
Details about the payment method for card type only.