curl --request POST \
--url 'https://api.stateset.com/api/v1/carts' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"currency": null,
"customer_email": null,
"customer_id": null,
"customer_name": null,
"expires_in_minutes": null,
"items": [
{
"description": null,
"image_url": null,
"name": "string",
"original_price": null,
"product_id": null,
"quantity": 1,
"requires_shipping": null,
"sku": "string",
"unit_price": "string"
}
],
"notes": null
}'
{
"cart_number": "string",
"created_at": "string",
"currency": "string",
"customer_email": null,
"customer_id": null,
"discount_amount": "string",
"grand_total": "string",
"id": "string",
"items": [
{
"discount_amount": "string",
"id": "string",
"name": "string",
"product_id": null,
"quantity": 1,
"sku": "string",
"total": "string",
"unit_price": "string"
}
],
"order_id": null,
"order_number": null,
"payment_method": null,
"shipping_amount": "string",
"shipping_method": null,
"status": "string",
"subtotal": "string",
"tax_amount": "string"
}
Create a carts
Create a carts
POST
/
api
/
v1
/
carts
curl --request POST \
--url 'https://api.stateset.com/api/v1/carts' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"currency": null,
"customer_email": null,
"customer_id": null,
"customer_name": null,
"expires_in_minutes": null,
"items": [
{
"description": null,
"image_url": null,
"name": "string",
"original_price": null,
"product_id": null,
"quantity": 1,
"requires_shipping": null,
"sku": "string",
"unit_price": "string"
}
],
"notes": null
}'
{
"cart_number": "string",
"created_at": "string",
"currency": "string",
"customer_email": null,
"customer_id": null,
"discount_amount": "string",
"grand_total": "string",
"id": "string",
"items": [
{
"discount_amount": "string",
"id": "string",
"name": "string",
"product_id": null,
"quantity": 1,
"sku": "string",
"total": "string",
"unit_price": "string"
}
],
"order_id": null,
"order_number": null,
"payment_method": null,
"shipping_amount": "string",
"shipping_method": null,
"status": "string",
"subtotal": "string",
"tax_amount": "string"
}
Request body
CreateCartRequest
string,null
ISO 4217 currency code, e.g.
USD.string,null
string,null
string,null
integer,null (int64)
AddCartItemRequest[]
string,null
Responses
CartResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/carts' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"currency": null,
"customer_email": null,
"customer_id": null,
"customer_name": null,
"expires_in_minutes": null,
"items": [
{
"description": null,
"image_url": null,
"name": "string",
"original_price": null,
"product_id": null,
"quantity": 1,
"requires_shipping": null,
"sku": "string",
"unit_price": "string"
}
],
"notes": null
}'
{
"cart_number": "string",
"created_at": "string",
"currency": "string",
"customer_email": null,
"customer_id": null,
"discount_amount": "string",
"grand_total": "string",
"id": "string",
"items": [
{
"discount_amount": "string",
"id": "string",
"name": "string",
"product_id": null,
"quantity": 1,
"sku": "string",
"total": "string",
"unit_price": "string"
}
],
"order_id": null,
"order_number": null,
"payment_method": null,
"shipping_amount": "string",
"shipping_method": null,
"status": "string",
"subtotal": "string",
"tax_amount": "string"
}
โI