post https://api.elements-sandbox.io/api/v1/checkout/sessions
Response
xxxxxxxxxx
30curl --location --request POST 'https://api.elements-sandbox.io/api/v1/checkout/sessions' \
--header 'Authorization: Bearer xxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"cancel_url": "https://example.com/cancel",
"success_url": "https://example.com/success",
"customer_id": "123eqwadsasd",
"payment_method_types": [
"google_pay", "apple_pay", "card"
],
"line_items": [
{
"name": "NEMO CUBING BOT",
"quantity": "1",
"type": "product",
"currency": "USD",
"unit_amount_subunit": "1999",
"image_url": "https://xxxxx.jpg",
"description": "This is NEMO CUBING BOT"
},
{
"name": "Sales Tax(15%)",
"type": "tax",
"currency": "USD",
"unit_amount_subunit": "899"
}
],
"mode": "payment",
"client_reference_id": "client_reference_id_xx"