sayren Docs
Cart

Add item

POST
/storefront/v1/cart/items
AuthorizationBearer <token>

회원 accessToken

In: header

Header Parameters

x-cart-token*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

productId*string
optionId?string
quantity*integer
Range1 <= value <= 999

Response Body

curl -X POST "https://example.com/storefront/v1/cart/items" \  -H "x-cart-token: string" \  -H "Content-Type: application/json" \  -d '{    "productId": "string",    "quantity": 1  }'
Empty