Entity Posting API - Stock Level Recorded
If the StockLevelID does not exist, a new Stock Level record will be created. If it does, it will be updated.
Triggered Updates:
- No other data effected
Standard ShowTimeAnalytics Message Parameters:
- DataSupplierID: Assigned unique identifier for your account
- String
(required) - MessageSequence: Unique sequence number incremented for each message posted
- Long
(required) - CallbackUrl: Dataprovider defined URL that result of processing the message is posted back to
- String
Fields for Customer Entity:
- ID attribute: Unique identifier for Stock Level Record
- String
(required) - SiteID attribute: Unique identifier for site that the Stock Level Record applies to
- String
(required) - StockId attribute: Unique identifier for Stock Item (link to StockItem entity)
- String
(required) - Type: Base categorisation for stock tag
- String
- Tags: User defined list of tags they might want to filter on
- String
- SaleLocationId: Unique identifier for where the stock take was performed (link to StockLocation entity)
- String
- StockTakeDate: DateTime when the stock take was performed
- ISO-8601 datetime
(required) - NumberItems: How many of the stock item were recorded
- Integer
(required) - Currency: The Currency value that defines the value of the Stock Items recorded (default to site's currency)
- ISO-4217 Code e.g. USD
- ItemCost: How much the quantity of stock items recorded cost site to buy in
- Integer
- Precision attribute: The number of decimal places in the ItemCost field
- Integer
(required)
PLEASE NOTE: All field and attribute names are case sensitive
Message Structure - XML:
Callback Post Fields:
- DataSupplierID: Unique identifier for your account, same as passed in post message
- MessageSequence: Unique sequence number for message, same as passed in post message
- ID attribute: Unique identifier for StockLevel, same as passed in post message
- Status: Processing result flag - ok/error
- Error: If the status flag is "error", list of warning messages during processing