checkout-sessions
Create a Checkout Session
Create a checkout session
Authorizations
Authorization
string
headerrequiredBasic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
line_items
object[]
requiredcustomer_email
string
client_reference_id
string
success_url
string
requiredcancel_url
string
mode
enum<string>
requiredAvailable options:
payment
user_id
string
Supply a Dots user ID in place of a customer ID
customer_id
string
expires_in
integer
default: 10800metadata
object
Response
200 - application/json
id
string
status
enum<string>
Available options:
open
, complete
, expired
payment_intent_id
string
success_url
string
cancel_url
string
checkout_session_url
string
client_reference_id
string
expiry
string
metadata
object
line_items
object[]
created
string
updated
string
customer_id
string
payment-customer
ID
customer_email
string
amount_total
integer