Skip to content
ajar.Get started

Order submit

starbucks.order.submit

View connector

Submit a previously prepared Starbucks pickup order

POST /v1/operations/starbucks.order.submit

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

Inputs

ParameterExample typeExample value
prepared_order_refstring"example-prepared-order"
payment_method_refstring"example-payment-method"
expected_totalobject{"amount_minor":450,"currency":"GBP"}

Example input

{
  "prepared_order_ref": "example-prepared-order",
  "payment_method_ref": "example-payment-method",
  "expected_total": {
    "amount_minor": 450,
    "currency": "GBP"
  }
}

Input schema

{
  "$defs": {
    "Money": {
      "additionalProperties": false,
      "properties": {
        "amount_minor": {
          "type": "integer"
        },
        "currency": {
          "pattern": "^[A-Z]{3}$",
          "type": "string"
        }
      },
      "required": [
        "amount_minor",
        "currency"
      ],
      "title": "Money",
      "type": "object"
    }
  },
  "$id": "https://priv-platform.local/connectors/starbucks/order-submit.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "expected_total": {
      "$ref": "#/$defs/Money"
    },
    "payment_method_ref": {
      "maxLength": 256,
      "minLength": 1,
      "type": "string"
    },
    "prepared_order_ref": {
      "maxLength": 512,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "prepared_order_ref",
    "payment_method_ref",
    "expected_total"
  ],
  "title": "Starbucks order submission input",
  "type": "object"
}