Webhooks
Last updated
Was this helpful?
Last updated
Was this helpful?
The events performed by OMS, such as the results of actions carried out in the OMS and the new states of the domain objects, are transferred by OMS to third-party software via webhooks.
When a particular event occurs, webhooks asynchronously notify users who have to that event via a URL. The webhooks under the roof of OMS are grouped under the four headings below:
To monitor the actions relating to a particular event, an OMS webhook object must be created containing information such as target_url
, event_type
, etc.
event_type
Event subject to notification
target_url
URL with the event information
retry_countdown_config
Can be defined for retry time (fixed-linear-exponential-random)
additional_headers
If additional header information is required for the requested service, this can be filled (can be null)
secret_key
can be used if an encrypted key is required for the request. (can be null)
package.created
Triggered when a new package is created.
Triggered when the package.status.transitioned
status of a package is updated to transitioned
.
Triggered when the package.status.packed
status of a package is updated to packed
.
Triggered when the package.status.cancelled
status of a package is updated to cancelled
.
Triggered when the package.status.shipped
status of a package is updated to shipped
.
Triggered when the package.status.packed_for_refund
status of a package is updated to packed_for_refund
.
Triggered when the awb_number
of a package.shipment.awb_number
package is set.
shipment.created
Triggered when a new “shipment” is created for a package or a transfer is set to be made to another location.
shipment.status.updated
Triggered when the “shipment” or transfer status of a package is updated.
shipment.cancelled
Triggered when the “shipment” or inter-location transfer of a package is canceled.
transfer.status.created
Triggered when new transfers are created.
Triggered when the transfer.status.transitioned
status of a transfer is updated to transitioned
.
Triggered when the transfer.status.in_transit
status of a transfer is updated to in_transit
.
Triggered when the transfer.status.transferred
status of a transfer is updated to transferred
.
Triggered when the transfer.status.cancelled
status of a transfer is updated to cancelled
.
Triggered when the transfer.status.ready_to_shipment
status of a transfer is updated to ready_to_shipment
.
stock_location.created
Triggered when a new stock location is created.
stock_location.updated
when a stock location is updated