curl --request POST \
--url 'https://api.stateset.com/api/v1/checkout' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"billing_address": null,
"cart_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"currency": "string",
"customer_email": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method": null,
"shipping_address": null,
"shipping_method": null,
"step": "string",
"subtotal": "string",
"total": "string"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Start checkout from cart
Start checkout from cart
POST
/
api
/
v1
/
checkout
curl --request POST \
--url 'https://api.stateset.com/api/v1/checkout' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"billing_address": null,
"cart_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"currency": "string",
"customer_email": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method": null,
"shipping_address": null,
"shipping_method": null,
"step": "string",
"subtotal": "string",
"total": "string"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Request body
JSON body of typeStartCheckoutRequest.
Responses
ApiResponse_CheckoutSessionResponse
Checkout session started
ErrorResponse
Invalid request
ErrorResponse
Unauthorized
curl --request POST \
--url 'https://api.stateset.com/api/v1/checkout' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"billing_address": null,
"cart_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"currency": "string",
"customer_email": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method": null,
"shipping_address": null,
"shipping_method": null,
"step": "string",
"subtotal": "string",
"total": "string"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
โI