New checkout session
Creates a new Checkout Session.
This endpoint requires the checkout-sessions.write
scope.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
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.
Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used.
Response
checkout-session
.
checkout-session
The ID of the Checkout Session.
The date and time when the Checkout Session will expire. By default this will be set to 1 hour from the date of creation.
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.
Details about the payment method for card type only.
Was this page helpful?