Inventory Item Venue
DELETE /inventory-item-venue/document/<_id>
DELETE /inventory-item-venue/entity/<entity_id>
GET /inventory-item-venue/current
GET /inventory-item-venue/document/<_id>
GET /inventory-item-venue/list
GET /inventory-item-venue/mapping/entity/<entity_id>
GET /inventory-item-venue/master
PATCH /inventory-item-venue/document/<_id>
POST /inventory-item-venue/documents/dependencies
POST /inventory-item-venue/entity/<entity_id>
POST /inventory-item-venue/mapping
POST /inventory-item-venue/mapping/entity/<entity_id>
POST /inventory-item-venue/updateEntitiesWithDependencies
Security
jwt-bearer-token
apiKey | API Key |
|---|---|
Name | Authorization |
In | header |
Endpoints
GET /inventory-item-venue/master
Summary
Gets a master list of inventory item venue entities regardless of the site.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
query |
| integer | No | The maximum documents to return. For example, if |
query |
| integer | No | The documents to skip before returning. For example, if |
query |
| string | No | A filter expression in OData v4 format |
query |
| string | No | An order by expression in OData v4 format |
query |
| boolean | No | Hydrates-related nested objects when returning a result (For example, populate a menu with menu categories and menu groups) |
query |
| boolean | No | Include the mappings for the document in the response |
query |
| [ string ] | No | Specifies |
query |
| boolean | No | Includes the documents that are inactive for the current sites |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
GET /inventory-item-venue/current
Summary
Gets a list of currently effective active inventory item venue entities for the specified sites as of the given effective_date:
effective_date=2099-11-18T19:04:58.124Z
To narrow the list to specific entity_ids:
?effective_date=2099-11-18T19:04:58.124Z&entity_ids=['578e98111fa261f4867bdf12','231e98111fa261f4867bdf08']
To include the audit fields:
?include_audit=true
To include the inactive documents:
?include_inactive=true
To populate nested entities:
?include_nested=true
To populate only specified nested entities:
?include_entities="menu-category","menu-item-group"
Other filters can be applied against the entity documents by using the $filter parameter
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
header |
| [ string ] | No | The unique identifiers (UIDs) of the site to manage data for |
query |
| string | No | A filter expression in OData v4 format |
query |
| int32 | No | The maximum documents to return. For example, if |
query |
| int32 | No | The documents to skip before returning. For example, if |
query |
| string | No | An order by expression in OData v4 format |
query |
| string | Yes | The date and time to query against. If the entity is updated on a specific date, then specifying an |
query |
| [ string ] | No | An array of entity identifiers |
query |
| boolean | No | Hydrates-related nested objects when returning a result (For example, populate a menu with menu categories and menu groups) |
query |
| boolean | No | Include the mappings for the document in the response |
query |
| [ string ] | No | Specifies entity types for which mappings are presented as a part of the response (For example, |
query |
| [ string ] | No | Specifies |
query |
| boolean | No | Adds audit fields to each document when returning a result ( |
query |
| boolean | No | Includes the documents that are inactive for the current sites |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
GET /inventory-item-venue/list
Summary
Gets a list of currently effective active inventory item venue entities for the specified sites as of the given effective_date:
effective_date=2099-11-18T19:04:58.124Z
To narrow the list to specific entity_ids:
?effective_date=2099-11-18T19:04:58.124Z&entity_ids=['578e98111fa261f4867bdf12','231e98111fa261f4867bdf08']
To include the audit fields:
?include_audit=true
To include the inactive documents:
?include_inactive=true
To populate nested entities:
?include_nested=true
To populate only specified nested entities:
?include_entities="menu-category","menu-item-group"
Other filters can be applied against the entity documents by using the $filter parameter
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
header |
| [ string ] | No | The unique identifiers (UIDs) of the site to manage data for |
query |
| string | No | A filter expression in OData v4 format |
query |
| integer | No | The maximum documents to return. For example, if |
query |
| integer | No | The documents to skip before returning; for example, if |
query |
| string | No | An order by expression in OData v4 format |
query |
| string | Yes | The date and time to query against. If the entity is updated on a specific date, then specifying an |
query |
| [ string ] | No | An array of entity identifiers |
query |
| boolean | No | Hydrates-related nested objects when returning a result (For example, populate a menu with menu categories and menu groups) |
query |
| [ string ] | No | Specifies |
query |
| boolean | No | Adds audit fields to each document when returning a result ( |
query |
| boolean | No | Includes the documents that are inactive for the current sites |
query |
| [ string ] | No | Specifies entity types for which mappings are presented as a part of the response (For example, |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
POST /inventory-item-venue
Summary
Adds a new inventory item venue.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
query |
| boolean | No | Hydrates-related nested objects when returning a result (For example, populate a menu with menu categories and menu groups) |
query |
| [ string ] | No | Specifies |
body |
| Yes | The JSON formatted request |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
POST /inventory-item-venue/entity/<entity_id>
Summary
Creates/Updates inventory item venues.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
path |
| string | Yes | The identifier of the entity |
body |
| Yes | The JSON formatted request |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
DELETE /inventory-item-venue/entity/<entity_id>
Summary
Deletes an entity and all versions of it.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
path |
| string | Yes | The identifier of the entity |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
POST /inventory-item-venue/updateEntitiesWithDependencies
Summary
Creates/Updates inventory item venues with the mappings.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
header |
| [ string ] | No | The unique identifiers (UIDs) of the site to manage data for |
body |
| Yes | Supports the mappings field (array/boolean) for each document. With mappings: True mappings are created for the current date and sites from the |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
GET /inventory-item-venue/document/<_id>
Summary
Gets one inventory item venue by a specific document identifier.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
path |
| string | Yes | The identifier of the document |
query |
| boolean | No | Hydrates-related nested objects when returning a result (For example, populate a menu with menu categories and menu groups) |
query |
| [ string ] | No | Specifies |
query |
| [ string ] | No | Specifies entity types for which mappings are presented as a part of the response (For example, |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
PATCH /inventory-item-venue/document/<_id>
Summary
Partially updates an inventory item venue.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
path |
| string | Yes | The identifier of the document |
query |
| boolean | No | Hydrates-related nested objects when returning a result (For example, populate a menu with menu categories and menu groups) |
query |
| [ string ] | No | Specifies |
body | body | Yes | The JSON of the category being patched |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
DELETE /inventory-item-venue/document/<_id>
Summary
Deletes an inventory item venue.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
path |
| string | Yes | The identifier of the document |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
POST /inventory-item-venue/documents/dependencies
Summary
Checks for document dependencies.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
body | body | Yes | The JSON formatted request |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
GET /inventory-item-venue/mapping/entity/<entity_id>
Summary
Gets a list of inventory item venue mappings for specified sites.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
header |
| [ string ] | No | The unique identifiers (UIDs) of the site to manage data for |
path |
| string | Yes | The identifier of the entity |
query |
| integer | No | The maximum documents to return. For example, if |
query |
| integer | No | The documents to skip before returning. For example, if |
query |
| string | No | A filter expression in OData v4 format |
query |
| string | No | An order by expression in OData v4 format |
query |
| boolean | No | Includes the documents that inactive for the current sites |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | mapping_list_response |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
POST /inventory-item-venue/mapping/entity/<entity_id>
Summary
Creates the list of inventory item venue mappings for an entity and sites.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
header |
| [ string ] | No | The unique identifier (UIDs) of the site to manage data for |
path |
| string | Yes | The identifier of the entity |
body |
| mappings_update_request | Yes | The array of the inventory item venue mappings being added |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | mapping_list_response |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
POST /inventory-item-venue/mapping
Summary
Adds a new inventory item venue mapping.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier of the company to manage data for |
body |
| [ mapping_create_request ] | Yes | The JSON of the inventory item venue mapping being added |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | mapping_list_response |
400 | Bad request, for more information look at body error | |
403 | Invalid token | |
404 | Not Found | |
422 | Unprocessable error | |
default | Unexpected Error |
Data Models
inventory_item_venue
Represents inventory item.
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | The unique identifier (UID) of the inventory item |
| string | No | |
| object | Yes | This General Ledger (GL) account is displayed in reports for financial reconciliation |
| [ object ] | Yes | Measures for an inventory item |
| object | Yes | The measure that is used for reporting purposes |
| object | Yes | The major category for grouping on reports |
| object | Yes | The minor category for grouping on reports |
| [ object ] | No | The tags for an inventory item |
| [ object ] | No | The vendors for an inventory item |
| object | No | The preferred vendor for the inventory item |
| object | No | The minimum quantity on hand setting |
| object | No | The maximum quantity on hand setting |
| string,object | No | |
| boolean | No | |
| No | ||
| No | ||
| No | ||
| No | ||
| No | ||
| No | ||
| No | ||
| No | ||
| No | ||
| No |
inventory_item_venue_create
Represents an inventory item.
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string | Yes | The unique identifier (UID) of the inventory item |
| string | No | |
| object | Yes | This General Ledger (GL) account is displayed in reports for financial reconciliation |
| [ object ] | Yes | Measures for an inventory item |
| object | Yes | The measure that is used for reporting purposes |
| object | Yes | The major category for grouping on reports |
| object | Yes | The minor category for grouping on reports |
| [ object ] | No | The tags for an inventory item |
| [ object ] | No | The vendors for an inventory item |
| object | No | The preferred vendor for the inventory item |
| object | No | The minimum quantity on hand setting |
| object | No | The maximum quantity on hand setting |
| string,object | No | |
| boolean | No | |
| No | ||
| No |
inventory_item_venue_edit
Represents an inventory item.
Field Name | Type | Description |
|---|---|---|
| string | |
| string | The unique identifier (UID) of the inventory item. |
| string | |
| object | This General Ledger (GL) account is displayed in reports for financial reconciliation. |
| [ object ] | Measures for an inventory item |
| object | The measure that is used for reporting purposes |
| object | The major category for grouping on reports |
| object | The minor category for grouping on reports |
| [ object ] | The tags for an inventory item |
| [ object ] | The vendors for an inventory item |
| object | The preferred vendor for the inventory item |
| object | The minimum quantity on hand setting |
| object | The maximum quantity on hand setting |
| string,object | |
| boolean | |
|
inventory_item_venue_list
Field Name | Type | Description |
|---|---|---|
| integer | |
|
name
Field Name | Type | Description |
|---|---|---|
| string |
code
Select the international code of the currency according to ISO 4217.
Field Name | Type | Description |
|---|---|---|
| string | Select international code of the currency according to ISO 4217 |
_id
The auto-assigned system document identifier.
Field Name | Type | Description |
|---|---|---|
| string | The auto-assigned system document identifier |
company_id
The identifier of the company who owns the document.
Field Name | Type | Description |
|---|---|---|
| string | The identifier of the company that owns the document |
entity_id
The auto-assigned unique identifier (UID) of the entity, set on creation. All future versions of the entity share the same entity_id.
Field Name | Type | Description |
|---|---|---|
| string | The auto-assigned UID of the entity, set on creation. All future versions of the entity share the same |
is_master
Field Name | Type | Description |
|---|---|---|
| boolean |
is_active
Marking property is the essence of active documents. Sets in true by default.
Field Name | Type | Description |
|---|---|---|
| boolean | Marking property is the essence of active documents. Sets in true by default. |
external_id
Field Name | Type | Description |
|---|---|---|
| string |
created_by
The identifier of the OPRA user or site that created the document.
Field Name | Type | Description |
|---|---|---|
| string | The identifier of the OPRA user or site that created the document |
updated_by
The identifier of the OPRA user or site that last updated the document.
Name | Type | Description |
|---|---|---|
| string | The identifier of the OPRA user or site that last updated the document |
created_at
The last date and time the document was updated.
Field Name | Type | Description |
|---|---|---|
| string | The last date and time the document was updated |
updated_at
The last date and time the document was updated.
Field Name | Type | Description |
|---|---|---|
| string | The last date and time the document was updated |