Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
DEVDOCS-4770: [update] Webhooks, reverse SKU inventory method definit…
Browse files Browse the repository at this point in the history
…ions (#1762)
  • Loading branch information
bc-traciporter authored and slsriehl committed Feb 8, 2023
1 parent 271210e commit ee9fd96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/api-docs/getting-started/webhooks/webhook-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ Payload objects with the following scopes take the form that follows:
"inventory": {
"product_id": 167, // ID of the product
"method": "absolute", // absolute or relative
// absolute -- inventory updated by an order
// relative -- inventory updated using the API or the control panel
// absolute -- inventory updated using the API or the control panel
// relative -- inventory updated by an order
"value": 100000000 // the number of items that the inventory changed by
// value can be negative if the inventory is decreased (-3) or positive if an item is returned to the inventory from an order, (+2)
}
Expand Down Expand Up @@ -562,8 +562,8 @@ Payload objects with the following scopes take the form that follows:
"inventory": {
"product_id": 206, // ID of the product
"method": "absolute", // absolute or relative
// absolute -- inventory updated by an order
// relative -- inventory updated using the API or the control panel
// absolute -- inventory updated using the API or the control panel
// relative -- inventory updated by an order
"value": 5, // the number of items that the inventory changed by.
// This can be negative if the inventory is decreased (-3), or positive if an item is returned to the inventory from an order (+2).
"variant_id": 509 // ID of the variant
Expand Down

0 comments on commit ee9fd96

Please sign in to comment.