TrellisDevelopers

Orders Checks

POST
/orders/{id}/checks/split

Path Parameters

id*string
Length1 <= length

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/orders/string/checks/split" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123" \  -H "Content-Type: application/json" \  -d '{    "mode": "seat"  }'
{  "sourceOrder": {    "id": "string",    "orderNumber": 0,    "customerId": "string",    "customerName": "string",    "guestName": "string",    "locationId": "string",    "assignedStaffUserId": "string",    "status": "draft",    "source": "pos",    "fulfillmentMode": "dine_in",    "tableId": "string",    "sectionId": "string",    "serviceAreaId": "string",    "tableLabel": "string",    "seatCount": 0,    "note": "string",    "fundraising": {      "campaignId": "string",      "campaignCode": "string",      "campaignName": "string",      "causeName": "string",      "contributionType": "round_up",      "contributionValue": 0,      "contributionAmountCents": 0    },    "lineItems": [      {        "id": "string",        "lineType": "catalog",        "sendStatus": "new",        "productId": "string",        "title": "string",        "quantity": 1,        "unitPrice": 0,        "taxRateBps": 0,        "taxCode": "food",        "category": "string",        "salesCategory": "string",        "openItemScope": "food",        "pricingStrategyApplied": "base",        "menuId": "string",        "sizeName": "string",        "seatId": "string",        "seatNumber": 1,        "course": "string",        "diningOption": "dine_in",        "diningOptionLabel": "string",        "prepTimeSeconds": 0,        "modifiers": [          {            "productId": "string",            "title": "string",            "priceDelta": 0,            "quantity": 1,            "groupId": "string",            "groupTitle": "string",            "portionId": "string",            "portionLabel": "string",            "portionPriceMultiplier": 0,            "pricingStrategy": "no_charge",            "openPriceAmount": 0,            "sizeName": "string",            "sequenceOrdinal": 1,            "preModifierOptionId": "string",            "preModifierLabel": "string",            "preModifierPosition": "prefix",            "displayLabel": "string",            "defaultApplied": true,            "modifiers": [              null            ],            "routing": {              "prepStationIds": [                "string"              ],              "assemblyLineId": "string",              "immediatePrepStationIds": [                "string"              ],              "modifierRouting": "with_parent",              "ticketDestination": "prep_only",              "appliedRuleIds": [                "string"              ]            }          }        ],        "routing": {          "prepStationIds": [            "string"          ],          "assemblyLineId": "string",          "immediatePrepStationIds": [            "string"          ],          "modifierRouting": "with_parent",          "ticketDestination": "prep_only",          "appliedRuleIds": [            "string"          ]        },        "voidReasonId": "string",        "voidReasonName": "string",        "voidedAt": "string",        "voidedByStaffUserId": "string",        "voidedByStaffName": "string",        "giftCardSale": {          "cardType": "Physical",          "code": "string",          "recipientName": "string",          "recipientEmail": "string",          "recipientPhone": "string",          "fromName": "string",          "purchaserEmail": "string",          "purchaserPhone": "string",          "giftMessage": "string",          "notes": "string",          "deliveryChannel": "email",          "deliveryDestination": "string",          "deliveryScheduledAt": "2019-08-24T14:15:22Z",          "notifyPurchaserWhenOpened": true        }      }    ],    "appliedDiscounts": [      {        "id": "string",        "sourceType": "promotion",        "sourceId": "string",        "code": "string",        "title": "string",        "scope": "order",        "lineItemId": "string",        "actionMessage": "string",        "appliesTo": "Store",        "appliesToObjectIds": [          "string"        ],        "combinability": "combinable",        "stackingScope": "order",        "requiresManagerApproval": true,        "managerApprovedByStaffUserId": "string",        "excludesServiceCharges": true,        "serviceChargeInteraction": "pre_discount",        "eligibilitySummary": "string",        "discountType": "amount",        "value": 0,        "amount": 0      }    ],    "subtotal": 0,    "discountTotal": 0,    "taxTotal": 0,    "tipTotal": 0,    "total": 0,    "balanceDue": 0,    "paymentIntentIds": [      "string"    ],    "submittedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "offPremise": {      "channel": {        "kind": "first_party",        "provider": "string"      },      "customer": {        "customerId": "string",        "firstName": "string",        "lastName": "string",        "phone": "string",        "email": "user@example.com"      },      "quote": {        "strategy": "manual",        "quoteTimeApplies": true,        "quotedAt": "2019-08-24T14:15:22Z",        "scheduledFor": "2019-08-24T14:15:22Z",        "promisedFulfillmentAt": "2019-08-24T14:15:22Z",        "takeoutQuoteMinutes": 0,        "deliveryQuoteMinutes": 0,        "takeoutThrottlingMinutes": 0,        "deliveryThrottlingMinutes": 0,        "throttlingAppliedMinutes": 0,        "leadTimeHours": 0,        "minimumLeadTimeSatisfied": true,        "withinConfiguredOrderingHours": true,        "quoteExemptionReason": "third_party_channel"      },      "readyAt": "2019-08-24T14:15:22Z",      "staging": {        "state": "pending",        "batchId": "string",        "batchLabel": "string",        "stagingArea": "string",        "stagingSlot": "string",        "handoffZone": "string",        "batchReadyAt": "2019-08-24T14:15:22Z",        "stagedAt": "2019-08-24T14:15:22Z",        "readyBy": {          "staffUserId": "string",          "displayName": "string"        }      },      "guestMessaging": {        "enabled": true,        "preferredChannel": "sms",        "notifications": [          {            "event": "batch_ready",            "template": "order_ready",            "channel": "sms",            "status": "pending",            "recipient": "string",            "subject": "string",            "body": "string",            "updatedAt": "2019-08-24T14:15:22Z",            "sentAt": "2019-08-24T14:15:22Z",            "failureReason": "string"          }        ],        "lastUpdatedAt": "2019-08-24T14:15:22Z"      },      "pickup": {        "kind": "standard",        "state": "pending",        "stagedAt": "2019-08-24T14:15:22Z",        "arrivedAt": "2019-08-24T14:15:22Z",        "completedAt": "2019-08-24T14:15:22Z",        "curbside": {          "vehicleMakeModel": "string",          "vehicleColor": "string",          "instructions": "string",          "parkingSpot": "string",          "arrivalNote": "string"        }      },      "delivery": {        "addressId": "string",        "addressLabel": "string",        "state": "pending",        "instructions": "string",        "deliveryNotes": "string",        "stagedAt": "2019-08-24T14:15:22Z",        "dispatchedAt": "2019-08-24T14:15:22Z",        "deliveredAt": "2019-08-24T14:15:22Z",        "dispatchNote": "string",        "dispatch": {          "assignmentMode": "unassigned",          "assignedDriver": {            "staffUserId": "string",            "displayName": "string"          },          "dispatchedBy": {            "staffUserId": "string",            "displayName": "string"          },          "courierName": "string",          "courierPhone": "string",          "vehicleLabel": "string",          "assignedAt": "2019-08-24T14:15:22Z"        }      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  },  "splitOrder": {    "id": "string",    "orderNumber": 0,    "customerId": "string",    "customerName": "string",    "guestName": "string",    "locationId": "string",    "assignedStaffUserId": "string",    "status": "draft",    "source": "pos",    "fulfillmentMode": "dine_in",    "tableId": "string",    "sectionId": "string",    "serviceAreaId": "string",    "tableLabel": "string",    "seatCount": 0,    "note": "string",    "fundraising": {      "campaignId": "string",      "campaignCode": "string",      "campaignName": "string",      "causeName": "string",      "contributionType": "round_up",      "contributionValue": 0,      "contributionAmountCents": 0    },    "lineItems": [      {        "id": "string",        "lineType": "catalog",        "sendStatus": "new",        "productId": "string",        "title": "string",        "quantity": 1,        "unitPrice": 0,        "taxRateBps": 0,        "taxCode": "food",        "category": "string",        "salesCategory": "string",        "openItemScope": "food",        "pricingStrategyApplied": "base",        "menuId": "string",        "sizeName": "string",        "seatId": "string",        "seatNumber": 1,        "course": "string",        "diningOption": "dine_in",        "diningOptionLabel": "string",        "prepTimeSeconds": 0,        "modifiers": [          {            "productId": "string",            "title": "string",            "priceDelta": 0,            "quantity": 1,            "groupId": "string",            "groupTitle": "string",            "portionId": "string",            "portionLabel": "string",            "portionPriceMultiplier": 0,            "pricingStrategy": "no_charge",            "openPriceAmount": 0,            "sizeName": "string",            "sequenceOrdinal": 1,            "preModifierOptionId": "string",            "preModifierLabel": "string",            "preModifierPosition": "prefix",            "displayLabel": "string",            "defaultApplied": true,            "modifiers": [              null            ],            "routing": {              "prepStationIds": [                "string"              ],              "assemblyLineId": "string",              "immediatePrepStationIds": [                "string"              ],              "modifierRouting": "with_parent",              "ticketDestination": "prep_only",              "appliedRuleIds": [                "string"              ]            }          }        ],        "routing": {          "prepStationIds": [            "string"          ],          "assemblyLineId": "string",          "immediatePrepStationIds": [            "string"          ],          "modifierRouting": "with_parent",          "ticketDestination": "prep_only",          "appliedRuleIds": [            "string"          ]        },        "voidReasonId": "string",        "voidReasonName": "string",        "voidedAt": "string",        "voidedByStaffUserId": "string",        "voidedByStaffName": "string",        "giftCardSale": {          "cardType": "Physical",          "code": "string",          "recipientName": "string",          "recipientEmail": "string",          "recipientPhone": "string",          "fromName": "string",          "purchaserEmail": "string",          "purchaserPhone": "string",          "giftMessage": "string",          "notes": "string",          "deliveryChannel": "email",          "deliveryDestination": "string",          "deliveryScheduledAt": "2019-08-24T14:15:22Z",          "notifyPurchaserWhenOpened": true        }      }    ],    "appliedDiscounts": [      {        "id": "string",        "sourceType": "promotion",        "sourceId": "string",        "code": "string",        "title": "string",        "scope": "order",        "lineItemId": "string",        "actionMessage": "string",        "appliesTo": "Store",        "appliesToObjectIds": [          "string"        ],        "combinability": "combinable",        "stackingScope": "order",        "requiresManagerApproval": true,        "managerApprovedByStaffUserId": "string",        "excludesServiceCharges": true,        "serviceChargeInteraction": "pre_discount",        "eligibilitySummary": "string",        "discountType": "amount",        "value": 0,        "amount": 0      }    ],    "subtotal": 0,    "discountTotal": 0,    "taxTotal": 0,    "tipTotal": 0,    "total": 0,    "balanceDue": 0,    "paymentIntentIds": [      "string"    ],    "submittedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "offPremise": {      "channel": {        "kind": "first_party",        "provider": "string"      },      "customer": {        "customerId": "string",        "firstName": "string",        "lastName": "string",        "phone": "string",        "email": "user@example.com"      },      "quote": {        "strategy": "manual",        "quoteTimeApplies": true,        "quotedAt": "2019-08-24T14:15:22Z",        "scheduledFor": "2019-08-24T14:15:22Z",        "promisedFulfillmentAt": "2019-08-24T14:15:22Z",        "takeoutQuoteMinutes": 0,        "deliveryQuoteMinutes": 0,        "takeoutThrottlingMinutes": 0,        "deliveryThrottlingMinutes": 0,        "throttlingAppliedMinutes": 0,        "leadTimeHours": 0,        "minimumLeadTimeSatisfied": true,        "withinConfiguredOrderingHours": true,        "quoteExemptionReason": "third_party_channel"      },      "readyAt": "2019-08-24T14:15:22Z",      "staging": {        "state": "pending",        "batchId": "string",        "batchLabel": "string",        "stagingArea": "string",        "stagingSlot": "string",        "handoffZone": "string",        "batchReadyAt": "2019-08-24T14:15:22Z",        "stagedAt": "2019-08-24T14:15:22Z",        "readyBy": {          "staffUserId": "string",          "displayName": "string"        }      },      "guestMessaging": {        "enabled": true,        "preferredChannel": "sms",        "notifications": [          {            "event": "batch_ready",            "template": "order_ready",            "channel": "sms",            "status": "pending",            "recipient": "string",            "subject": "string",            "body": "string",            "updatedAt": "2019-08-24T14:15:22Z",            "sentAt": "2019-08-24T14:15:22Z",            "failureReason": "string"          }        ],        "lastUpdatedAt": "2019-08-24T14:15:22Z"      },      "pickup": {        "kind": "standard",        "state": "pending",        "stagedAt": "2019-08-24T14:15:22Z",        "arrivedAt": "2019-08-24T14:15:22Z",        "completedAt": "2019-08-24T14:15:22Z",        "curbside": {          "vehicleMakeModel": "string",          "vehicleColor": "string",          "instructions": "string",          "parkingSpot": "string",          "arrivalNote": "string"        }      },      "delivery": {        "addressId": "string",        "addressLabel": "string",        "state": "pending",        "instructions": "string",        "deliveryNotes": "string",        "stagedAt": "2019-08-24T14:15:22Z",        "dispatchedAt": "2019-08-24T14:15:22Z",        "deliveredAt": "2019-08-24T14:15:22Z",        "dispatchNote": "string",        "dispatch": {          "assignmentMode": "unassigned",          "assignedDriver": {            "staffUserId": "string",            "displayName": "string"          },          "dispatchedBy": {            "staffUserId": "string",            "displayName": "string"          },          "courierName": "string",          "courierPhone": "string",          "vehicleLabel": "string",          "assignedAt": "2019-08-24T14:15:22Z"        }      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  }}
POST
/orders/{id}/checks/move-items

Path Parameters

id*string
Length1 <= length

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/orders/string/checks/move-items" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123" \  -H "Content-Type: application/json" \  -d '{    "targetOrderId": "string",    "lineItems": [      {        "lineItemId": "string"      }    ]  }'
{  "sourceOrder": {    "id": "string",    "orderNumber": 0,    "customerId": "string",    "customerName": "string",    "guestName": "string",    "locationId": "string",    "assignedStaffUserId": "string",    "status": "draft",    "source": "pos",    "fulfillmentMode": "dine_in",    "tableId": "string",    "sectionId": "string",    "serviceAreaId": "string",    "tableLabel": "string",    "seatCount": 0,    "note": "string",    "fundraising": {      "campaignId": "string",      "campaignCode": "string",      "campaignName": "string",      "causeName": "string",      "contributionType": "round_up",      "contributionValue": 0,      "contributionAmountCents": 0    },    "lineItems": [      {        "id": "string",        "lineType": "catalog",        "sendStatus": "new",        "productId": "string",        "title": "string",        "quantity": 1,        "unitPrice": 0,        "taxRateBps": 0,        "taxCode": "food",        "category": "string",        "salesCategory": "string",        "openItemScope": "food",        "pricingStrategyApplied": "base",        "menuId": "string",        "sizeName": "string",        "seatId": "string",        "seatNumber": 1,        "course": "string",        "diningOption": "dine_in",        "diningOptionLabel": "string",        "prepTimeSeconds": 0,        "modifiers": [          {            "productId": "string",            "title": "string",            "priceDelta": 0,            "quantity": 1,            "groupId": "string",            "groupTitle": "string",            "portionId": "string",            "portionLabel": "string",            "portionPriceMultiplier": 0,            "pricingStrategy": "no_charge",            "openPriceAmount": 0,            "sizeName": "string",            "sequenceOrdinal": 1,            "preModifierOptionId": "string",            "preModifierLabel": "string",            "preModifierPosition": "prefix",            "displayLabel": "string",            "defaultApplied": true,            "modifiers": [              null            ],            "routing": {              "prepStationIds": [                "string"              ],              "assemblyLineId": "string",              "immediatePrepStationIds": [                "string"              ],              "modifierRouting": "with_parent",              "ticketDestination": "prep_only",              "appliedRuleIds": [                "string"              ]            }          }        ],        "routing": {          "prepStationIds": [            "string"          ],          "assemblyLineId": "string",          "immediatePrepStationIds": [            "string"          ],          "modifierRouting": "with_parent",          "ticketDestination": "prep_only",          "appliedRuleIds": [            "string"          ]        },        "voidReasonId": "string",        "voidReasonName": "string",        "voidedAt": "string",        "voidedByStaffUserId": "string",        "voidedByStaffName": "string",        "giftCardSale": {          "cardType": "Physical",          "code": "string",          "recipientName": "string",          "recipientEmail": "string",          "recipientPhone": "string",          "fromName": "string",          "purchaserEmail": "string",          "purchaserPhone": "string",          "giftMessage": "string",          "notes": "string",          "deliveryChannel": "email",          "deliveryDestination": "string",          "deliveryScheduledAt": "2019-08-24T14:15:22Z",          "notifyPurchaserWhenOpened": true        }      }    ],    "appliedDiscounts": [      {        "id": "string",        "sourceType": "promotion",        "sourceId": "string",        "code": "string",        "title": "string",        "scope": "order",        "lineItemId": "string",        "actionMessage": "string",        "appliesTo": "Store",        "appliesToObjectIds": [          "string"        ],        "combinability": "combinable",        "stackingScope": "order",        "requiresManagerApproval": true,        "managerApprovedByStaffUserId": "string",        "excludesServiceCharges": true,        "serviceChargeInteraction": "pre_discount",        "eligibilitySummary": "string",        "discountType": "amount",        "value": 0,        "amount": 0      }    ],    "subtotal": 0,    "discountTotal": 0,    "taxTotal": 0,    "tipTotal": 0,    "total": 0,    "balanceDue": 0,    "paymentIntentIds": [      "string"    ],    "submittedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "offPremise": {      "channel": {        "kind": "first_party",        "provider": "string"      },      "customer": {        "customerId": "string",        "firstName": "string",        "lastName": "string",        "phone": "string",        "email": "user@example.com"      },      "quote": {        "strategy": "manual",        "quoteTimeApplies": true,        "quotedAt": "2019-08-24T14:15:22Z",        "scheduledFor": "2019-08-24T14:15:22Z",        "promisedFulfillmentAt": "2019-08-24T14:15:22Z",        "takeoutQuoteMinutes": 0,        "deliveryQuoteMinutes": 0,        "takeoutThrottlingMinutes": 0,        "deliveryThrottlingMinutes": 0,        "throttlingAppliedMinutes": 0,        "leadTimeHours": 0,        "minimumLeadTimeSatisfied": true,        "withinConfiguredOrderingHours": true,        "quoteExemptionReason": "third_party_channel"      },      "readyAt": "2019-08-24T14:15:22Z",      "staging": {        "state": "pending",        "batchId": "string",        "batchLabel": "string",        "stagingArea": "string",        "stagingSlot": "string",        "handoffZone": "string",        "batchReadyAt": "2019-08-24T14:15:22Z",        "stagedAt": "2019-08-24T14:15:22Z",        "readyBy": {          "staffUserId": "string",          "displayName": "string"        }      },      "guestMessaging": {        "enabled": true,        "preferredChannel": "sms",        "notifications": [          {            "event": "batch_ready",            "template": "order_ready",            "channel": "sms",            "status": "pending",            "recipient": "string",            "subject": "string",            "body": "string",            "updatedAt": "2019-08-24T14:15:22Z",            "sentAt": "2019-08-24T14:15:22Z",            "failureReason": "string"          }        ],        "lastUpdatedAt": "2019-08-24T14:15:22Z"      },      "pickup": {        "kind": "standard",        "state": "pending",        "stagedAt": "2019-08-24T14:15:22Z",        "arrivedAt": "2019-08-24T14:15:22Z",        "completedAt": "2019-08-24T14:15:22Z",        "curbside": {          "vehicleMakeModel": "string",          "vehicleColor": "string",          "instructions": "string",          "parkingSpot": "string",          "arrivalNote": "string"        }      },      "delivery": {        "addressId": "string",        "addressLabel": "string",        "state": "pending",        "instructions": "string",        "deliveryNotes": "string",        "stagedAt": "2019-08-24T14:15:22Z",        "dispatchedAt": "2019-08-24T14:15:22Z",        "deliveredAt": "2019-08-24T14:15:22Z",        "dispatchNote": "string",        "dispatch": {          "assignmentMode": "unassigned",          "assignedDriver": {            "staffUserId": "string",            "displayName": "string"          },          "dispatchedBy": {            "staffUserId": "string",            "displayName": "string"          },          "courierName": "string",          "courierPhone": "string",          "vehicleLabel": "string",          "assignedAt": "2019-08-24T14:15:22Z"        }      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  },  "targetOrder": {    "id": "string",    "orderNumber": 0,    "customerId": "string",    "customerName": "string",    "guestName": "string",    "locationId": "string",    "assignedStaffUserId": "string",    "status": "draft",    "source": "pos",    "fulfillmentMode": "dine_in",    "tableId": "string",    "sectionId": "string",    "serviceAreaId": "string",    "tableLabel": "string",    "seatCount": 0,    "note": "string",    "fundraising": {      "campaignId": "string",      "campaignCode": "string",      "campaignName": "string",      "causeName": "string",      "contributionType": "round_up",      "contributionValue": 0,      "contributionAmountCents": 0    },    "lineItems": [      {        "id": "string",        "lineType": "catalog",        "sendStatus": "new",        "productId": "string",        "title": "string",        "quantity": 1,        "unitPrice": 0,        "taxRateBps": 0,        "taxCode": "food",        "category": "string",        "salesCategory": "string",        "openItemScope": "food",        "pricingStrategyApplied": "base",        "menuId": "string",        "sizeName": "string",        "seatId": "string",        "seatNumber": 1,        "course": "string",        "diningOption": "dine_in",        "diningOptionLabel": "string",        "prepTimeSeconds": 0,        "modifiers": [          {            "productId": "string",            "title": "string",            "priceDelta": 0,            "quantity": 1,            "groupId": "string",            "groupTitle": "string",            "portionId": "string",            "portionLabel": "string",            "portionPriceMultiplier": 0,            "pricingStrategy": "no_charge",            "openPriceAmount": 0,            "sizeName": "string",            "sequenceOrdinal": 1,            "preModifierOptionId": "string",            "preModifierLabel": "string",            "preModifierPosition": "prefix",            "displayLabel": "string",            "defaultApplied": true,            "modifiers": [              null            ],            "routing": {              "prepStationIds": [                "string"              ],              "assemblyLineId": "string",              "immediatePrepStationIds": [                "string"              ],              "modifierRouting": "with_parent",              "ticketDestination": "prep_only",              "appliedRuleIds": [                "string"              ]            }          }        ],        "routing": {          "prepStationIds": [            "string"          ],          "assemblyLineId": "string",          "immediatePrepStationIds": [            "string"          ],          "modifierRouting": "with_parent",          "ticketDestination": "prep_only",          "appliedRuleIds": [            "string"          ]        },        "voidReasonId": "string",        "voidReasonName": "string",        "voidedAt": "string",        "voidedByStaffUserId": "string",        "voidedByStaffName": "string",        "giftCardSale": {          "cardType": "Physical",          "code": "string",          "recipientName": "string",          "recipientEmail": "string",          "recipientPhone": "string",          "fromName": "string",          "purchaserEmail": "string",          "purchaserPhone": "string",          "giftMessage": "string",          "notes": "string",          "deliveryChannel": "email",          "deliveryDestination": "string",          "deliveryScheduledAt": "2019-08-24T14:15:22Z",          "notifyPurchaserWhenOpened": true        }      }    ],    "appliedDiscounts": [      {        "id": "string",        "sourceType": "promotion",        "sourceId": "string",        "code": "string",        "title": "string",        "scope": "order",        "lineItemId": "string",        "actionMessage": "string",        "appliesTo": "Store",        "appliesToObjectIds": [          "string"        ],        "combinability": "combinable",        "stackingScope": "order",        "requiresManagerApproval": true,        "managerApprovedByStaffUserId": "string",        "excludesServiceCharges": true,        "serviceChargeInteraction": "pre_discount",        "eligibilitySummary": "string",        "discountType": "amount",        "value": 0,        "amount": 0      }    ],    "subtotal": 0,    "discountTotal": 0,    "taxTotal": 0,    "tipTotal": 0,    "total": 0,    "balanceDue": 0,    "paymentIntentIds": [      "string"    ],    "submittedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "offPremise": {      "channel": {        "kind": "first_party",        "provider": "string"      },      "customer": {        "customerId": "string",        "firstName": "string",        "lastName": "string",        "phone": "string",        "email": "user@example.com"      },      "quote": {        "strategy": "manual",        "quoteTimeApplies": true,        "quotedAt": "2019-08-24T14:15:22Z",        "scheduledFor": "2019-08-24T14:15:22Z",        "promisedFulfillmentAt": "2019-08-24T14:15:22Z",        "takeoutQuoteMinutes": 0,        "deliveryQuoteMinutes": 0,        "takeoutThrottlingMinutes": 0,        "deliveryThrottlingMinutes": 0,        "throttlingAppliedMinutes": 0,        "leadTimeHours": 0,        "minimumLeadTimeSatisfied": true,        "withinConfiguredOrderingHours": true,        "quoteExemptionReason": "third_party_channel"      },      "readyAt": "2019-08-24T14:15:22Z",      "staging": {        "state": "pending",        "batchId": "string",        "batchLabel": "string",        "stagingArea": "string",        "stagingSlot": "string",        "handoffZone": "string",        "batchReadyAt": "2019-08-24T14:15:22Z",        "stagedAt": "2019-08-24T14:15:22Z",        "readyBy": {          "staffUserId": "string",          "displayName": "string"        }      },      "guestMessaging": {        "enabled": true,        "preferredChannel": "sms",        "notifications": [          {            "event": "batch_ready",            "template": "order_ready",            "channel": "sms",            "status": "pending",            "recipient": "string",            "subject": "string",            "body": "string",            "updatedAt": "2019-08-24T14:15:22Z",            "sentAt": "2019-08-24T14:15:22Z",            "failureReason": "string"          }        ],        "lastUpdatedAt": "2019-08-24T14:15:22Z"      },      "pickup": {        "kind": "standard",        "state": "pending",        "stagedAt": "2019-08-24T14:15:22Z",        "arrivedAt": "2019-08-24T14:15:22Z",        "completedAt": "2019-08-24T14:15:22Z",        "curbside": {          "vehicleMakeModel": "string",          "vehicleColor": "string",          "instructions": "string",          "parkingSpot": "string",          "arrivalNote": "string"        }      },      "delivery": {        "addressId": "string",        "addressLabel": "string",        "state": "pending",        "instructions": "string",        "deliveryNotes": "string",        "stagedAt": "2019-08-24T14:15:22Z",        "dispatchedAt": "2019-08-24T14:15:22Z",        "deliveredAt": "2019-08-24T14:15:22Z",        "dispatchNote": "string",        "dispatch": {          "assignmentMode": "unassigned",          "assignedDriver": {            "staffUserId": "string",            "displayName": "string"          },          "dispatchedBy": {            "staffUserId": "string",            "displayName": "string"          },          "courierName": "string",          "courierPhone": "string",          "vehicleLabel": "string",          "assignedAt": "2019-08-24T14:15:22Z"        }      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  }}