AlphaAlpha Docs

Import an Oracle sales mix into a shift

Parses an Oracle Simphony Sales Mix export, matches the sold menu items to Alpha products (by product reference, then by name), creates a sales order from the matched lines and links it to the shift. Unmatched lines are returned so the catalogue can be corrected.

POST
/shifts/{id}/import-oracle-sales-mix
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/shifts/string/import-oracle-sales-mix" \  -F file="string"
{
  "businessDate": "string",
  "matched": [
    {
      "matchedBy": "REFERENCE",
      "pricePerUnit": 0.1,
      "productId": "string",
      "productName": "string",
      "quantity": 0.1,
      "sourceName": "string"
    }
  ],
  "matchedCount": 0,
  "orderId": "string",
  "orderNumber": "string",
  "unmatched": [
    {
      "averagePrice": 0.1,
      "quantity": 0.1,
      "sourceName": "string"
    }
  ],
  "unmatchedCount": 0
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}