MobiariDocs
Admin APIConversations

Get the conversation's cart

GET
/stores/{store_id}/conversations/{conversation_id}/cart

The assisted-sale cart: one per conversation, shared live with the bot and the contact (cart:updated events). 404 no_cart until the first item is added.

Authorization

bearer_auth
AuthorizationBearer <token>

Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.

In: header

Path Parameters

store_id*string

Store id

Formatuuid
conversation_id*string

Conversation id

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/cart"
{
  "cart_id": "b5b98de2-0f5f-4a68-b8c7-2aa7bb7683bb",
  "currency": "string",
  "discount_cents": 0,
  "expires_at": "2019-08-24T14:15:22Z",
  "item_count": 0,
  "items": [
    {
      "image": "string",
      "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
      "quantity": 0,
      "sku": "string",
      "title": "string",
      "total_cents": 0,
      "unit_price_cents": 0,
      "variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6"
    }
  ],
  "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",
  "order_number": "string",
  "paid": true,
  "shipping_cents": 0,
  "status": "string",
  "subtotal_cents": 0,
  "total_cents": 0,
  "url": "string"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}