POST
/
checkout
/
session

Body

success_url
string

The URL to redirect the user to after a successful payment.

cancel_url
string

The URL to redirect the user to if they cancel the payment process.

customer
object

An object containing the customer’s information.

line_items
array

An array of objects representing the items in the transaction.

meta_data
JSON

An object containing additional data associated with the transaction.

Response

url
string

URL of the payment page.