Skip to content
ajar.Get started

Order prepare

starbucks.order.prepare

View connector

Prepare a pickup cart and return a time-bounded order preview

POST /v1/operations/starbucks.order.prepare

Not available · draft. Examples use fictional values and do not execute requests.

Inputs

ParameterExample typeExample value
store_refstring"12198-1"
itemsobject[{"product_ref":"2333","product_id":"2333","quantity":1}]
fulfillmentstring"takeaway"

Example input

{
  "store_ref": "12198-1",
  "items": [
    {
      "product_ref": "2333",
      "product_id": "2333",
      "quantity": 1
    }
  ],
  "fulfillment": "takeaway"
}

Input schema

{
  "$id": "https://priv-platform.local/connectors/starbucks/order-prepare.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "fulfillment": {
      "enum": [
        "takeaway",
        "eat_in"
      ]
    },
    "items": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "customizations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "product_id": {
                  "pattern": "^[0-9]{1,16}$",
                  "type": "string"
                },
                "product_ref": {
                  "pattern": "^[0-9]{1,16}$",
                  "type": "string"
                },
                "quantity": {
                  "maximum": 20,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": [
                "product_ref",
                "product_id",
                "quantity"
              ],
              "type": "object"
            },
            "maxItems": 30,
            "type": "array"
          },
          "product_id": {
            "pattern": "^[0-9]{1,16}$",
            "type": "string"
          },
          "product_ref": {
            "pattern": "^[0-9]{1,16}$",
            "type": "string"
          },
          "quantity": {
            "maximum": 20,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "product_ref",
          "product_id",
          "quantity"
        ],
        "type": "object"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array"
    },
    "store_ref": {
      "pattern": "^[1-9][0-9]{0,7}-[1-9][0-9]{0,7}$",
      "type": "string"
    }
  },
  "required": [
    "store_ref",
    "items",
    "fulfillment"
  ],
  "title": "Starbucks order preparation input",
  "type": "object"
}