Admin api sessions

Update live cart

PUT
/api/admin/v2/sessions/{sessionId}/cart

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

sessionId*string

A unique token to identify a shopping session. Note, sessionToken and sessionId are same concept in AIFI system.

Request Body

application/json

cart*

Response Body

application/json

application/json

curl -X PUT "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/sessions/d3a00526-1864-4f6e-bb2d-46e3ab7fa780/cart" \  -H "Content-Type: application/json" \  -d '{    "cart": {      "products": [        {          "productId": 1,          "quantity": 0,          "status": "correct"        }      ]    }  }'
{
  "products": [
    {
      "productId": 1,
      "quantity": 0
    }
  ]
}
Empty
Empty
{
  "message": "Invalid request body",
  "type": "E_INVALID_BODY",
  "errors": [
    {
      "error": "\"email\" is required",
      "rule": "any.required",
      "field": "\"email\""
    }
  ]
}
Empty

How is this guide?

AiFI AI Chat

Beta

Powered by AiFi

Ask docs or API questions to get grounded answers.