Create Cart
Handling Cart Creation Errors
Single Bag Cart Creation Errors
{
"message": "SHOPIFY returned a Server Error, preventing the creation of the external cart. Please retry your request.",
"error": "external_cart_creation_failure",
"code": 2503,
"data": {
"cause": "ORDER_ERROR",
"skus": [
{
"message": "Unable to add item to cart due to cart creation failure.",
"name": "Nintendo Entertainment System",
"sku_id": 99999
}
]
}
}Multi-Bag Cart Creation Errors
Query parameters
app_order_idstringOptionalDeprecated
Deprecated: Use request body instead.
base_currencystringOptionalDeprecated
Deprecated: Use request body instead.
referral_idstringOptionalDeprecated
Deprecated: Use request body instead.
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Body
Optional data to initialize the cart with upon creation.
base_currencystring · nullableOptionalDefault:
Base currency that the cart should operate in.
USDreferral_idstring · nullableOptional
Associate the cart with a user or affiliate in your system. This value can also be added later on cart submission.
app_order_idstring · nullableOptional
Associate the cart with an order record in your system. This value can also be added later on cart submission.
wallet_based_checkoutbooleanOptionalDefault:
Boolean denoting whether or not this order will be placed through a wallet based payment mechanism such as apple pay.
falseResponses
200
create cart success
application/json
202
create cart with error
application/json
400
bad request
application/json
422
unprocessable entity
application/json
post
/checkout/cartLast updated
Was this helpful?