Skip to main content
POST
Create Checkout

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

fields
string

Comma-separated list of fields to include in the response. Supports dot notation for nested projection (e.g. id,name,user.email,trips.route.id). Unknown fields are silently dropped.

Body

application/json
tickets
object[]
required
Minimum array length: 1
creditAmount
integer

Credit amount in cents

Example:

1500

payment
object | null

Response

Created

checkoutId
string<uuid>
required

Checkout identifier

Example:

"0197a812-b835-79c4-8f0b-0e3863eb6d34"

customerId
string<uuid>
required

Customer identifier

Example:

"0197a7f6-4d36-7c0a-a7cb-54fcb33a3148"

customer
object
required

Customer identity

orders
object[]
required

Checkout orders

code
string
required

Readable checkout code

Example:

"OAB-CHK-20260703-0001"

baseAmount
integer
required

Base amount in cents

Example:

28900

discountAmount
integer
required

Discount amount in cents

Example:

3400

creditAmount
integer
required

Credit amount in cents

Example:

1500

paidAmount
integer
required

Externally paid amount in cents

Example:

24000

amount
integer
required

Commercial amount in cents

Example:

25500

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
checkoutSessionId
string<uuid> | null

Checkout session identifier

Example:

"01981255-3c7a-7bd4-bb5f-8b47bc4dce91"

createdBy
string<uuid> | null

Created by

Example:

"0197a805-0910-7eb2-bae7-90a13df2a9b2"

updatedBy
string<uuid> | null

Updated by

Example:

"0197a805-0910-7eb2-bae7-90a13df2a9b2"

checkoutSession
object | null