Skip to main content

Sale Depletion Order

The Sale Depletion Order API allows the user to access a list of sale order information.

Security

jwt-bearer-token

apiKey

API Key

Name

Authorization

In

header

Endpoint

GET /sale-depletion-order

Summary

Get the sale orders list.

Request Parameters

In

Field Name

Type

Required

Description

header

X-COMPANY-ID

string

Yes

The identifier (ID) of the company who owns the document.

query

$filter

string

No

query

$top

number

No

The maximum documents to return. For example, if top is 100, and skip is 0, the system returns documents 1 to 100.

query

$skip

number

No

The documents to skip before returning. For example, if top is 100, and skip is 100, the system returns documents 101 to 200.

query

$select

string

No

query

$orderby

string

No

Responses

Code

Description

Schema

200

Success

sale_depletion_order_get_response_1

400

Bad request, for more information look at body error

401

Unauthorized error

403

Forbidden error

404

Not Found

422

Unprocessable error

500

Internal Server Error

Data Models

sale_depletion_order_get_response_1

Field Name

Type

Description

items

sale_depletion_order_get_response_1_items

total

number

page_count

number

current_page

number

page_size

number

sale_depletion_order_get_response_1_items

Field Name

Type

Required

Description

_id

string

Yes

The sales order identifier identifier (ID)

event_id

string

No

The sale order event ID

site_id

string

Yes

The sale order site ID

order_id

string

Yes

The sale order ID in the database

type

string

Yes

The type of transaction

order_type

string

Yes

The sale order type is Online Ordering

xvi_order_type

string

Yes

The sale order type is Venue Inventory

order_number

string

Yes

The sale order number in Online Ordering

status

string

Yes

The sale order status

transaction_date

date/time

Yes

The order closed time from the point of sale (POS) device

business_date

date/time

Yes

The business date when the order was created from the POS device

is_post_closure

boolean

Yes

The flag which indicates whether the order is sent to Venue Inventory after the event or not. If it is true, it means that the order is sent to Venue Inventory after closing event.

items

sale_depletion_order_get_response_1_items_items

Yes

The sale information of this order

payment_tips

number

Yes

The total payment tips of this order

total_discount

number

Yes

The total discount of this order

total_miscellaneous

number

Yes

The total miscellaneous amounts of this order. The fee type is surcharge and donation.

total_price

number

Yes

The total price of this order

total_tax

number

Yes

The total tax of this order

total_tips

number

Yes

The total tips of this order, which include payment tips and add tips

receipt_time

date/time

No

The time the order receipt was created

created_at

date/time

No

The date of creation

created_by

string

Yes

The created_by user ID

updated_at

date/time

Yes

The data of the updated record

updated_by

string

Yes

The updated_by user ID

is_active

boolean

No

The flag which indicates whether the order is valid or deleted. If is_active is false, it means the order was deleted.

sale_depletion_order_get_response_1_items_items

Field Name

Type

Description

sale_depletion_order_get_response_1_items_items

object

The sale depletion order inventory items definition