Skip to content

Product Operation Event
Webhook

Request

Sent when a product operation occurs: sale, receipt, consumable write-off, product write-off, or product movement. The resource field indicates the specific operation type: goods_operations_sale, goods_operations_receipt, goods_operations_consumable, goods_operations_stolen, goods_operations_move.

Bodyapplication/jsonrequired
company_idintegerrequired

Location ID where the event occurred.

resourcestringrequired

Resource type.

Enum:"goods_operations_sale""goods_operations_receipt""goods_operations_consumable""goods_operations_stolen""goods_operations_move"
resource_idintegerrequired

ID of the resource that was created, updated, or deleted.

statusstringrequired

Type of change that occurred.

Enum:"create""update""delete"
dataobject(Webhook Goods Operation Data)required

Product operation data sent in webhook notifications. Covers all operation types: sale, receipt, consumable write-off, product write-off, and movement.

POST
GoodsOperationEvent
Payload
{ "company_id": 123456, "resource": "goods_operations_sale", "resource_id": 801, "status": "create", "data": { "id": 801, "type_id": 1, "type": "sale", "amount": 2, "cost_per_unit": 25, "cost": 50, "good": { … } } }

Responses

Your server should return any 2xx status code to acknowledge receipt.