The inventory_change_details Object is included in the Order Inventories Object.
Important NoteWhen 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:
| Parameter | Description |
|---|---|
afterInt32 | The number of rejected items after the change occurred. |
beforeInt32 | The number of rejected items before the change occurred. |
change_typeInt32 | The change_type value is always 2 and indicates an inventory rejection. |
inventory_changeobject | 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"
}
}
}
]