Lunchbox · JSON Structure

Pos Pos Order Structure

PosOrder schema from Lunchbox POS API

Type: object Properties: 9
RestaurantOnline OrderingGuest EngagementCateringMenusOrdersLoyaltyEnterprise

PosOrder is a JSON Structure definition published by Lunchbox, describing 9 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

pos_store_id order_id ready_ts service_type_id service_type status customer location charges

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lunchbox/refs/heads/main/json-structure/pos-pos-order-structure.json",
  "name": "PosOrder",
  "description": "PosOrder schema from Lunchbox POS API",
  "type": "object",
  "properties": {
    "pos_store_id": {
      "type": "string",
      "example": "123456"
    },
    "order_id": {
      "type": "string",
      "example": 1234
    },
    "ready_ts": {
      "type": "datetime",
      "example": "2023-07-25T06:00:00-04:00"
    },
    "service_type_id": {
      "type": "int32",
      "example": 1234
    },
    "service_type": {
      "type": "string",
      "example": "string"
    },
    "status": {
      "type": "object",
      "properties": {
        "is_finalized": {
          "type": "boolean"
        },
        "is_completed": {
          "type": "boolean"
        },
        "is_canceled": {
          "type": "boolean"
        }
      },
      "example": {}
    },
    "customer": {
      "type": "object",
      "properties": {
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "company_name": {
          "type": "string"
        },
        "customer_id": {
          "type": "int32"
        },
        "email": {
          "type": "string"
        }
      },
      "example": {}
    },
    "location": {
      "$ref": "#/components/schemas/PosOrderLocation"
    },
    "charges": {
      "type": "object",
      "properties": {
        "total_cents": {
          "type": "int32"
        },
        "subtotal_cents": {
          "type": "int32"
        },
        "tax_cents": {
          "type": "int32"
        },
        "delivery_cents": {
          "type": "int32"
        },
        "tip_cents": {
          "type": "int32"
        },
        "remaining_cents": {
          "type": "int32"
        }
      },
      "example": {}
    }
  }
}