Lightspeed · Schema

apeToGoOrderItemLine

apeToGoOrderItemLine schema from Lightspeed Restaurant K Series API

POSRetailRestaurantEcommerce

Properties

Name Type Description
quantity integer Quantity of item to be ordered.
sku string The SKU of the item to be ordered.
customItemName string The custom name to be used, if overwriting is permitted for this item.
customItemPrice number The custom price to be used, if custom pricing is permitted for this item.
discountAmountOverride number The custom discount amount applied to this item. Only one of `discountAmountOverride` or `discountPercentOverride` can be set.
discountPercentOverride number The custom percentage discount applied to this item. Only one of `discountAmountOverride` or `discountPercentOverride` can be set.
modifiers array Collection of [modifiers](https://api-docs.lsk.lightspeed.app/operation/operation-apeloadallmodifiers) to be applied to this item.
discountCode string The discount code being applied to this item, if applicable.
subItems array
View JSON Schema on GitHub

JSON Schema

restaurant-k-series-ape-to-go-order-item-line-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "apeToGoOrderItemLine",
  "description": "apeToGoOrderItemLine schema from Lightspeed Restaurant K Series API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lightspeed-pos/refs/heads/main/json-schema/restaurant-k-series-ape-to-go-order-item-line-schema.json",
  "type": "object",
  "properties": {
    "quantity": {
      "example": 1,
      "description": "Quantity of item to be ordered.",
      "type": "integer",
      "format": "int32"
    },
    "sku": {
      "example": "UGG-BB-PUR-06",
      "maxLength": 25,
      "description": "The SKU of the item to be ordered.",
      "type": "string"
    },
    "customItemName": {
      "example": "My Custom Item Name",
      "description": "The custom name to be used, if overwriting is permitted for this item.",
      "type": "string"
    },
    "customItemPrice": {
      "example": 10.0,
      "description": "The custom price to be used, if custom pricing is permitted for this item.",
      "type": "number"
    },
    "discountAmountOverride": {
      "description": "The custom discount amount applied to this item. Only one of `discountAmountOverride` or `discountPercentOverride` can be set.",
      "type": "number",
      "example": 5.0
    },
    "discountPercentOverride": {
      "description": "The custom percentage discount applied to this item. Only one of `discountAmountOverride` or `discountPercentOverride` can be set.",
      "type": "number",
      "example": 10.0
    },
    "modifiers": {
      "description": "Collection of [modifiers](https://api-docs.lsk.lightspeed.app/operation/operation-apeloadallmodifiers) to be applied to this item.",
      "type": "array",
      "items": {
        "properties": {
          "modifierId": {
            "example": "236025632784492",
            "description": "Modifier ID to be applied to this item.",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "discountCode": {
      "example": "FIVEPERCENT",
      "description": "The discount code being applied to this item, if applicable.",
      "type": "string"
    },
    "subItems": {
      "type": "array",
      "items": {
        "required": [
          "quantity",
          "sku"
        ],
        "properties": {
          "quantity": {
            "example": 1,
            "description": "Quantity of sub-item to be ordered.",
            "type": "integer",
            "format": "int32"
          },
          "sku": {
            "example": "ABC-123",
            "maxLength": 25,
            "description": "The SKU of the sub-item to be ordered.",
            "type": "string"
          },
          "customItemName": {
            "example": "My Custom Sub-Item Name",
            "description": "The custom name to be used if overwriting is supported for this sub-item.",
            "type": "string"
          },
          "customItemPrice": {
            "example": 2.0,
            "description": "The custom price to be used if overwriting is supported for this sub-item.",
            "type": "number"
          },
          "modifiers": {
            "description": "Collection of modifiers to be applied to this sub-item.",
            "items": {
              "properties": {
                "modifierId": {
                  "example": "236025632784492",
                  "description": "Modifier ID to be applied to this item.",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "subItems": {
            "description": "Product modifiers applied to this item.",
            "items": {
              "required": [
                "quantity",
                "sku"
              ],
              "properties": {
                "quantity": {
                  "example": 1,
                  "description": "Quantity of sub-item to be ordered.",
                  "type": "integer",
                  "format": "int32"
                },
                "sku": {
                  "example": "ABC-123",
                  "maxLength": 25,
                  "description": "The SKU of the sub-item to be ordered.",
                  "type": "string"
                },
                "customItemName": {
                  "example": "My Custom Sub-Item Name",
                  "description": "The custom name to be used if overwriting is supported for this sub-item.",
                  "type": "string"
                },
                "customItemPrice": {
                  "example": 2.0,
                  "description": "The custom price to be used if overwriting is supported for this sub-item.",
                  "type": "number"
                },
                "modifiers": {
                  "description": "Collection of modifiers to be applied to this sub-item.",
                  "items": {
                    "properties": {
                      "modifierId": {
                        "example": "236025632784492",
                        "description": "Modifier ID to be applied to this item.",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                },
                "subItems": {
                  "description": "Product modifiers applied to this item.",
                  "items": {
                    "required": [
                      "quantity",
                      "sku"
                    ],
                    "properties": {
                      "quantity": {
                        "example": 1,
                        "description": "Quantity of sub-item to be ordered.",
                        "type": "integer",
                        "format": "int32"
                      },
                      "sku": {
                        "example": "ABC-123",
                        "maxLength": 25,
                        "description": "The SKU of the sub-item to be ordered.",
                        "type": "string"
                      },
                      "customItemName": {
                        "example": "My Custom Sub-Item Name",
                        "description": "The custom name to be used if overwriting is supported for this sub-item.",
                        "type": "string"
                      },
                      "customItemPrice": {
                        "example": 2.0,
                        "description": "The custom price to be used if overwriting is supported for this sub-item.",
                        "type": "number"
                      },
                      "modifiers": {
                        "description": "Collection of modifiers to be applied to this sub-item.",
                        "items": {
                          "properties": {
                            "modifierId": {
                              "example": "236025632784492",
                              "description": "Modifier ID to be applied to this item.",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "subItems": {
                        "description": "Product modifiers applied to this item.",
                        "items": {
                          "required": [
                            "quantity",
                            "sku"
                          ],
                          "properties": {
                            "quantity": {
                              "example": 1,
                              "description": "Quantity of sub-item to be ordered.",
                              "type": "integer",
                              "format": "int32"
                            },
                            "sku": {
                              "example": "ABC-123",
                              "maxLength": 25,
                              "description": "The SKU of the sub-item to be ordered.",
                              "type": "string"
                            },
                            "customItemName": {
                              "example": "My Custom Sub-Item Name",
                              "description": "The custom name to be used if overwriting is supported for this sub-item.",
                              "type": "string"
                            },
                            "customItemPrice": {
                              "example": 2.0,
                              "description": "The custom price to be used if overwriting is supported for this sub-item.",
                              "type": "number"
                            },
                            "modifiers": {
                              "description": "Collection of modifiers to be applied to this sub-item.",
                              "items": {
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "subItems": {
                              "description": "Product modifiers applied to this item.",
                              "items": {
                                "type": "object"
                              },
                              "type": "array"
                            }
                          },
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "type": "object"
      }
    }
  },
  "required": [
    "quantity",
    "sku"
  ]
}