Enable and disable inventory tracking
You can enable and disable tracking one or more product inventory at any time.
Disabling tracking does not delete the saved balances. However, the product balances will no longer be automatically updated when a purchase happens.
When you enable tracking the product inventory again, the product balances will be automatically updated.
- Make sure that authorisation is set up with the following OAuth scope using OAuth API:
WRITE:PRODUCT
- The product UUID for the product that you want to start or stop tracking. See Fetch products.
Send the following request to enable tracking one or more product inventories.
If the request is successful, the response returns status code
204 No Content
.Example: This request enables tracking for the product with UUID
d42260ae-423d-11ec-95a4-10307542d8a2
and the product with UUID 46dcc710-3000-11ec-b1e1-070fbd7d6e77
.Request
Request body
Send the following request to disable tracking one or more product inventories.
If the request is successful, the response returns status code
204 No Content
.Example: This request disables tracking for the product with UUID
d42260ae-423d-11ec-95a4-10307542d8a2
.Request