Order
The Order API allows the user to order inventory from their vendors. It pulls and shares data with our other cloud services such as Data Management and the Portal.
Security
jwt-bearer-token
apiKey | API Key |
|---|---|
Name | Authorization |
In | header |
Endpoints
GET /order/schema
Summary
Get the schema of the order.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
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 |
GET /order/{id}
Summary
Get the order detail.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
path |
| string | Yes |
|
query |
| boolean | No | Get updated items |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
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 |
PATCH /order/{id}
Summary
Update the order.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
path |
| string | Yes |
|
body |
| Yes | The JSON formatted request |
Responses
Code | Description | Schema |
|---|---|---|
204 | No content | |
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 |
GET /order
Summary
Get the order list.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company who owns the document. |
query |
| string | No | |
query |
| number | No | The maximum documents to return. For example, if |
query |
| number | No | The documents to skip before returning. For example, if |
query |
| string | No | |
query |
| string | No |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
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 |
POST /order
Summary
Create the order.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
body |
| Yes | The JSON formatted request |
Responses
Code | Description | Schema |
|---|---|---|
201 | Success | |
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 |
PATCH /order/{id}/acknowledge
Summary
Acknowledgement to remove the Data Management sync result reminder info in the Order module.
Requirements
Remove fields updated_items/unavailable_items in the order document.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
path |
| string | Yes |
|
Responses
Code | Description | Schema |
|---|---|---|
204 | No content | |
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
order_get_response_1
Field Name | Type | Description |
|---|---|---|
order_get_response_1 | object | The definition of the order schema |
order_get_response_2
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes | The type of transaction |
| string | Yes | The status of transaction |
| Yes | The reference schema | |
| date/time | Yes | |
| date/time | Yes | |
| string | Yes | |
| string | Yes | The warehouse's site identifier (ID) |
| string | Yes | The warehouse's site name |
| string | Yes | The warehouse's store number |
| string | Yes | |
| number | Yes | |
| number | No | The delivery fee |
| number | No | The sales tax fee |
| string | No | The external order number entered manually |
| string | Yes | The internal number |
| object | No | The updated items' keys and values |
| object | No | The removed items' keys and names |
| date/time | No | The date of creation |
| string | Yes | The |
| date/time | Yes | The data of the updated record |
| string | Yes | The |
order_get_response_2_inventory_items
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| number | Yes | |
| number | Yes | |
| number | Yes | |
| number | No | |
| number | No | |
| number | No | |
| number | No | |
| number | No | |
| number | No |
order_get_response_3
Field Name | Type | Description |
|---|---|---|
| ||
| number | |
| number | |
| number | |
| number |
order_get_response_3_items
Field Name | Type | Description |
|---|---|---|
| string | |
| string | |
| date/time | |
| date/time | |
| number | The total cost of |
| string | |
| string | The invoice number |
| string | The status of the transaction |
order_patch_body_5
Field Name | Type | Description |
|---|---|---|
| string | The transaction identifier (ID) |
| string | The order type is delivery. Enum: |
| string | The order status |
| string | The |
| string | The warehouse's site ID |
| string | The name of the vendor |
| The inventory items to be purchased | |
| date/time | The date of the order |
| date/time | The date of delivery |
| string | The external order number entered manually |
| number | The delivery fee |
| number | The sales tax fee |
| string | The invoice number |
order_patch_body_5_inventory_items
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes | |
| number | Yes | |
| number | No |
order_post_body_6
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The transaction identifier (ID) |
| string | Yes | The warehouse's site ID |
| string | Yes | The order type is delivery. Enum: |
| string | Yes | The order status |
| string | Yes | The |
| No | The inventory items to be purchased | |
| date/time | Yes | The date of delivery |
| date/time | Yes | The date of the order |
| string | No | The external order number entered manually |
| string | No | The invoice number |
order_post_body_6_inventory_items
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes | |
| number | Yes |
order_post_response_6
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | |
| string | Yes | |
| string | Yes | |
| Yes | ||
| date/time | Yes | |
| date/time | Yes | |
| string | Yes | |
| string | Yes | The warehouse's site identifier (ID) |
| string | Yes | The warehouse's site name |
| string | No | The warehouse's store number |
| string | Yes | |
| number | Yes | |
| string | No | The external order number entered manually |
| string | Yes | The internal number |
| string | No | The invoice number |
| string | Yes | The company ID of the user |
| date/time | No | The date of creation |
| string | Yes | The |
| date/time | Yes | The data of the updated record |
| string | Yes | The |
order_post_response_6_inventory_items
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| string | No | |
| number | Yes | |
| number | Yes | |
| number | Yes | |
| number | No | |
| number | No | |
| number | No | |
| number | No | |
| number | No | |
| number | No |