Operation Definitions
Endpoints
POST /api/ds/pipeline/pos.order
Summary
Use the POST /api/ds/pipeline/pos.order endpoint to send orders to Portal API.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The integrator token created previously |
header |
| string | Yes | The unique identifier (UID) for the company provided by us |
header |
| string | Yes | The UID for the location |
body |
| Yes | The send order request information |
Responses
Code | Description | Schema |
|---|---|---|
202 | Accepted | |
401 | Unauthorized error | |
403 | Forbidden error |
Data Models
POSOrderMessage Array
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes | |
| string | Yes | |
| string | Yes | |
| string | Yes | |
object | Yes | The POSOrderPayload object information |
POSOrderPayload Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes |
|
POSOrder Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The entity primary key |
| object | No | The additional properties type |
| string | Yes | |
| string | No | |
| string | Yes | |
| No | The list of contributor items | |
| No | The creator information | |
| No | The customer information | |
| No | The list of deleted items | |
| No | The destination information | |
| No | The discount information | |
| number | No | |
| string | No | |
| string | No | |
| number | No | |
| array | No | |
| string | No | |
| string | Yes | |
| string | Yes | |
| string | No | |
| string | No | |
| No | The order source information | |
| string | Yes | |
| string | No | |
| No | The owner information | |
| No | The payment information | |
| string | Yes | |
| No | The list of printed items | |
| No | The reason code information | |
| string | No | |
| No | The list of refund items | |
| No | The list of segment items | |
| string | Yes | |
| Yes | The site information | |
| string | Yes | |
| number | No | |
| string | No | |
| No | The tax exempt information | |
| number | No | |
| No | The tax inclusive information | |
| No | The tax information | |
| Yes | The time information | |
| number | No | |
| string | Yes | |
| array | No |
contributors Array
Field Name | Type | Required | Description |
|---|---|---|---|
| No | ||
| No | ||
| string | Yes | |
| string | No |
employee Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| array | No | |
| number | No | |
| string | No | |
| No | ||
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| number | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No |
permissions Array
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes | |
| boolean | Yes |
terminal Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes |
creator Object
Field Name | Type | Required | Description |
|---|---|---|---|
| No | ||
| No | ||
| string | Yes | |
| string | No |
customer Object
Field Name | Type | Description |
|---|---|---|
| string | |
| string | |
| string | |
| string | |
| string | |
| string | |
| string | |
| string | |
| string | |
| array | |
| array | |
| array | |
| string | |
| string | |
| string | |
| string | |
| string | |
| string |
deleted_items Array
Field Name | Type | Required | Description |
|---|---|---|---|
| number | No | |
| array | No | |
| string | No | |
| No | ||
| string | No | |
| No | ||
| number | No | |
| boolean | No | |
| string | No | |
| number | No | |
| string | No | |
| array | No | |
| string | No | |
| string | No | |
| array | No | |
| string | No | |
| string | No | |
| string | No | |
| number | No | |
| No | ||
| string | Yes | |
| number | No | |
| No | ||
| No | ||
| boolean | No | |
| array, string | No | |
| No | ||
| string | No | |
| string | No | |
| No | ||
| number | No | |
| string | No | |
| array, string | No | |
| No | ||
| number | No | |
| No | ||
| No | ||
| No | ||
| number | No | |
| number | No |
discount_info Object
Field Name | Type | Required | Description |
|---|---|---|---|
| Yes | ||
| number | Yes | |
| number | Yes |
discounts Array
Field Name | Type | Required | Description |
|---|---|---|---|
| number | Yes | |
| number | Yes | |
| string | Yes | |
| boolean | Yes | |
| string | No | |
| boolean | No | |
| string | Yes | |
| boolean | No | |
| string | Yes | |
| string | Yes | |
| string | Yes | |
| string | Yes | |
| boolean | No | |
| string | No | |
| number | Yes |
fee_config Object
Field Name | Type | Required | Description |
|---|---|---|---|
| number | No | |
| string | Yes | |
| boolean | Yes | |
| string | Yes | |
| number | No |
price_changes Array
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| number | Yes | |
| No |
reporting_category Object
Field Name | Type | Required | Description |
|---|---|---|---|
| Yes | ||
| Yes |
major_reporting_category Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| boolean | Yes | |
| array | No | |
| string | Yes |
minor_reporting_category Object
Field Name | Type | Description |
|---|---|---|
| string | |
| string | |
| boolean | |
| string | |
|
rules Array
Field Name | Type | Description |
|---|---|---|
| string | |
| array, string | |
| string | |
| ||
| number | |
| string | |
| boolean | |
| number | |
| number | |
| string | |
| string | |
| array | |
| array, string | |
| number |
default_products Array
Field Name | Type | Required | Description |
|---|---|---|---|
| number | Yes | |
| string | Yes |
share_parts Array
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| number | Yes | |
| number | Yes | |
| number | Yes |
tax_group Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes | |
| string | Yes |
destination Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | No | |
| boolean | No | |
| array | No | |
| array | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | Yes | |
| boolean | No | |
| boolean | No | |
| string | Yes | |
| array, string | No |
order_source_ext Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes |
owner Object
Field Name | Type | Description |
|---|---|---|
| string | |
| string | |
| string | |
| ||
| ||
| string | |
| string |
payment_info Object
Field Name | Type | Required | Description |
|---|---|---|---|
| number | Yes | |
| Yes |
payments Array
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | |
| string | No | |
| string | No | |
| boolean | No | |
| boolean | No | |
| number | Yes | |
| string | No | |
| string | No | |
| string | No | |
| string, number | No | |
| number | No | |
| string | No | |
| boolean | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| boolean | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| number | No | |
| boolean | No | |
| string | No | |
| string | No | |
| No | ||
| string | No | |
| string | No | |
| number | No | |
| boolean | No | |
| boolean | No | |
| string | No | |
| boolean | No | |
| string | No | |
| string | No | |
| string | No | |
| number | No | |
| boolean | No | |
| boolean | No | |
| string | No | |
| number | No | |
| string | No | |
| string, number | No | |
| string | No | |
| number | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No |
payment_source_ext Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes |
print_info Array
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes | |
| string | No |
reason_code Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string, array | No | |
| string | No | |
| No | ||
| string | Yes | |
| string | Yes | |
| boolean | Yes | |
| No |
refunds Array
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| number | Yes | |
| string | Yes |
segments Array
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| number | Yes | |
| string | Yes |
site_info Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | No | |
| string | No | |
| Yes | ||
| string | Yes |
company Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes |
tax_exempt_info Object
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | No | |
| Yes | ||
| number | No |
tax_inclusive_info Object
Field Name | Type | Required | Description |
|---|---|---|---|
| Yes | ||
| number | Yes | |
| number | Yes |
taxes Array
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| number | Yes | |
| number | Yes | |
| Yes | ||
| boolean | Yes |
tax_info Object
Field Name | Type | Required | Description |
|---|---|---|---|
| array | Yes | |
| array | No | |
| number | No | |
| number | No | |
| number | Yes | |
| number | Yes | |
| number | No | |
| number | Yes |
time Object
Field Name | Type | Description |
|---|---|---|
| string | |
| string | |
| string | |
| string | |
| string | |
| string | |
| string | |
| string | |
| string | |
| string |
Sample Code
POS Order External API Example
A YAML example of the POST /api/ds/pipeline/pos.order operation is shown below broken into sections:
paths
openapi: 3.1.0
info:
title: POS Order External API
description: API to ingest POS orders to Portal API
version: 1.0.0
security:
- IntegratorToken: []
servers:
- url: https://connect.xenial.com
description: production
- url: https://uat-connect.xenial.com
description: staging
paths:
"/ds/pipeline/pos.order":
post:
summary: POS Orders messages delivering.
security:
- IntegratorToken: []
parameters:
- "$ref": "#/components/parameters/CompanyIdHeader"
- "$ref": "#/components/parameters/SiteIdHeader"
- "$ref": "#/components/parameters/TerminalIdHeader"
- "$ref": "#/components/parameters/UserAgentHeader"
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/POSOrderMessage"
responses:
'202':
"$ref": "#/components/responses/202Accepted"
'400':
"$ref": "#/components/responses/BadRequestResponse"
'401':
"$ref": "#/components/responses/401Unauthorized"
'403':
"$ref": "#/components/responses/403Forbidden"components
components:
securitySchemes:
IntegratorToken:
type: http
scheme: bearer
bearerFormat: JWT
description: An integrator token represents a grant of access for a
3rd party to all of some company’s sites.
schemas:
UnauthorizedError:
type: object
properties:
error:
type: object
properties:
status:
type: string
examples:
- '401'
message:
type: string
examples:
- No token header was provided
ForbiddenError:
type: object
properties:
error:
type: object
properties:
status:
type: string
examples:
- '403'
message:
type: string
examples:
- Token Verify FailurePOSOrderMessage
POSOrderMessage:
type: array
items:
type: object
required:
- platform
- payload
- platform_version
- msg_id
- content_type
- msg_type
properties:
platform:
type: string
examples:
- XENIAL
platform_version:
type: string
examples:
- 2.7.55
msg_id:
type: string
examples:
- b9c661dc-bf43-403d-a4b5-fac047204abb
msg_type:
type: string
enum:
- pos.order
content_type:
type: string
examples:
- application/json
payload:
type: string
description: Stringified JSON data following POSOrderPayload
schema
"$ref": "#/components/schemas/POSOrderPayload"
examples:
- '{"order": {"_id":"5bf477fc-de42-4ab0-85aa-cc462b000126",
"business_date":"2019-01-02T09:08:51.106Z","company_id":
"6141aadfb290560007bd29a7","notification_status":"committed",
"order_number":"7770000001","order_type":"order",
"payment_status":"paid","sequential_order_number":"1","site_info":{"id":
"6141aded80fc9800075b4034","store_number":"0123456","company":{"id":
"6141aadfb290560007bd29a7","name":"AlexY_Clear data"}},"state":"closed","time":
{"created":"2019-01-02T12:00:00.106Z","last_modified":
"2019-01-03T07:08:51.106Z",
"notification_committed":"2019-01-02T09:08:51.106Z","closed":
"2019-01-02T12:02:00.106Z"},"version":"1"}}'
POSOrderPayload:
type: object
properties:
order:
$ref: "#/components/schemas/POSOrder"
required:
- orderPOSOrder
POSOrder:
type: object
properties:
_id:
description: Entity primary key (objectId | UUIDv4)
type: string
pattern: "^[0-9A-Fa-f]{24}$|^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-
[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$"
additional_properties:
type: object
description: AdditionalPropertiesType
business_date:
type: string
format: date-time
comment:
type:
- string
- 'null'
company_id:
type: string
pattern: "^[0-9A-Fa-f]{24}$|^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-
[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$"
contributors:
type: array
items:
type: object
description: Contributor
properties:
employee:
type: object
properties:
id:
type: string
name:
type: string
title:
type: string
badge_number:
type:
- string
- 'null'
email:
type:
- string
- 'null'
employee_corporate_code:
type: string
birth_date:
type:
- string
- 'null'
job_code:
type: array
items:
type: string
order_count:
type: number
primary_job_code:
type:
- string
- 'null'
permissions:
type: array
items:
type: object
properties:
app-code:
type: string
name:
type: string
type:
type: string
value:
type: boolean
required:
- app-code
- name
- type
- value
company_id:
type: string
pattern: "^[0-9A-Fa-f]{24}$|^[0-9A-Fa-f]{8}-[0-9A-Fa-f]
{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$"
employee_payroll_code:
type:
- string
- 'null'
first_name:
type:
- string
- 'null'
middle_name:
type:
- string
- 'null'
pin_updated_at:
type: number
pin:
type: string
pos_id:
type: string
status:
type: string
role_id:
type:
- string
- 'null'
nick_name:
type:
- string
- 'null'
last_name:
type:
- string
- 'null'
updated_at:
type:
- string
- 'null'
required:
- id
- name
- title
terminal:
type: object
properties:
_id:
type: string
terminal_number:
type: string
title:
type: string
required:
- _id
- terminal_number
- title
time:
type: string
action:
type: string
required:
- time
creator:
type: object
description: Creator
properties:
employee:
type: object
properties:
id:
type: string
name:
type: string
title:
type: string
required:
- id
- name
- title
terminal:
type: object
properties:
_id:
type: string
terminal_number:
type: string
title:
type: string
required:
- _id
- terminal_number
- title
time:
type: string
action:
type: string
required:
- time
customer:
type: object
description: Customer
properties:
address1:
type: string
address2:
type: string
city:
type: string
country:
type: string
delivery_date_time:
type: string
email:
type:
- string
- 'null'
first_name:
type:
- string
- 'null'
id:
type: string
last_name:
type:
- string
- 'null'
phone_cell:
type:
- array
- string
- 'null'
phone_home:
type:
- array
- string
- 'null'
phone_work:
type:
- array
- string
- 'null'
pickup_date_time:
type: string
social_number:
type: string
social_role:
type: string
state:
type: string
table_tent:
type:
- string
- 'null'
zip_code:
type: string
deleted_items:
type: array
items:
type: object
description: OrderItem
properties:
btnIndex:
type: number
child_items:
type: array
comment:
type: string
discount_info:
type: object
description: DiscountInfo
properties:
discounts:
type: array
items:
type: object
description: Discount
properties:
amount:
type: number
minimim: 0
amount_unrounded:
type: number
minimim: 0
apply_type:
type: string
distributed:
type: boolean
id:
type: string
ignore:
type: boolean
order_discount_id:
type: string
apply_post_tax:
type: boolean
created_at:
type: string
discount_code:
type: string
discount_definition_id:
type: string
name:
type: string
use_loyalty:
type: boolean
updated_at:
type: string
quantity:
type: number
required:
- amount
- amount_unrounded
- apply_type
- distributed
- order_discount_id
- created_at
- discount_code
- discount_definition_id
- name
- quantity
total_unrounded:
type: number
total:
type: number
required:
- discounts
- total_unrounded
- total
entity_id:
type: string
fee_config:
type: object
description: FeeConfig
properties:
amount:
type: number
apply_as:
type: string
apply_pre_tax:
type: boolean
fee_type:
type: string
precision:
type: number
required:
- amount
- apply_as
- apply_pre_tax
- fee_type
grpIndex:
type: number
is_bundle:
type: boolean
hash_code:
type: string
item_count_quantity:
type: number
item_type:
type: string
kitchen_routing_categories:
type: array
items:
type: string
liability_type:
type: string
master:
type: string
modifiers:
type: array
name:
type: string
order_item_id:
type: string
payment_status:
type: string
price:
type: number
price_changes:
type: array
items:
type: object
description: PriceChangeReasonInfo
properties:
change_time:
type: string
previous_price:
type: number
reason_code:
type: object
description: ReasonCode
properties:
_id:
type: string
action:
type:
- string
- array
comment:
type: string
employee:
type: object
description: Employee
properties:
id:
type: string
name:
type: string
title:
type: string
required:
- id
- name
- title
entity_id:
type: string
name:
type: string
prompt_reason:
type: boolean
time:
type: object
description: TimeInfo
properties:
added:
type: string
created:
type: string
checkedin:
type: string
closed:
type: string
confirmed:
type: string
kitchen_printed:
type: string
kitchen_sent:
type: string
kitchen_bump:
type: string
last_modified:
type: string
unconfirmed:
type: string
required:
- _id
- entity_id
- name
- prompt_reason
required:
- change_time
- previous_price
product_id:
type: string
quantity:
type: number
reason_code:
type: object
description: ReasonCode
properties:
_id:
type: string
pattern: "^[0-9A-Fa-f]{24}$|^[0-9A-Fa-f]{8}-[0-9A-Fa-f]
{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$"
action:
type:
- string
- array
comment:
type: string
employee:
type: object
description: Employee
properties:
id:
type: string
name:
type: string
title:
type: string
required:
- id
- name
- title
entity_id:
type: string
name:
type: string
prompt_reason:
type: boolean
time:
type: object
description: TimeInfo
properties:
added:
type: string
created:
type: string
format: date-time
checkedin:
type: string
closed:
type: string
confirmed:
type: string
kitchen_printed:
type: string
kitchen_sent:
type: string
kitchen_bump:
type: string
last_modified:
type: string
unconfirmed:
type: string
required:
- entity_id
- name
- prompt_reason
reporting_category:
oneOf:
- type:
- object
description: OrderItemReportingCategory
properties:
major_reporting_category:
type: object
description: ReportingCategory
properties:
name:
type: string
is_major:
type: boolean
minor_reporting_category_entity_ids:
type: array
items:
type: string
entity_id:
type: string
required:
- name
- is_major
- entity_id
minor_reporting_category:
type: object
description: ReportingCategory
properties:
name:
type: string
entity_id:
type: string
is_major:
type: boolean
major_reporting_category_entity_id:
type: string
_id:
type: string
- type: 'null'
required:
- major_reporting_category
- minor_reporting_category
required_position:
type: boolean
revenue_class:
oneOf:
- type: array
items:
type: string
- type: string
rules:
type: array
items:
type: object
description: ItemRule
properties:
_id:
type: string
allowed_destination_entity_ids:
type: array
items:
type: string
component_type:
type: string
default_products:
type: array
items:
type: object
description: DefaultProducts
properties:
default_quantity:
type: number
product_entity_id:
type: string
required:
- default_quantity
- product_entity_id
default_quantity:
type: number
entity_id:
type: string
is_enabled:
type: boolean
maximum_quantity:
type: number
minimum_quantity:
type: number
name:
type: string
pricing_change_action:
type: string
productChoices:
type: array
product_choices_entity_ids:
type: array
items:
type: string
sort_order:
type: number
segment_id:
type: string
share_part:
type: string
share_parts:
type: array
items:
type: object
description: SharedItemInfo
properties:
segment_id:
type: string
numerator:
type: number
denominator:
type: number
unit_price:
type: number
required:
- segment_id
- numerator
- denominator
- unit_price
sort_order:
type: number
state:
type: string
tags:
type: array
items:
type: string
tax_group:
type: object
description: TaxGroup
properties:
tax_code:
type: string
entity_id:
type: string
_id:
type: string
name:
type: string
required:
- tax_code
- entity_id
- _id
- name
tax_inclusive_price:
type: number
tax_inclusive_info:
type: object
description: TaxInclusiveInfo
properties:
taxes:
type: array
items:
type: object
description: Tax
properties:
id:
type: string
name:
type: string
amount_unrounded:
type: number
amount:
type: number
tax_info:
type: object
description: TaxInfo
properties:
taxes:
type: array
taxes_inclusive:
type: object
total_unrounded:
type: number
total:
type: number
total_inclusive_unrounded:
type: number
total_inclusive:
type: number
required:
- taxes
- total_unrounded
- total
- total_inclusive_unrounded
- total_inclusive
visible:
type: boolean
required:
- id
- name
- amount_unrounded
- amount
- tax_info
- visible
total:
type: number
total_unrounded:
type: number
required:
- taxes
- total
- total_unrounded
tax_info:
type: object
description: TaxInfo
properties:
taxes:
type: array
taxes_inclusive:
type: array
total_exclusive:
type: number
total_exclusive_unrounded:
type: number
total_unrounded:
type: number
total:
type: number
total_inclusive_unrounded:
type: number
total_inclusive:
type: number
required:
- taxes
- total_unrounded
- total
- total_inclusive
time:
type: object
description: TimeInfo
properties:
added:
type: string
created:
type: string
checkedin:
type: string
closed:
type: string
confirmed:
type: string
kitchen_printed:
type: string
kitchen_sent:
type: string
kitchen_bump:
type: string
last_modified:
type: string
unconfirmed:
type: string
timestamp:
type: number
unit_price:
type: number
number: 0
required:
- product_id
destination:
type: object
description: Destination
properties:
entity_id:
type: string
background_color:
type: string
default_taxable_destination:
type: boolean
optional_customer_info:
type: array
required_customer_info:
type: array
segment_name:
type: string
short_name:
type: string
text_color:
type: string
consumption_type:
type: string
_id:
type: string
id:
type: string
is_active:
type: boolean
is_master:
type: boolean
name:
type: string
tags:
type: array
items:
type: string
required:
- entity_id
- id
- name
discount_info:
type: object
description: DiscountInfo
properties:
discounts:
type: array
total_unrounded:
type: number
total:
type: number
required:
- discounts
- total_unrounded
- total
discount_total:
type: number
drawer_id:
type: string
pattern: "^[0-9A-Fa-f]{24}$|^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-
[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$"
expo_number:
type: string
guest_count:
type: number
items:
type: array
lifecycle:
type: string
notification_status:
type: string
order_number:
type: string
order_point:
type: string
order_source:
type: string
order_source_ext:
type: object
description: OrderSourceInfo
properties:
name:
type: string
order_source_id:
type: string
required:
- name
- order_source_id
order_type:
type: string
origin:
type: string
owner:
type: object
description: Employee/Contributor
properties:
id:
type: string
name:
type: string
title:
type: string
employee:
type: object
description: Contributor/Employee
properties:
id:
type: string
name:
type: string
title:
type: string
terminal:
type: object
properties:
_id:
type: string
terminal_number:
type: string
title:
type: string
time:
type: string
action:
type: string
payment_info:
type: object
description: PaymentInfo
properties:
change:
type: number
payments:
type: array
items:
type: object
description: Payment
properties:
account:
type: string
agreement:
type: string
aid_number:
type: string
allow_deposit:
type: boolean
allow_tip:
type: boolean
amount:
type:
- number
- 'null'
application_name:
type: string
application_response_code:
type: string
arqc:
type: string
auth:
type:
- string
- number
- 'null'
balance:
type:
- number
- 'null'
card_acquisition:
type: string
change_back:
type: boolean
card_brand_name:
type: string
check_number:
type: string
code:
type: string
entity_id:
type: string
e_signature:
type:
- string
- 'null'
- boolean
emv:
type: boolean
external_pay_type:
type: string
_id:
type: string
pattern: "^[0-9A-Fa-f]{24}$|^[0-9A-Fa-f]{8}-[0-9A-Fa-f]
{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$"
id:
type: string
issuer_application_data:
type: string
name_on_card:
type: string
payment_class:
type: number
open_cash_drawer:
type: boolean
payment_id:
type: string
payment_source:
type: string
payment_source_ext:
type: object
description: OrderSourceInfo
properties:
name:
type: string
order_source_id:
type: string
required:
- name
- order_source_id
pay_type_id:
type: string
pay_type_name:
type: string
point_balance:
type: number
print_tip_lines:
type: boolean
prompt_for_receipt_on_final_payment:
type: boolean
processed_at:
type: string
format: date-time
quickpay:
type: boolean
refund_policy:
type: string
request_id:
type: string
routing_number:
type: string
signature_capture_threshold_amount:
type: number
signature_capture_threshold:
type: boolean
signature:
type:
- boolean
- 'null'
status:
type: string
tip_threshold:
type: number
tc:
type: string
terminal_id:
type:
- string
- 'null'
- number
terminal_verification_results:
type: string
tip_amount:
type: number
trace_number:
type:
- string
- 'null'
transaction_id:
type:
- string
- 'null'
transaction_status_indicator:
type: string
transaction_type:
type: string
verification_method:
type: string
required:
- amount
required:
- change
- payments
payment_status:
type: string
print_info:
type: array
items:
type: object
description: PrintRecord
properties:
printed_by:
type: string
user_id:
type: string
time:
type: string
print_type:
type:
- string
- 'null'
required:
- printed_by
- user_id
- time
reason_code:
type:
- object
- 'null'
description: ReasonCode
properties:
_id:
type: string
action:
type:
- string
- array
comment:
type: string
employee:
type: object
description: Employee
properties:
id:
type: string
name:
type: string
title:
type: string
required:
- id
- name
- title
entity_id:
type: string
name:
type: string
prompt_reason:
type: boolean
time:
type: object
description: TimeInfo
properties:
added:
type: string
created:
type: string
checkedin:
type: string
closed:
type: string
confirmed:
type: string
kitchen_printed:
type: string
kitchen_sent:
type: string
kitchen_bump:
type: string
last_modified:
type: string
unconfirmed:
type: string
required:
- _id
- entity_id
- name
- prompt_reason
reference_id:
type: string
refunds:
type: array
items:
type: object
description: RefundReference
properties:
order_item_id:
type: string
quantity:
type: number
refund_order_reference_id:
type: string
required:
- order_item_id
- quantity
- refund_order_reference_id
segments:
type: array
items:
type: object
description: OrderSegment
properties:
title:
type: string
num:
type: number
id:
type: string
required:
- title
- num
- id
sequential_order_number:
type: string
site_info:
type: object
description: SiteInfo
properties:
id:
type: string
pattern: "^[0-9A-Fa-f]{24}$|^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-
[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$"
name:
type: string
timezone:
type: string
company:
type: object
description: CompanyInfo
properties:
id:
type: string
name:
type: string
required:
- id
- name
store_number:
type: string
required:
- id
- company
- store_number
state:
type: string
subtotal:
type: number
table_name:
type: string
tax_exempt_info:
typo: object
description: TaxExemptInfo
properties:
id:
type: string
reason:
type: string
taxes:
type: array
items:
type:
- string
- object
description: Tax
properties:
id:
type: string
name:
type: string
amount_unrounded:
type: number
amount:
type: number
tax_info:
type: object
description: TaxInfo
properties:
taxes:
type: array
taxes_inclusive:
type: array
total_exclusive:
type: number
total_exclusive_unrounded:
type: number
total_unrounded:
type: number
total:
type: number
total_inclusive_unrounded:
type: number
total_inclusive:
type: number
required:
- taxes
- total_unrounded
- total
- total_inclusive_unrounded
- total_inclusive
visible:
type: boolean
required:
- id
- name
- amount_unrounded
- amount
- tax_info
total:
type: number
required:
- id
- taxes
tax_inclusive_subtotal:
type: number
tax_inclusive_info:
type: object
description: TaxInclusiveInfo
properties:
taxes:
type: array
items:
type: object
description: Tax
properties:
id:
type: string
name:
type: string
amount_unrounded:
type: number
tax_definition_id:
type: string
amount:
type: number
tax_info:
type: object
description: TaxInfo
properties:
taxes:
type: array
total_exclusive:
type: number
total_exclusive_unrounded:
type: number
taxes_inclusive:
type: array
total_unrounded:
type: number
total:
type: number
total_inclusive_unrounded:
type: number
total_inclusive:
type: number
required:
- taxes
- total_unrounded
- total
- total_inclusive_unrounded
- total_inclusive
visible:
type: boolean
required:
- name
- amount_unrounded
- amount
- visible
total:
type: number
total_unrounded:
type: number
required:
- taxes
- total
- total_unrounded
tax_info:
type: object
description: TaxInfo
properties:
taxes:
type: array
taxes_inclusive:
type: array
total_unrounded:
type: number
total_exclusive:
type: number
total_exclusive_unrounded:
type: number
total:
type: number
total_inclusive_unrounded:
type: number
total_inclusive:
type: number
required:
- total_unrounded
- total
time:
type: object
description: TimeInfo
properties:
added:
type: string
created:
type: string
format: date-time
checkedin:
type: string
closed:
type: string
format: date-time
confirmed:
type: string
kitchen_printed:
type: string
kitchen_sent:
type: string
kitchen_bump:
type: string
last_modified:
type: string
format: date-time
notification_committed:
type: string
unconfirmed:
type: string
format: date-time
total:
type: number
version:
type: string
voided_items:
type: array
required:
- _id
- business_date
- company_id
- notification_status
- order_number
- order_type
- payment_status
- sequential_order_number
- site_info
- state
- time
- version
parameters
parameters:
CompanyIdHeader:
name: x-company-id
in: header
description: Company id
required: true
schema:
type: string
UserAgentHeader:
name: x-user-agent
in: header
description: User agent
required: false
schema:
type: string
TerminalIdHeader:
name: x-terminal-id
in: header
description: Terminal id
required: false
schema:
type: string
SiteIdHeader:
name: x-site-ids
in: header
description: List of sites ids (comma separated)
required: true
schema:
type: string
examples:
- "6141aadfb290560007bd29a7,6142aadfb290560007bd29a4"responses
responses:
401Unauthorized:
description: Unauthorized error
content:
application/json:
schema:
"$ref": "#/components/schemas/UnauthorizedError"
403Forbidden:
description: Forbidden error
content:
application/json:
schema:
"$ref": "#/components/schemas/ForbiddenError"
202Accepted:
description: Accepted
content:
application/json:
schema:
type: object
properties:
request_id:
type: string
examples:
- 5d979d74-11e0-4a9c-b002-ac967e62917e
failed_count:
type: integer
examples:
- 0
records:
type: array
items:
type: object
properties:
status:
type: string
examples:
- accepted
BadRequestResponse:
description: Request body invalid
content:
application/json:
schema:
type: object
properties:
request_id:
type: string
examples:
- 5d979d74-11e0-4a9c-b002-ac967e62917e
failed_count:
type: integer
examples:
- 0
records:
type: array
items:
type: object
properties:
ErrorMessage:
type: string
examples:
- Invalid message payload
ErrorCode:
type: string
examples:
- ErrorCode