Skip to main content
POST
/
cart
/
details
/
status
Cart Details Status
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": {}
}

Authorizations

x-api-key
string
header
required

Body

application/json
refId
string
required

Reference ID used for checking status

Pattern: ^[a-zA-Z]{3}-ref_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}$

Response

Cart details status retrieved successfully

refId
string
required
Pattern: ^[a-zA-Z]{3}-ref_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}$
status
enum<string>
required
Available options:
pending,
processing,
complete,
failed
result
object
error
object