iglooX DocsDevelopers

Schema

Order Line Item

An immutable line item in a captured purchase.

  • Models

Overview

object · 8 properties · 8 required

Properties

source_reference

string | null Required

The integration's stable reference for this line item. Required and non-null when product_reference or paid_quantity is non-null, including a paid quantity of zero.

Pattern ^[\x21-\x7E]+$
Min length 1
Max length 255
Nullable Yes

product_reference

string | null Required

Stable case-sensitive source product identity, independent of the line reference. Use null for POS custom items without a catalog identity. Such lines are ignored for product-quantity stamp, point and cashback earning; other earning modes and tier spend still apply. Null references are retained in stored purchase facts and replay checksums. No product catalogue lookup is performed.

Pattern ^[\x21-\x7E]+$
Min length 1
Max length 255
Nullable Yes

paid_quantity

string | null Required

Sold units receiving nonzero payment after discounts, before refunds. Cannot exceed quantity; null means not supplied. Required for a non-null product_reference when product-quantity earning applies; may be null for custom items with no product reference. A stable line source_reference is required when paid_quantity is non-null, including zero.

Pattern ^\d{1,14}\.\d{6}$
Nullable Yes

name

string Required

The name displayed for this line item.

Min length 1
Max length 255

quantity

string Required

The positive quantity, normalized to six decimal places.

Example 1.000000
Pattern ^(?=.*[1-9])(?:\d{1,14})(?:\.\d{6})$

total_amount

allOf Required

The current total for the line item, including any modifier value represented by the source system.

All of

All of 1

reference

References Money.

All of 2

object
Nested properties
amount
schema
Minimum 0
Maximum 4294967295

modifiers

array Required

Optional additions or choices associated with this line item.

Min items 0
Array items

Items

object
Nested properties
source_reference
string | null Required

The integration's reference for this modifier, if available.

Pattern ^[\x21-\x7E]+$
Min length 1
Max length 255
Nullable Yes
name
string Required

The name displayed for this modifier.

Min length 1
Max length 255
quantity
string Required

The positive quantity, normalized to six decimal places.

Example 1.000000
Pattern ^(?=.*[1-9])(?:\d{1,14})(?:\.\d{6})$
total_amount
allOf Required

The current modifier total.

All of
All of 1
reference

References Money.

All of 2
object
Nested properties
amount
schema
Minimum 0
Maximum 4294967295
metadata
oneOf Required

Integration-specific modifier context.

One of
One of 1
object
One of 2
array
Array items
Items
schema

metadata

oneOf Required

Integration-specific line-item context.

Nullable Yes
One of

One of 1

null

One of 2

object

One of 3

array
Array items
Items
schema

Used by

Raw YAML
Download source
title: Order Line Item
type: object
x-tags:
  - Models
description: An immutable line item in a captured purchase.
required:
  - source_reference
  - product_reference
  - paid_quantity
  - name
  - quantity
  - total_amount
  - modifiers
  - metadata
properties:
  source_reference:
    type:
      - string
      - 'null'
    minLength: 1
    maxLength: 255
    pattern: '^[\x21-\x7E]+$'
    description: The integration's stable reference for this line item. Required and non-null when product_reference or paid_quantity is non-null, including a paid quantity of zero.
  product_reference:
    type: [string, 'null']
    minLength: 1
    maxLength: 255
    pattern: '^[\x21-\x7E]+$'
    description: Stable case-sensitive source product identity, independent of the line reference. Use null for POS custom items without a catalog identity. Such lines are ignored for product-quantity stamp, point and cashback earning; other earning modes and tier spend still apply. Null references are retained in stored purchase facts and replay checksums. No product catalogue lookup is performed.
  paid_quantity:
    type: [string, 'null']
    pattern: '^\d{1,14}\.\d{6}$'
    description: Sold units receiving nonzero payment after discounts, before refunds. Cannot exceed quantity; null means not supplied. Required for a non-null product_reference when product-quantity earning applies; may be null for custom items with no product reference. A stable line source_reference is required when paid_quantity is non-null, including zero.
  name:
    type: string
    minLength: 1
    maxLength: 255
    description: The name displayed for this line item.
  quantity:
    type: string
    pattern: '^(?=.*[1-9])(?:\d{1,14})(?:\.\d{6})$'
    example: '1.000000'
    description: The positive quantity, normalized to six decimal places.
  total_amount:
    allOf:
      - $ref: ./Money.yaml
      - type: object
        properties:
          amount:
            minimum: 0
            maximum: 4294967295
    description: The current total for the line item, including any modifier value represented by the source system.
  modifiers:
    type: array
    minItems: 0
    description: Optional additions or choices associated with this line item.
    items:
      type: object
      required:
        - source_reference
        - name
        - quantity
        - total_amount
        - metadata
      properties:
        source_reference:
          type:
            - string
            - 'null'
          minLength: 1
          maxLength: 255
          pattern: '^[\x21-\x7E]+$'
          description: The integration's reference for this modifier, if available.
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: The name displayed for this modifier.
        quantity:
          type: string
          pattern: '^(?=.*[1-9])(?:\d{1,14})(?:\.\d{6})$'
          example: '1.000000'
          description: The positive quantity, normalized to six decimal places.
        total_amount:
          allOf:
            - $ref: ./Money.yaml
            - type: object
              properties:
                amount:
                  minimum: 0
                  maximum: 4294967295
          description: The current modifier total.
        metadata:
          oneOf:
            - type: object
              additionalProperties: true
            - type: array
              items: {}
          description: Integration-specific modifier context.
  metadata:
    oneOf:
      - type: 'null'
      - type: object
        additionalProperties: true
      - type: array
        items: {}
    description: Integration-specific line-item context.

Search documentation

Search across this documentation site.