Enriched events

June 9, 2023


Details

Feature available starting from v1.7.0 webhook manager.
These events guarantee that the reference id exists in the hook data. In addition to the id the hooks will contain data for the reference object itself for insert and update calls.

Structure

For these types the webhook will also contain data for the object under the data parameter (value of null for others).
  {  "id": "6284e24920ab9a8b363344dd",  "hmac": "49bd805ee40c169780f7d0ce68a9d89ac29de9fdfc876d1d2ba3d6802b16asd",  "clientCode": "{Client Code}",  "table": "wm_customer",  "action": "update",  "eventCount": 1,  "items": [    {      "rowId": 18651,      "timestamp": "2022-05-18 15:10:46",      "data": {        "id": 18651,         ...      }    }  ] }

Details

Supported actions: insert, update and delete. Delete hooks will not contain the objects data. Data structure in the hook will match that of the record from the corresponding api call. 

Resource

Table

Applications handling records

Data structure source

Campaigns

wm_campaign

Erply API, Classic BO and Berlin BO

https://learn-api.erply.com/requests/getcampaigns

Inventory registration

wm_inventory_registration

Erply API, Classic BO and Berlin BO

https://learn-api.erply.com/requests/getinventoryregistrations

Inventory Write-off

wm_inventory_writeoff

Erply API, Classic BO and Berlin BO

https://learn-api.erply.com/requests/getinventorywriteoffs

Inventory Transfer

wm_inventory_transfer

Erply API, Classic BO and Berlin BO

https://learn-api.erply.com/requests/getinventorytransfers

Purchase Document

wm_purchase_document

Erply API, Classic BO and Berlin BO

https://learn-api.erply.com/requests/getpurchasedocuments

Sales Document

wm_sales_document

Erply API, Classic BO and Berlin BO

https://learn-api.erply.com/requests/getsalesdocuments

Customers

wm_customer

Erply API, Classic BO and Berlin BO

https://learn-api.erply.com/search?q=getCustomers

Products

wm_product

Erply API, Classic BO and Berlin BO, PIM API

https://learn-api.erply.com/requests/getproducts

Pricelists

wm_pricelist

Erply API, Classic BO and Berlin BO

https://learn-api.erply.com/requests/getpricelists

Paymentswm_paymentErply API, Classic BO and Berlin BOhttps://learn-api.erply.com/requests/getpayments