---
title: "Product Operation Event"
method: POST
path: "GoodsOperationEvent"
tags: ["Webhooks"]
---

# Product Operation Event

`POST GoodsOperationEvent` (webhook)

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`.

## Payload

- object
  - `company_id` integer, required — Location ID where the event occurred.
  - `resource` 'goods_operations_sale' | 'goods_operations_receipt' | 'goods_operations_consumable' | 'goods_operations_stolen' | 'goods_operations_move', required — Resource type.
  - `resource_id` integer, required — ID of the resource that was created, updated, or deleted.
  - `status` 'create' | 'update' | 'delete', required — Type of change that occurred.
  - `data` GoodsOperations, required — Product operation data sent in webhook notifications. Covers all operation types: sale, receipt, consumable write-off, product write-off, and movement.
    - `id` integer — Transaction ID.
    - `document_id` integer
    - `type_id` integer — Transaction type: 1 — sale, 2 — write-off, etc.
    - `type` string
    - `operation_unit_type` string
    - `amount` number
    - `create_date` string, date-time
    - `cost_per_unit` number
    - `cost` number
    - `discount` number
    - `comment` string
    - `record_id` integer
    - `last_change_date` string, date-time
    - `loyalty_abonement_id` integer, nullable
    - `loyalty_certificate_id` integer, nullable
    - `good` object — Related product.
      - `id` integer
      - `title` string
    - `unit` object
      - `id` integer
      - `title` string
      - `short_title` string
    - `storage` object
      - `id` integer
      - `title` string
    - `client` object
      - `id` integer
      - `name` string
      - `phone` string
    - `master` object
      - `id` integer
      - `title` string
    - `service` object
      - `id` integer
      - `title` string
    - `supplier` object
      - `id` integer
      - `title` string

## Acknowledgement `200`

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

---

[API](https://skmtc.dev/alteg/apis/developer-tools.md) · [All operations](https://skmtc.dev/alteg/apis/developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/alteg/developer-tools/revisions/c89b6494ffd2/schema)
