Send inventory content from the POS to the inventory system.
Path Parameters
Headers
Request Body
{"message": "Synchronization data was sent to the inventory system.","data": null}
{"message": ["You don't have this store available.","The third_party_id does not have an Inventory System role or does not exist.","No integration record was found between this user store and the third party system.","External id not found for this store in the inventory system.","The item must have a name.","The item must have an external id.","The item must have an purchase unit external id.","The item must have an consumption unit external id.","The item must have a supplier external id.","The item must have a cost.","The item must have a stock.","The unit must have a name.","The unit must have a short name.","The unit must have an external id.","The supplier must have a name.","The supplier must have an external id.","Item purchase unit external id (____) not found in units array","The item purchase unit external id must be a string.","The item consumption unit external id must be a string.","Item supplier external id (____) not found in suppliers array","The item cost must be a string.","The item stock must be a string." ],"data": null}
{"items": ["The items field is required." ],"inventory_system_id": ["The inventory system id field is required.","The inventory system id must be a string." ],"units": ["The units field is required." ],"suppliers": ["The suppliers field is required." ],"user_id_tps": ["The user id tps field is required." ]}
{"message": ["This user_id_tps does not own this inventory system.","No integration record was found between this user store and the third party system.","External id not found for this store in the inventory system.","This type of webhook is not available.","This inventory system does not have this type of webhook available." ],"data": null}
{"user_id_tps": ["The user id tps field is required." ],"inventory_system_id": ["The inventory system id field is required." ],"current_stock": ["The current stock field is required." ],"quantity": ["The quantity field is required." ],"date": ["The date field is required." ],"movement_type": ["The movement type field is required.","The selected movement type is invalid." ]}
Any other error response you receive from this endpoint comes directly from the inventory system.
The inventory system can send different types of data about its items, the POS system that you have registered can receive this data by registering the urls of the webhooks where it wants to receive each of these types.
Types of information that the POS sends:
Type 3: Receive the stock update of an inventory item
{"type": ["The type field is required.","The selected type is invalid." ],"url": ["The url field is required." ]}
These webhook requests will send a header called X-Signature-Request, as a security measure to confirm that the request came from our system.
Webhook(Type 3 - Receive stock update item)
The value of this field is a hexadecimal HMAC signature of the body request payload, using the client secret as a key(generated on account creation) and SHA256 as the hash function.
Your service should POST a 204 response status code with an empty response body to acknowledge receipt of the webhook event. If an error occurs in your POS system, the response must be returned with the respective status code and the body must include a field called message, this will be taken to show it to the Inventory System.