API Reference

Inventory Change Details Object

The inventory_change_details Object is included in the Order Inventories Object.

📘

Important Note

When there is no rejection to report, this object is returned as an empty array.

Inventory Change Details

When there is a change to an inventory item, this object includes the following details:

ParameterDescription
after
Int32
The number of rejected items after the change occurred.
before
Int32
The number of rejected items before the change occurred.
change_type
Int32
The change_type value is always 2 and indicates an inventory rejection.
inventory_change
object
An object detailing the inventory rejection reason and rejection reason ID.

Example

              "inventory_change_details":[
                 {
                    "change_type":2,
                    "before":"0",
                    "after":"4",
                    "inventory_change":{
                       "reason_to_change_inventory_id":421,
                       "reason_to_change_inventory":{
                          "reason":"Item is damaged"