curl --request POST \
--url https://api.henrylabs.ai/v1/cart/details/status \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"refId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
'{
"refId": "<string>",
"status": "pending",
"result": {
"items": [
{
"shippingOptions": [
{
"id": "<string>",
"name": "<string>",
"cost": {
"value": 123,
"currency": "USD"
},
"timeEstimate": "<string>",
"minDate": "<string>",
"maxDate": "<string>"
}
],
"costs": {
"subtotal": {
"value": 123,
"currency": "USD"
},
"total": {
"value": 123,
"currency": "USD"
},
"tax": {
"value": 123,
"currency": "USD"
},
"shipping": {
"value": 123,
"currency": "USD"
},
"discount": {
"value": 123,
"currency": "USD"
}
},
"coupons": [
{
"code": "<string>",
"available": true,
"savedAmount": {
"value": 123,
"currency": "USD"
}
}
],
"metadata": {}
}
]
},
"error": {}
}Check the status of a cart details retrieval job and get results when ready.
curl --request POST \
--url https://api.henrylabs.ai/v1/cart/details/status \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"refId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
'{
"refId": "<string>",
"status": "pending",
"result": {
"items": [
{
"shippingOptions": [
{
"id": "<string>",
"name": "<string>",
"cost": {
"value": 123,
"currency": "USD"
},
"timeEstimate": "<string>",
"minDate": "<string>",
"maxDate": "<string>"
}
],
"costs": {
"subtotal": {
"value": 123,
"currency": "USD"
},
"total": {
"value": 123,
"currency": "USD"
},
"tax": {
"value": 123,
"currency": "USD"
},
"shipping": {
"value": 123,
"currency": "USD"
},
"discount": {
"value": 123,
"currency": "USD"
}
},
"coupons": [
{
"code": "<string>",
"available": true,
"savedAmount": {
"value": 123,
"currency": "USD"
}
}
],
"metadata": {}
}
]
},
"error": {}
}Reference ID used for checking status
^[a-zA-Z]{3}-ref_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}$Was this page helpful?