Admin api sessions

Manual checkout

POST
/api/admin/v2/sessions/{sessionId}/checkout

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

transactionId?integer

ID of transaction for specified shopping session. Should not be specified by retailer. If not provided will be evaluated automatically

cart*

Response Body

application/json

application/json

curl -X POST "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/sessions/d3a00526-1864-4f6e-bb2d-46e3ab7fa780/checkout" \  -H "Content-Type: application/json" \  -d '{    "cart": {      "products": [        {          "productId": 1,          "quantity": 0        }      ]    }  }'
{
  "orderId": 1234,
  "storeId": 0,
  "store": {
    "oasisApiStoreId": 0,
    "aifiUniqueStoreId": "string"
  },
  "totalPrice": "1.50",
  "paymentTransactionId": "string",
  "paymentFailed": true
}
Empty
Empty
{
  "message": "Invalid request body",
  "type": "E_INVALID_BODY",
  "errors": [
    {
      "error": "\"email\" is required",
      "rule": "any.required",
      "field": "\"email\""
    }
  ]
}

How is this guide?

AiFI AI Chat

Beta

Powered by AiFi

Ask docs or API questions to get grounded answers.