Estimate Cart
Response Behavior
SKU Availability
{
"skus": [
{
"sku_id": 10000,
"name": "Nintendo Entertainment System",
"available": true,
"price": 9999,
"quantity": 2,
"line_price": 19998
},
{
"sku_id": 10001,
"name": "Discontinued Controller",
"available": false,
"price": 2999,
"quantity": 1,
"line_price": 2999
}
]
}Inventory Information (BETA)
Field
Type
Description
External Error Messages
Handling Estimation Errors
Single-Merchant Estimation Errors
Multi-Merchant Estimation Errors
Common Error Codes
Code
Error
Description
Response Examples
Successful Estimation (All SKUs Available)
Partial Availability (Some SKUs Unavailable)
Insufficient Inventory
Best Practices
Recommended Implementation Pattern
Common Use Cases
Use Case
What to Check
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Body
Calculate Cart Request
base_currencystring · enum · min: 3 · max: 3OptionalDefault:
The base currency the cart should be calculated in.
USDPossible values: Responses
200
success
application/json
400
bad request
application/json
401
unauthorized
application/json
404
not found
application/json
500
internal server error
application/json
post
/carts/estimateLast updated
Was this helpful?