ATUM REST API

Inventory logs

ATUM

The inventory logs API allows you to create, view, update, and delete individual, or a batch, of inventory logs.

Inventory log properties

AttributeTypeDescription
idintegerUnique identifier for the resource. read-only
statusstringInventory log status. Options: atum_pending, atum_completed and trash. Default is atum_pending.
currencystringCurrency the inventory log was created with, in ISO format. Options: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTC, BTN, BWP, BYR, BYN, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, IRT, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PRB, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STN, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR and ZMW. Default is the store's currency.
date_createddate-timeThe date the inventory log was created, in the site's timezone.
date_created_gmtdate-timeThe date the inventory log was created, as GMT.
date_modifieddate-timeThe date the inventory log was last modified, in the site's timezone. read-only
date_modified_gmtdate-timeThe date the inventory log was last modified, as GMT. read-only
discount_totalstringTotal discount amount for the inventory log. read-only
discount_taxstringTotal discount tax amount for the inventory log. read-only
shipping_totalstringTotal shipping amount for the inventory log. read-only
shipping_taxstringTotal shipping tax amount for the inventory log. read-only
cart_taxstringSum of line item taxes only. read-only
totalstringGrand total, including tax. read-only
total_taxstringSum of all taxes. read-only
prices_include_taxbooleanWhether the prices included tax when the inventory log was created. read-only
date_completeddate-timeThe date the inventory log was completed, in the site's timezone.
date_completed_gmtdate-timeThe date the inventory log was completed, as GMT.
typestringThe log type. Options: reserved-stock, customer-returns, warehouse-damage, lost-in-post and other.
orderintegerThe WooCommerce order ID to which this log is linked.
reservation_datedate-timeThe date for when the stock is reserved, in the site's timezone. Only for logs with type reserved-stock.
reservation_date_gmtdate-timeThe date for when the stock is reserved, as GMT. Only for logs with type reserved-stock.
return_datedate-timeThe date for when the customer returned the stock, in the site's timezone. Only for logs with type customer-returns.
return_date_gmtdate-timeThe date for when the customer returned the stock, as GMT. Only for logs with type customer-returns.
damage_datedate-timeThe date for when the stock was damaged at warehouse, in the site's timezone. Only for logs with type warehouse-damage.
damage_date_gmtdate-timeThe date for when the stock was damaged at warehouse, as GMT. Only for logs with type warehouse-damage.
shipping_companystringThe name of the company that lost the stock in post. Only for logs with type lost-in-post.
custom_namestringThe custom name for the other log types. Only for logs with type other.
line_itemsarrayLine items data. See Inventory Log - Line items properties
tax_linesarrayTax lines data. See Inventory Log - Tax lines properties read-only
shipping_linesarrayShipping lines data. See Inventory Log - Shipping lines properties
fee_linesarrayFee lines data. See Inventory Log - Fee lines properties
meta_dataarrayMeta data. See Inventory Log - Meta data properties. When updating an inventory log, only the meta keys that match an inventory log prop are saved.
descriptionstringThe inventory log description.

The type-specific fields (reservation_date, return_date, damage_date, shipping_company and custom_name, with their _gmt versions) are only included in the response when the inventory log has the matching type.

When sending dates, you can use either the site's timezone version or the _gmt one. If both are sent, the _gmt value prevails.

Inventory Log - Meta data properties

AttributeTypeDescription
idintegerMeta ID. read-only
keystringMeta key.
valuemixedMeta value.
display_keystringMeta key for UI display. Only for the meta data of the order items. read-only
display_valuemixedMeta value for UI display. Only for the meta data of the order items. read-only

Inventory Log - Line items properties

AttributeTypeDescription
idintegerItem ID. Send it to update an existing item. read-only
namestringProduct name.
product_idintegerProduct ID. Send it as null (or send the item's quantity as 0) to remove the item from the inventory log.
variation_idintegerVariation ID, if applicable.
quantityintegerQuantity ordered.
tax_classstringSlug of the tax class of product.
subtotalstringLine subtotal, excluding tax (before discounts).
subtotal_taxstringLine subtotal tax (before discounts). read-only
totalstringLine total, excluding tax (after discounts).
total_taxstringLine total tax (after discounts). read-only
taxesarrayLine taxes. See Inventory Log - Taxes properties read-only
stock_changedstringWhether the stock was already changed for this item. Options: yes and no.
meta_dataarrayMeta data. See Inventory Log - Meta data properties
skustringProduct SKU. When adding an item, it can be sent instead of product_id to find the product.
global_unique_idstringProduct's GTIN, UPC, EAN or ISBN. read-only
pricenumberProduct unit price (line total divided by the quantity). When adding or updating an item, you can send the unit price instead of the subtotal and total, and both are calculated as price × quantity.
imageobjectProperties of the main product image: id (image ID) and src (image URL). read-only
parent_namestringParent product name if the product is a variation. null otherwise. read-only
mi_inventoriesarrayMulti-Inventory order items. See Inventory Log - MI Order Items properties Multi-Inventory
bom_itemsarrayBOM order items. See Inventory Log - BOM Order Items properties read-only Product Levels

Inventory Log - Tax lines properties

AttributeTypeDescription
idintegerItem ID. read-only
rate_codestringTax rate code. read-only
rate_idintegerTax rate ID. read-only
labelstringTax rate label. read-only
compoundbooleanShow if is a compound tax rate. read-only
tax_totalstringTax total (not including shipping taxes). read-only
shipping_tax_totalstringShipping tax total. read-only
meta_dataarrayMeta data. See Inventory Log - Meta data properties

Inventory Log - Shipping lines properties

AttributeTypeDescription
idintegerItem ID. Send it to update an existing item. read-only
method_titlestringShipping method name. Send it as null to remove the item.
method_idstringShipping method ID. Required when adding a shipping line.
totalstringShipping total, excluding tax.
total_taxstringShipping total tax. read-only
taxesarrayLine taxes. See Inventory Log - Taxes properties read-only
meta_dataarrayMeta data. See Inventory Log - Meta data properties

Inventory Log - Fee lines properties

AttributeTypeDescription
idintegerItem ID. Send it to update an existing item. read-only
namestringFee name. Required when adding a fee line. Send it as null to remove the item.
tax_classstringTax class of fee.
tax_statusstringTax status of fee. Options: taxable and none.
totalstringFee total, excluding tax.
total_taxstringFee total tax. read-only
taxesarrayLine taxes. See Inventory Log - Taxes properties read-only
meta_dataarrayMeta data. See Inventory Log - Meta data properties

Inventory Log - Taxes properties

AttributeTypeDescription
idintegerTax rate ID. read-only
totalstringTax total. read-only
subtotalstringTax subtotal. Empty for shipping lines. read-only

Inventory Log - MI Order Items properties

Multi-Inventory
AttributeTypeDescription
idintegerThe order item inventory ID. read-only
inventory_idintegerThe inventory ID linked to the order item. It must be an inventory of the line item's product (or variation). Required when adding or editing order item inventories.
qtynumberThe quantity of the specified inventory that is used on the order item. Default is 0.
subtotalnumberOrder item inventory's subtotal. If not sent, it's calculated from the inventory's (or the product's) price.
totalnumberOrder item inventory's total. If not sent, it's calculated from the inventory's (or the product's) price.
refund_qtynumberOrder item inventory's refund quantity.
refund_totalnumberOrder item inventory's refund total.
reduced_stocknumberOrder item inventory's already reduced stock. read-only
extra_datastringOrder item inventory's extra data: a serialized array with the inventory details (name, SKU, supplier SKU, barcode, BBE date, lot, regions, locations, etc.) to keep them in the order if the inventory gets deleted. read-only
deletebooleanSet to true to delete the order item inventory with the specified inventory_id. Default is false. write-only
order_item_idintegerThe order item ID linked to this order item inventory. It's always taken from the parent line item. write-only
product_idintegerThe product ID from where the inventory comes. write-only
order_typeintegerThe type of order (WC Order = 1, Purchase Order = 2, Inventory Log = 3). write-only

When the mi_inventories array is sent for a line item, the inventories that aren't included in it are kept as they are, the ones included are updated (matched by inventory_id) or added, and the ones with delete set to true are removed. The line item's quantity and totals are then recalculated from its inventories.

Inventory Log - BOM Order Items properties

Product Levels
AttributeTypeDescription
idintegerThe BOM order item ID. Not included in the responses. read-only
bom_idintegerThe BOM product ID associated to the BOM order item. read-only
bom_typestringThe BOM product type. Options: product_part and raw_material. read-only
qtynumberThe quantity of the specified BOM that is used on the order item (the sum of all the order items of that BOM). read-only

Create an inventory log

This API helps you to create a new inventory log.

HTTP request

POST/wp-json/wc/v3/atum/inventory-logs
curl -X POST https://example.com/wp-json/wc/v3/atum/inventory-logs \
	-u consumer_key:consumer_secret \
	-H "Content-Type: application/json" \
	-d '{
  "type": "reserved-stock",
  "reservation_date": "2019-11-11T11:26:41",
  "description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",
  "status": "atum_pending",
  "line_items": [
    {
      "product_id": 93,
      "quantity": 2,
      "mi_inventories": [
        {
          "inventory_id": 152,
          "qty": 1
        },
        {
          "inventory_id": 126,
          "qty": 1
        }
      ]
    },
    {
      "product_id": 22,
      "variation_id": 23,
      "quantity": 1,
      "mi_inventories": [
        {
          "inventory_id": 112,
          "qty": 1
        }        
      ]
    }
  ],
  "shipping_lines": [
    {
      "method_id": "flat_rate",
      "method_title": "Flat Rate",
      "total": "10"
    }
  ]
}'
JSON response example
{
    "id": 2144,
    "status": "atum_pending",
    "currency": "EUR",
    "prices_include_tax": false,
    "date_created": "2019-11-11T11:43:49",
    "date_modified": "2019-11-11T11:43:50",
    "discount_total": "0.00",
    "discount_tax": "0.00",
    "shipping_total": "20.00",
    "shipping_tax": "2.00",
    "cart_tax": "1.20",
    "total": "35.20",
    "total_tax": "3.20",
    "date_completed": "2019-11-11T11:43:51",
    "line_items": [
        {
            "id": 320,
            "name": "Woo Single #1",
            "product_id": 93,
            "variation_id": 0,
            "quantity": 2,
            "tax_class": "",
            "subtotal": "6.00",
            "subtotal_tax": "1.20",
            "total": "6.00",
            "total_tax": "1.20",
            "taxes": [
                {
                    "id": 1,
                    "total": "1.2",
                    "subtotal": "1.2"
                }
            ],
            "stock_changed": "no",
            "meta_data": [],
            "sku": "Back Orders",
            "global_unique_id": "",
            "price": 3,
            "image": {
                "id": 0,
                "src": ""
            },
            "parent_name": null,
            "mi_inventories": [
                {
                    "id": 192,
                    "inventory_id": 152,
                    "qty": 1,
                    "subtotal": 3,
                    "total": 0,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 0,
                    "extra_data": "a:11:{s:4:\"name\";s:14:\"Main Inventory\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;s:7:\"is_main\";s:3:\"yes\";}"
                },
                {
                    "id": 193,
                    "inventory_id": 126,
                    "qty": 1,
                    "subtotal": 3,
                    "total": 0,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 0,
                    "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 2\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                }
            ],
            "bom_items": []
        },
        {
            "id": 321,
            "name": "Ship Your Idea 2 - Black",
            "product_id": 22,
            "variation_id": 23,
            "quantity": 1,
            "tax_class": "",
            "subtotal": "0.00",
            "subtotal_tax": "0.00",
            "total": "0.00",
            "total_tax": "0.00",
            "taxes": [
                {
                    "id": 1,
                    "total": "0",
                    "subtotal": "0"
                }
            ],
            "stock_changed": "no",
            "meta_data": [
                {
                    "id": 2750,
                    "key": "pa_color",
                    "value": "black",
                    "display_key": "Color",
                    "display_value": "Black"
                }
            ],
            "sku": "",
            "global_unique_id": "",
            "price": 0,
            "image": {
                "id": 0,
                "src": ""
            },
            "parent_name": "Ship Your Idea 2",
            "mi_inventories": [
                {
                    "id": 194,
                    "inventory_id": 112,
                    "qty": 1,
                    "subtotal": 0,
                    "total": 0,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 0,
                    "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 3\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                }
            ],
            "bom_items": []
        }
    ],
    "tax_lines": [
        {
            "id": 323,
            "rate_code": "GB-VAT-1",
            "rate_id": 1,
            "label": "VAT",
            "compound": false,
            "tax_total": "1.20",
            "shipping_tax_total": "2.00",
            "meta_data": []
        }
    ],
    "shipping_lines": [
        {
            "id": 322,
            "method_title": "Flat Rate",
            "method_id": "flat_rate",
            "total": "10.00",
            "total_tax": "2.00",
            "taxes": [
                {
                    "id": 1,
                    "total": "2",
                    "subtotal": ""
                }
            ],
            "meta_data": []
        }
    ],
    "fee_lines": [],
    "description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",
    "type": "reserved-stock",
    "order": false,
    "reservation_date": "2019-11-11T11:26:41",
    "date_created_gmt": "2019-11-11T10:43:49",
    "date_modified_gmt": "2019-11-11T11:43:50",
    "date_completed_gmt": "2019-11-11T10:43:51",
    "reservation_date_gmt": "2019-11-11T10:26:41",
    "_links": {
        "self": [
            {
                "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/2144"
            }
        ],
        "collection": [
            {
                "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
            }
        ]
    }
}

Retrieve an inventory log

This API lets you retrieve and view a specific inventory log.

HTTP request

GET/wp-json/wc/v3/atum/inventory-logs/<id>
curl https://example.com/wp-json/wc/v3/atum/inventory-logs/727 \
	-u consumer_key:consumer_secret
JSON response example
{
    "id": 713,
    "status": "atum_pending",
    "currency": "EUR",
    "prices_include_tax": false,
    "date_created": "2019-04-09T10:53:00",
    "date_modified": "2019-11-11T11:26:27",
    "discount_total": "0.00",
    "discount_tax": "0.00",
    "shipping_total": "0.00",
    "shipping_tax": "0.00",
    "cart_tax": "0.00",
    "total": "25.32",
    "total_tax": "0.00",
    "date_completed": "2019-11-11T12:01:13",
    "line_items": [
        {
            "id": 262,
            "name": "ABC 123 XPTO",
            "product_id": 507,
            "variation_id": 0,
            "quantity": 2,
            "tax_class": "",
            "subtotal": "25.32",
            "subtotal_tax": "0.00",
            "total": "25.32",
            "total_tax": "0.00",
            "taxes": [],
            "stock_changed": "no",
            "meta_data": [],
            "sku": "",
            "global_unique_id": "",
            "price": 12.66,
            "image": {
                "id": 0,
                "src": ""
            },
            "parent_name": null,
            "mi_inventories": [
                {
                    "id": 187,
                    "inventory_id": 152,
                    "qty": 1,
                    "subtotal": 20,
                    "total": 20,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 0,
                    "extra_data": "a:11:{s:4:\"name\";s:14:\"Main Inventory\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;s:7:\"is_main\";s:3:\"yes\";}"
                },
                {
                    "id": 188,
                    "inventory_id": 55,
                    "qty": 1,
                    "subtotal": 5.32,
                    "total": 5.32,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 0,
                    "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 4\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                }
            ],
            "bom_items": []
        }
    ],
    "tax_lines": [],
    "shipping_lines": [],
    "fee_lines": [],
    "description": "The description",
    "type": "reserved-stock",
    "order": false,
    "reservation_date": "2019-11-11T12:01:14",
    "date_created_gmt": "2019-04-09T10:53:00",
    "date_modified_gmt": "2019-11-11T11:26:27",
    "date_completed_gmt": "2019-11-11T11:01:13",
    "reservation_date_gmt": "2019-11-11T11:01:14",
    "_links": {
        "self": [
            {
                "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/713"
            }
        ],
        "collection": [
            {
                "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
            }
        ]
    }
}

Available parameters

ParameterTypeDescription
contextstringScope under which the request is made; determines fields present in response. Options: view and edit. Default is view.
dpintegerNumber of decimal points to use in each resource. Default is 2.

List all inventory logs

This API helps you to view all the inventory logs.

HTTP request

GET/wp-json/wc/v3/atum/inventory-logs
curl https://example.com/wp-json/wc/v3/atum/inventory-logs \
	-u consumer_key:consumer_secret
JSON response example
[
    {
        "id": 713,
        "status": "atum_pending",
        "currency": "EUR",
        "prices_include_tax": false,
        "date_created": "2019-04-09T10:53:00",
        "date_modified": "2019-11-11T11:26:27",
        "discount_total": "0.00",
        "discount_tax": "0.00",
        "shipping_total": "0.00",
        "shipping_tax": "0.00",
        "cart_tax": "0.00",
        "total": "25.32",
        "total_tax": "0.00",
        "date_completed": "2019-11-11T12:15:14",
        "line_items": [
            {
                "id": 262,
                "name": "ABC 123 XPTO",
                "product_id": 507,
                "variation_id": 0,
                "quantity": 2,
                "tax_class": "",
                "subtotal": "25.32",
                "subtotal_tax": "0.00",
                "total": "25.32",
                "total_tax": "0.00",
                "taxes": [],
                "stock_changed": "no",
                "meta_data": [],
                "sku": "",
                "global_unique_id": "",
                "price": 12.66,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": null,
                "mi_inventories": [
                    {
                        "id": 187,
                        "inventory_id": 152,
                        "qty": 1,
                        "subtotal": 20,
                        "total": 20,
                        "refund_qty": 0,
                        "refund_total": 0,
                        "reduced_stock": 0,
                        "extra_data": "a:11:{s:4:\"name\";s:14:\"Main Inventory\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;s:7:\"is_main\";s:3:\"yes\";}"
                    },
                    {
                        "id": 188,
                        "inventory_id": 55,
                        "qty": 1,
                        "subtotal": 5.32,
                        "total": 5.32,
                        "refund_qty": 0,
                        "refund_total": 0,
                        "reduced_stock": 0,
                        "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 4\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                    }
                ],
                "bom_items": []
            }
        ],
        "tax_lines": [],
        "shipping_lines": [],
        "fee_lines": [],
        "description": "The description",
        "type": "reserved-stock",
        "order": false,
        "reservation_date": "2019-11-11T12:15:14",
        "date_created_gmt": "2019-04-09T10:53:00",
        "date_modified_gmt": "2019-11-11T11:26:27",
        "date_completed_gmt": "2019-11-11T11:15:14",
        "reservation_date_gmt": "2019-11-11T11:15:14",
        "_links": {
            "self": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/713"
                }
            ],
            "collection": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
                }
            ]
        }
    },
    {
        "id": 493,
        "status": "atum_pending",
        "currency": "EUR",
        "prices_include_tax": false,
        "date_created": "2018-03-06T08:03:00",
        "date_modified": "2019-09-17T11:42:36",
        "discount_total": "0.00",
        "discount_tax": "0.00",
        "shipping_total": "0.00",
        "shipping_tax": "0.00",
        "cart_tax": "4.20",
        "total": "25.20",
        "total_tax": "4.20",
        "date_completed": "2019-11-11T12:15:14",
        "line_items": [
            {
                "id": 220,
                "name": "Ship Your Idea 2 - Green",
                "product_id": 22,
                "variation_id": 24,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "20.00",
                "subtotal_tax": "4.00",
                "total": "20.00",
                "total_tax": "4.00",
                "taxes": [
                    {
                        "id": 1,
                        "total": "4",
                        "subtotal": "4"
                    }
                ],
                "stock_changed": "no",
                "meta_data": [
                    {
                        "id": 1727,
                        "key": "pa_color",
                        "value": "green",
                        "display_key": "Color",
                        "display_value": "Green"
                    },
                    {
                        "id": 1873,
                        "key": "_order_id",
                        "value": "490",
                        "display_key": "_order_id",
                        "display_value": "490"
                    }
                ],
                "sku": "",
                "global_unique_id": "",
                "price": 20,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": "Ship Your Idea 2",
                "mi_inventories": [],
                "bom_items": []
            },
            {
                "id": 237,
                "name": "ABC 123 XPTO",
                "product_id": 507,
                "variation_id": 0,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "1.00",
                "subtotal_tax": "0.20",
                "total": "1.00",
                "total_tax": "0.20",
                "taxes": [
                    {
                        "id": 1,
                        "total": "0.2",
                        "subtotal": "0.2"
                    }
                ],
                "stock_changed": "no",
                "meta_data": [],
                "sku": "",
                "global_unique_id": "",
                "price": 1,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": null,
                "mi_inventories": [],
                "bom_items": []
            },
            {
                "id": 248,
                "name": "Woo Ninja",
                "product_id": 47,
                "variation_id": 0,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "35.00",
                "subtotal_tax": "0.00",
                "total": "35.00",
                "total_tax": "0.00",
                "taxes": [],
                "stock_changed": "no",
                "meta_data": [],
                "sku": "",
                "global_unique_id": "",
                "price": 35,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": null,
                "mi_inventories": [],
                "bom_items": []
            },
            {
                "id": 249,
                "name": "Woo Logo",
                "product_id": 79,
                "variation_id": 0,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "15.00",
                "subtotal_tax": "0.00",
                "total": "15.00",
                "total_tax": "0.00",
                "taxes": [],
                "stock_changed": "no",
                "meta_data": [],
                "sku": "",
                "global_unique_id": "",
                "price": 15,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": null,
                "mi_inventories": [],
                "bom_items": []
            }
        ],
        "tax_lines": [
            {
                "id": 221,
                "rate_code": "GB-VAT-1",
                "rate_id": 1,
                "label": "VAT",
                "compound": false,
                "tax_total": "4.20",
                "shipping_tax_total": "0.00",
                "meta_data": []
            }
        ],
        "shipping_lines": [],
        "fee_lines": [],
        "description": "",
        "type": "other",
        "order": {},
        "custom_name": "Destroyed",
        "date_created_gmt": "2018-03-06T08:03:00",
        "date_modified_gmt": "2019-09-17T11:42:36",
        "date_completed_gmt": "2019-11-11T11:15:14",
        "_links": {
            "self": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/493"
                }
            ],
            "collection": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
                }
            ]
        }
    },
    {
        "id": 492,
        "status": "atum_pending",
        "currency": "EUR",
        "prices_include_tax": false,
        "date_created": "2018-03-05T09:55:00",
        "date_modified": "2019-04-26T13:43:31",
        "discount_total": "0.00",
        "discount_tax": "0.00",
        "shipping_total": "0.00",
        "shipping_tax": "0.00",
        "cart_tax": "4.60",
        "total": "39.60",
        "total_tax": "4.60",
        "date_completed": "2019-11-11T12:15:14",
        "line_items": [
            {
                "id": 219,
                "name": "Ship Your Idea 2 - Green",
                "product_id": 22,
                "variation_id": 24,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "20.00",
                "subtotal_tax": "4.00",
                "total": "20.00",
                "total_tax": "4.00",
                "taxes": [
                    {
                        "id": 1,
                        "total": "4",
                        "subtotal": "4"
                    }
                ],
                "stock_changed": "no",
                "meta_data": [
                    {
                        "id": 1716,
                        "key": "pa_color",
                        "value": "green",
                        "display_key": "Color",
                        "display_value": "Green"
                    },
                    {
                        "id": 2188,
                        "key": "_order_id",
                        "value": "490",
                        "display_key": "_order_id",
                        "display_value": "490"
                    }
                ],
                "sku": "",
                "global_unique_id": "",
                "price": 20,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": "Ship Your Idea 2",
                "mi_inventories": [],
                "bom_items": []
            },
            {
                "id": 238,
                "name": "ABC 123 XPTO",
                "product_id": 507,
                "variation_id": 0,
                "quantity": 3,
                "tax_class": "",
                "subtotal": "3.00",
                "subtotal_tax": "0.60",
                "total": "3.00",
                "total_tax": "0.60",
                "taxes": [
                    {
                        "id": 1,
                        "total": "0.6",
                        "subtotal": "0.6"
                    }
                ],
                "stock_changed": "no",
                "meta_data": [],
                "sku": "",
                "global_unique_id": "",
                "price": 1,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": null,
                "mi_inventories": [],
                "bom_items": []
            },
            {
                "id": 272,
                "name": "Happy Ninja",
                "product_id": 37,
                "variation_id": 0,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "12.00",
                "subtotal_tax": "0.00",
                "total": "12.00",
                "total_tax": "0.00",
                "taxes": [
                    {
                        "id": 1,
                        "total": "",
                        "subtotal": ""
                    }
                ],
                "stock_changed": "no",
                "meta_data": [],
                "sku": "",
                "global_unique_id": "",
                "price": 12,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": null,
                "mi_inventories": [
                    {
                        "id": 131,
                        "inventory_id": 11,
                        "qty": 1,
                        "subtotal": 12,
                        "total": 12,
                        "refund_qty": 0,
                        "refund_total": 0,
                        "reduced_stock": 0,
                        "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 5\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                    }
                ],
                "bom_items": []
            }
        ],
        "tax_lines": [
            {
                "id": 217,
                "rate_code": "GB-VAT-1",
                "rate_id": 1,
                "label": "VAT",
                "compound": false,
                "tax_total": "4.60",
                "shipping_tax_total": "0.00",
                "meta_data": []
            }
        ],
        "shipping_lines": [],
        "fee_lines": [],
        "description": "",
        "type": "lost-in-post",
        "order": false,
        "shipping_company": "",
        "date_created_gmt": "2018-03-05T09:55:00",
        "date_modified_gmt": "2019-04-26T13:43:31",
        "date_completed_gmt": "2019-11-11T11:15:14",
        "_links": {
            "self": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/492"
                }
            ],
            "collection": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
                }
            ]
        }
    },
    {
        "id": 317,
        "status": "atum_pending",
        "currency": "EUR",
        "prices_include_tax": false,
        "date_created": "2017-07-06T16:29:00",
        "date_modified": "2019-04-26T11:23:03",
        "discount_total": "-15.00",
        "discount_tax": "0.00",
        "shipping_total": "2.00",
        "shipping_tax": "0.40",
        "cart_tax": "7.00",
        "total": "71.40",
        "total_tax": "7.40",
        "date_completed": "2019-11-11T12:15:15",
        "line_items": [
            {
                "id": 87,
                "name": "Woo Ninja",
                "product_id": 47,
                "variation_id": 0,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "35.00",
                "subtotal_tax": "7.00",
                "total": "35.00",
                "total_tax": "7.00",
                "taxes": [
                    {
                        "id": 1,
                        "total": "7",
                        "subtotal": "7"
                    }
                ],
                "stock_changed": "no",
                "meta_data": [],
                "sku": "",
                "global_unique_id": "",
                "price": 35,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": null,
                "mi_inventories": [
                    {
                        "id": 76,
                        "inventory_id": 82,
                        "qty": 1,
                        "subtotal": 20,
                        "total": 20,
                        "refund_qty": 0,
                        "refund_total": 0,
                        "reduced_stock": 0,
                        "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 6\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                    }
                ],
                "bom_items": []
            },
            {
                "id": 273,
                "name": "Happy Ninja",
                "product_id": 37,
                "variation_id": 0,
                "quantity": 4,
                "tax_class": "",
                "subtotal": "27.00",
                "subtotal_tax": "0.00",
                "total": "27.00",
                "total_tax": "0.00",
                "taxes": [
                    {
                        "id": 1,
                        "total": "",
                        "subtotal": ""
                    }
                ],
                "stock_changed": "no",
                "meta_data": [],
                "sku": "",
                "global_unique_id": "",
                "price": 6.75,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": null,
                "mi_inventories": [
                    {
                        "id": 132,
                        "inventory_id": 11,
                        "qty": 1,
                        "subtotal": 12,
                        "total": 12,
                        "refund_qty": 0,
                        "refund_total": 0,
                        "reduced_stock": 0,
                        "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 5\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                    },
                    {
                        "id": 133,
                        "inventory_id": 10,
                        "qty": 1,
                        "subtotal": 5,
                        "total": 5,
                        "refund_qty": 0,
                        "refund_total": 0,
                        "reduced_stock": 0,
                        "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 7\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                    },
                    {
                        "id": 134,
                        "inventory_id": 13,
                        "qty": 1,
                        "subtotal": 5,
                        "total": 5,
                        "refund_qty": 0,
                        "refund_total": 0,
                        "reduced_stock": 0,
                        "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 8\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                    },
                    {
                        "id": 135,
                        "inventory_id": 12,
                        "qty": 1,
                        "subtotal": 5,
                        "total": 5,
                        "refund_qty": 0,
                        "refund_total": 0,
                        "reduced_stock": 0,
                        "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 9\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                    }
                ],
                "bom_items": []
            }
        ],
        "tax_lines": [
            {
                "id": 89,
                "rate_code": "GB-VAT-1",
                "rate_id": 1,
                "label": "VAT",
                "compound": false,
                "tax_total": "7.00",
                "shipping_tax_total": "0.40",
                "meta_data": []
            }
        ],
        "shipping_lines": [
            {
                "id": 88,
                "method_title": "Shipping",
                "method_id": "flat_rate",
                "total": "2.00",
                "total_tax": "0.40",
                "taxes": [
                    {
                        "id": 1,
                        "total": "0.4",
                        "subtotal": ""
                    }
                ],
                "meta_data": []
            }
        ],
        "fee_lines": [],
        "description": "",
        "type": "warehouse-damage",
        "order": false,
        "damage_date": "2019-11-11T12:15:15",
        "date_created_gmt": "2017-07-06T16:29:00",
        "date_modified_gmt": "2019-04-26T11:23:03",
        "date_completed_gmt": "2019-11-11T11:15:15",
        "damage_date_gmt": "2019-11-11T11:15:15",
        "_links": {
            "self": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/317"
                }
            ],
            "collection": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
                }
            ]
        }
    },
    {
        "id": 314,
        "status": "atum_pending",
        "currency": "EUR",
        "prices_include_tax": false,
        "date_created": "2017-07-06T15:48:00",
        "date_modified": "2017-07-06T16:06:28",
        "discount_total": "0.00",
        "discount_tax": "0.00",
        "shipping_total": "2.00",
        "shipping_tax": "0.40",
        "cart_tax": "7.00",
        "total": "44.40",
        "total_tax": "7.40",
        "date_completed": "2019-11-11T12:15:15",
        "line_items": [
            {
                "id": 81,
                "name": "Woo Logo",
                "product_id": 60,
                "variation_id": 0,
                "quantity": 1,
                "tax_class": "",
                "subtotal": "35.00",
                "subtotal_tax": "7.00",
                "total": "35.00",
                "total_tax": "7.00",
                "taxes": [
                    {
                        "id": 1,
                        "total": "7",
                        "subtotal": "7"
                    }
                ],
                "stock_changed": "no",
                "meta_data": [],
                "sku": "",
                "global_unique_id": "",
                "price": 35,
                "image": {
                    "id": 0,
                    "src": ""
                },
                "parent_name": null,
                "mi_inventories": [],
                "bom_items": []
            }
        ],
        "tax_lines": [
            {
                "id": 83,
                "rate_code": "GB-VAT-1",
                "rate_id": 1,
                "label": "VAT",
                "compound": false,
                "tax_total": "7.00",
                "shipping_tax_total": "0.40",
                "meta_data": []
            }
        ],
        "shipping_lines": [
            {
                "id": 82,
                "method_title": "Shipping",
                "method_id": "flat_rate",
                "total": "2.00",
                "total_tax": "0.40",
                "taxes": [
                    {
                        "id": 1,
                        "total": "0.4",
                        "subtotal": ""
                    }
                ],
                "meta_data": []
            }
        ],
        "fee_lines": [],
        "description": "",
        "type": "customer-returns",
        "order": false,
        "return_date": "2019-11-11T12:15:15",
        "date_created_gmt": "2017-07-06T15:48:00",
        "date_modified_gmt": "2017-07-06T16:06:28",
        "date_completed_gmt": "2019-11-11T11:15:15",
        "return_date_gmt": "2019-11-11T11:15:15",
        "_links": {
            "self": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/314"
                }
            ],
            "collection": [
                {
                    "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
                }
            ]
        }
    }
]

Available parameters

ParameterTypeDescription
contextstringScope under which the request is made; determines fields present in response. Options: view and edit. Default is view.
pageintegerCurrent page of the collection. Default is 1.
per_pageintegerMaximum number of items to be returned in result set. Default is 10.
searchstringLimit results to those matching a string.
afterstringLimit response to resources published after a given ISO8601 compliant date.
beforestringLimit response to resources published before a given ISO8601 compliant date.
modified_afterstringLimit response to resources modified after a given ISO8601 compliant date.
modified_beforestringLimit response to resources modified before a given ISO8601 compliant date.
dates_are_gmtbooleanWhether to consider GMT post dates when limiting response by published or modified date. Default is false.
excludearrayEnsure result set excludes specific IDs.
includearrayLimit result set to specific ids.
offsetintegerOffset the result set by a specific number of items.
orderstringOrder sort attribute ascending or descending. Options: asc and desc. Default is desc.
orderbystringSort collection by object attribute. Options: date, id, include, title, slug and modified. Default is date.
parentarrayLimit result set to those of particular parent IDs.
parent_excludearrayLimit result set to all items except those of a particular parent ID.
statusarrayLimit result set to inventory logs assigned a specific status. Options: any, atum_pending, atum_completed and trash. Default is any.
productintegerLimit result set to inventory logs assigned a specific product.
dpintegerNumber of decimal points to use in each resource. Default is 2.
order_item_display_metabooleanOnly show the line items' meta which is meant to be displayed (the variation attributes already included in the item name are excluded). Default is false.
include_metaarrayLimit meta_data to specific keys. Inherited from the WooCommerce orders endpoint: it currently has no effect on inventory logs.
exclude_metaarrayEnsure meta_data excludes specific keys. Inherited from the WooCommerce orders endpoint: it currently has no effect on inventory logs.
created_viaarrayLimit result set to orders created via specific sources. Inherited from the WooCommerce orders endpoint: it currently has no effect on inventory logs.
typearrayLimit result set to inventory logs of the specified type(s). Options: reserved-stock, customer-returns, warehouse-damage, lost-in-post and other.
order_idintegerLimit result set to inventory logs linked to the specified WC order ID.
reservation_datestringLimit result set to inventory logs with the reservation date set on a given ISO8601 compliant date. Only available for inventory logs with type reserved-stock.
return_datestringLimit result set to inventory logs with the return date set on a given ISO8601 compliant date. Only available for inventory logs with type customer-returns.
damage_datestringLimit result set to inventory logs with the damage date set on a given ISO8601 compliant date. Only available for inventory logs with type warehouse-damage.
shipping_companystringLimit result set to the inventory logs where the specified company lost the stock in post. Only available for inventory logs with type lost-in-post.
custom_namestringLimit result set to the inventory logs with type other and the specified custom name.

Update an inventory log

This API lets you make changes to an inventory log.

HTTP Request

PUT/wp-json/wc/v3/atum/inventory-logs/<id>
curl -X PUT https://example.com/wp-json/wc/v3/atum/inventory-logs/713 \
	-u consumer_key:consumer_secret \
	-H "Content-Type: application/json" \
	-d '{
          "status": "atum_completed"
        }'
JSON response example
{
    "id": 713,
    "status": "atum_completed",
    "currency": "EUR",
    "prices_include_tax": false,
    "date_created": "2019-04-09T10:53:00",
    "date_modified": "2019-11-11T12:41:09",
    "discount_total": "0.00",
    "discount_tax": "0.00",
    "shipping_total": "0.00",
    "shipping_tax": "0.00",
    "cart_tax": "0.00",
    "total": "25.32",
    "total_tax": "0.00",
    "date_completed": "2019-11-11T12:41:09",
    "line_items": [
        {
            "id": 262,
            "name": "ABC 123 XPTO",
            "product_id": 507,
            "variation_id": 0,
            "quantity": 2,
            "tax_class": "",
            "subtotal": "25.32",
            "subtotal_tax": "0.00",
            "total": "25.32",
            "total_tax": "0.00",
            "taxes": [],
            "stock_changed": "yes",
            "meta_data": [],
            "sku": "",
            "global_unique_id": "",
            "price": 12.66,
            "image": {
                "id": 0,
                "src": ""
            },
            "parent_name": null,
            "mi_inventories": [
                {
                    "id": 187,
                    "inventory_id": 152,
                    "qty": 1,
                    "subtotal": 20,
                    "total": 20,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 1,
                    "extra_data": "a:11:{s:4:\"name\";s:14:\"Main Inventory\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;s:7:\"is_main\";s:3:\"yes\";}"
                },
                {
                    "id": 188,
                    "inventory_id": 55,
                    "qty": 1,
                    "subtotal": 5.32,
                    "total": 5.32,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 1,
                    "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 4\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                }
            ],
            "bom_items": []
        }
    ],
    "tax_lines": [],
    "shipping_lines": [],
    "fee_lines": [],
    "description": "The description",
    "type": "",
    "order": false,
    "date_created_gmt": "2019-04-09T10:53:00",
    "date_modified_gmt": "2019-11-11T12:41:09",
    "date_completed_gmt": "2019-11-11T11:41:09",
    "_links": {
        "self": [
            {
                "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/713"
            }
        ],
        "collection": [
            {
                "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
            }
        ]
    }
}

Delete an inventory log

This API helps you delete an inventory log.

HTTP request

DELETE/wp-json/wc/v3/atum/inventory-logs/<id>
curl -X DELETE https://example.com/wp-json/wc/v3/atum/inventory-logs/2144?force=true \
	-u consumer_key:consumer_secret
JSON response example
{
    "id": 2144,
    "status": "atum_pending",
    "currency": "EUR",
    "prices_include_tax": false,
    "date_created": "2019-11-11T11:43:49",
    "date_modified": "2019-11-11T11:43:50",
    "discount_total": "0.00",
    "discount_tax": "0.00",
    "shipping_total": "20.00",
    "shipping_tax": "2.00",
    "cart_tax": "1.20",
    "total": "35.20",
    "total_tax": "3.20",
    "date_completed": "2019-11-11T12:45:13",
    "line_items": [
        {
            "id": 320,
            "name": "Woo Single #1",
            "product_id": 93,
            "variation_id": 0,
            "quantity": 2,
            "tax_class": "",
            "subtotal": "6.00",
            "subtotal_tax": "1.20",
            "total": "6.00",
            "total_tax": "1.20",
            "taxes": [
                {
                    "id": 1,
                    "total": "1.2",
                    "subtotal": "1.2"
                }
            ],
            "stock_changed": "no",
            "meta_data": [],
            "sku": "Back Orders",
            "global_unique_id": "",
            "price": 3,
            "image": {
                "id": 0,
                "src": ""
            },
            "parent_name": null,
            "mi_inventories": [
                {
                    "id": 192,
                    "inventory_id": 152,
                    "qty": 1,
                    "subtotal": 3,
                    "total": 0,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 0,
                    "extra_data": "a:11:{s:4:\"name\";s:14:\"Main Inventory\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;s:7:\"is_main\";s:3:\"yes\";}"
                },
                {
                    "id": 193,
                    "inventory_id": 126,
                    "qty": 1,
                    "subtotal": 3,
                    "total": 0,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 0,
                    "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 2\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                }
            ],
            "bom_items": []
        },
        {
            "id": 321,
            "name": "Ship Your Idea 2 - Black",
            "product_id": 22,
            "variation_id": 23,
            "quantity": 1,
            "tax_class": "",
            "subtotal": "0.00",
            "subtotal_tax": "0.00",
            "total": "0.00",
            "total_tax": "0.00",
            "taxes": [
                {
                    "id": 1,
                    "total": "0",
                    "subtotal": "0"
                }
            ],
            "stock_changed": "no",
            "meta_data": [
                {
                    "id": 2750,
                    "key": "pa_color",
                    "value": "black",
                    "display_key": "Color",
                    "display_value": "Black"
                }
            ],
            "sku": "",
            "global_unique_id": "",
            "price": 0,
            "image": {
                "id": 0,
                "src": ""
            },
            "parent_name": "Ship Your Idea 2",
            "mi_inventories": [
                {
                    "id": 194,
                    "inventory_id": 112,
                    "qty": 1,
                    "subtotal": 0,
                    "total": 0,
                    "refund_qty": 0,
                    "refund_total": 0,
                    "reduced_stock": 0,
                    "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 3\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                }
            ],
            "bom_items": []
        }
    ],
    "tax_lines": [
        {
            "id": 323,
            "rate_code": "GB-VAT-1",
            "rate_id": 1,
            "label": "VAT",
            "compound": false,
            "tax_total": "1.20",
            "shipping_tax_total": "2.00",
            "meta_data": []
        }
    ],
    "shipping_lines": [
        {
            "id": 322,
            "method_title": "Flat Rate",
            "method_id": "flat_rate",
            "total": "10.00",
            "total_tax": "2.00",
            "taxes": [
                {
                    "id": 1,
                    "total": "2",
                    "subtotal": ""
                }
            ],
            "meta_data": []
        }
    ],
    "fee_lines": [],
    "description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",
    "type": "reserved-stock",
    "order": false,
    "reservation_date": "2019-11-11T11:26:41",
    "date_created_gmt": "2019-11-11T10:43:49",
    "date_modified_gmt": "2019-11-11T11:43:50",
    "date_completed_gmt": "2019-11-11T11:45:13",
    "reservation_date_gmt": "2019-11-11T10:26:41",
    "_links": {
        "self": [
            {
                "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/2144"
            }
        ],
        "collection": [
            {
                "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
            }
        ]
    }
}

Available parameters

ParameterTypeDescription
forcebooleanUse true to permanently delete the inventory log. If false, the inventory log is moved to the trash. Default is false.

Batch update inventory logs

This API helps you to batch create, update and delete multiple inventory logs.

Note: By default it's limited to up to 100 objects to be created, updated or deleted.

HTTP request

POST/wp-json/wc/v3/atum/inventory-logs/batch

Example of Create, Update and Delete items in bulk

curl -X POST https://example.com/wp-json/wc/v3/atum/inventory-logs/batch \
	-u consumer_key:consumer_secret \
	-H "Content-Type: application/json" \
	-d '{
      "create": [
        {
          "type": "lost-in-post",
          "shipping_company": "UPS",
          "line_items": [
            {
              "product_id": 79,
              "quantity": 1,
              "mi_inventories": [
                {
                  "inventory_id": 13,
                  "qty": 1
                }
              ] 
            },
            {
              "product_id": 93,
              "quantity": 1,
              "mi_inventories": [
                {
                  "inventory_id": 14,
                  "qty": 1
                }
              ] 
            },
            {
              "product_id": 22,
              "variation_id": 23,
              "quantity": 1,
              "mi_inventories": [
                {
                  "inventory_id": 58,
                  "qty": 1
                }
              ] 
            }
          ],
          "shipping_lines": [
            {
              "method_id": "flat_rate",
              "method_title": "Flat Rate",
              "total": 30
            }
          ]
        },
        {
          "type": "other",
          "custom_name": "Storm",
          "line_items": [
            {
              "product_id": 22,
              "variation_id": 23,
              "quantity": 1,
              "mi_inventories": [
                {
                  "inventory_id": 59,
                  "qty": 1
                }
              ] 
            },
            {
              "product_id": 22,
              "variation_id": 24,
              "quantity": 1
            }
          ],
          "shipping_lines": [
            {
              "method_id": "flat_rate",
              "method_title": "Flat Rate",
              "total": 20
            }
          ]
        }
      ],
      "update": [
        {
          "id": 492,
          "type": "warehouse-damage",
          "damage_date": "2019-11-11T12:15:14"
        }
      ],
      "delete": [
        2147
      ]
    }'
JSON response example
{
    "create": [
        {
            "id": 2149,
            "status": "atum_pending",
            "currency": "EUR",
            "prices_include_tax": false,
            "date_created": "2019-11-11T12:54:23",
            "date_modified": "2019-11-11T12:54:25",
            "discount_total": "0.00",
            "discount_tax": "0.00",
            "shipping_total": "60.00",
            "shipping_tax": "6.00",
            "cart_tax": "3.60",
            "total": "105.60",
            "total_tax": "9.60",
            "date_completed": "2019-11-11T12:54:25",
            "line_items": [
                {
                    "id": 328,
                    "name": "Woo Logo",
                    "product_id": 79,
                    "variation_id": 0,
                    "quantity": 1,
                    "tax_class": "",
                    "subtotal": "15.00",
                    "subtotal_tax": "3.00",
                    "total": "15.00",
                    "total_tax": "3.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "3",
                            "subtotal": "3"
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [],
                    "sku": "",
                    "global_unique_id": "",
                    "price": 15,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": null,
                    "mi_inventories": [
                        {
                            "id": 198,
                            "inventory_id": 13,
                            "qty": 1,
                            "subtotal": 15,
                            "total": 0,
                            "refund_qty": 0,
                            "refund_total": 0,
                            "reduced_stock": 0,
                            "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 8\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                        }
                    ],
                    "bom_items": []
                },
                {
                    "id": 329,
                    "name": "Woo Single #1",
                    "product_id": 93,
                    "variation_id": 0,
                    "quantity": 1,
                    "tax_class": "",
                    "subtotal": "3.00",
                    "subtotal_tax": "0.60",
                    "total": "3.00",
                    "total_tax": "0.60",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "0.6",
                            "subtotal": "0.6"
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [],
                    "sku": "Back Orders",
                    "global_unique_id": "",
                    "price": 3,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": null,
                    "mi_inventories": [
                        {
                            "id": 199,
                            "inventory_id": 14,
                            "qty": 1,
                            "subtotal": 3,
                            "total": 0,
                            "refund_qty": 0,
                            "refund_total": 0,
                            "reduced_stock": 0,
                            "extra_data": "a:10:{s:4:\"name\";s:12:\"Warehouse 10\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                        },
                        {
                            "id": 200,
                            "inventory_id": 58,
                            "qty": 1,
                            "subtotal": 9,
                            "total": 0,
                            "refund_qty": 0,
                            "refund_total": 0,
                            "reduced_stock": 0,
                            "extra_data": "a:10:{s:4:\"name\";s:12:\"Warehouse 11\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                        }
                    ],
                    "bom_items": []
                },
                {
                    "id": 330,
                    "name": "Ship Your Idea 2 - Black",
                    "product_id": 22,
                    "variation_id": 23,
                    "quantity": 1,
                    "tax_class": "",
                    "subtotal": "0.00",
                    "subtotal_tax": "0.00",
                    "total": "0.00",
                    "total_tax": "0.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "0",
                            "subtotal": "0"
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [
                        {
                            "id": 2815,
                            "key": "pa_color",
                            "value": "black",
                            "display_key": "Color",
                            "display_value": "Black"
                        }
                    ],
                    "sku": "",
                    "global_unique_id": "",
                    "price": 0,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": "Ship Your Idea 2",
                    "mi_inventories": [],
                    "bom_items": []
                }
            ],
            "tax_lines": [
                {
                    "id": 332,
                    "rate_code": "GB-VAT-1",
                    "rate_id": 1,
                    "label": "VAT",
                    "compound": false,
                    "tax_total": "3.60",
                    "shipping_tax_total": "6.00",
                    "meta_data": []
                }
            ],
            "shipping_lines": [
                {
                    "id": 331,
                    "method_title": "Flat Rate",
                    "method_id": "flat_rate",
                    "total": "30.00",
                    "total_tax": "6.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "6",
                            "subtotal": ""
                        }
                    ],
                    "meta_data": []
                }
            ],
            "fee_lines": [],
            "description": "",
            "type": "lost-in-post",
            "order": false,
            "shipping_company": "UPS",
            "date_created_gmt": "2019-11-11T11:54:23",
            "date_modified_gmt": "2019-11-11T12:54:25",
            "date_completed_gmt": "2019-11-11T11:54:25",
            "_links": {
                "self": [
                    {
                        "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/2149"
                    }
                ],
                "collection": [
                    {
                        "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
                    }
                ]
            }
        },
        {
            "id": 2150,
            "status": "atum_pending",
            "currency": "EUR",
            "prices_include_tax": false,
            "date_created": "2019-11-11T12:54:26",
            "date_modified": "2019-11-11T12:54:27",
            "discount_total": "0.00",
            "discount_tax": "0.00",
            "shipping_total": "40.00",
            "shipping_tax": "4.00",
            "cart_tax": "4.00",
            "total": "88.00",
            "total_tax": "8.00",
            "date_completed": "2019-11-11T12:54:28",
            "line_items": [
                {
                    "id": 333,
                    "name": "Ship Your Idea 2 - Black",
                    "product_id": 22,
                    "variation_id": 23,
                    "quantity": 1,
                    "tax_class": "",
                    "subtotal": "0.00",
                    "subtotal_tax": "0.00",
                    "total": "0.00",
                    "total_tax": "0.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "0",
                            "subtotal": "0"
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [
                        {
                            "id": 2834,
                            "key": "pa_color",
                            "value": "black",
                            "display_key": "Color",
                            "display_value": "Black"
                        }
                    ],
                    "sku": "",
                    "global_unique_id": "",
                    "price": 0,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": "Ship Your Idea 2",
                    "mi_inventories": [],
                    "bom_items": []
                },
                {
                    "id": 334,
                    "name": "Ship Your Idea 2 - Green",
                    "product_id": 22,
                    "variation_id": 24,
                    "quantity": 1,
                    "tax_class": "",
                    "subtotal": "20.00",
                    "subtotal_tax": "4.00",
                    "total": "20.00",
                    "total_tax": "4.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "4",
                            "subtotal": "4"
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [
                        {
                            "id": 2844,
                            "key": "pa_color",
                            "value": "green",
                            "display_key": "Color",
                            "display_value": "Green"
                        }
                    ],
                    "sku": "",
                    "global_unique_id": "",
                    "price": 20,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": "Ship Your Idea 2",
                    "mi_inventories": [],
                    "bom_items": []
                }
            ],
            "tax_lines": [
                {
                    "id": 336,
                    "rate_code": "GB-VAT-1",
                    "rate_id": 1,
                    "label": "VAT",
                    "compound": false,
                    "tax_total": "4.00",
                    "shipping_tax_total": "4.00",
                    "meta_data": []
                }
            ],
            "shipping_lines": [
                {
                    "id": 335,
                    "method_title": "Flat Rate",
                    "method_id": "flat_rate",
                    "total": "20.00",
                    "total_tax": "4.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "4",
                            "subtotal": ""
                        }
                    ],
                    "meta_data": []
                }
            ],
            "fee_lines": [],
            "description": "",
            "type": "other",
            "order": false,
            "custom_name": "Storm",
            "date_created_gmt": "2019-11-11T11:54:26",
            "date_modified_gmt": "2019-11-11T12:54:27",
            "date_completed_gmt": "2019-11-11T11:54:28",
            "_links": {
                "self": [
                    {
                        "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/2150"
                    }
                ],
                "collection": [
                    {
                        "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
                    }
                ]
            }
        }
    ],
    "update": [
        {
            "id": 492,
            "status": "atum_pending",
            "currency": "EUR",
            "prices_include_tax": false,
            "date_created": "2018-03-05T09:55:00",
            "date_modified": "2019-11-11T12:54:28",
            "discount_total": "0.00",
            "discount_tax": "0.00",
            "shipping_total": "0.00",
            "shipping_tax": "0.00",
            "cart_tax": "4.60",
            "total": "39.60",
            "total_tax": "4.60",
            "date_completed": "2019-11-11T12:54:29",
            "line_items": [
                {
                    "id": 219,
                    "name": "Ship Your Idea 2 - Green",
                    "product_id": 22,
                    "variation_id": 24,
                    "quantity": 1,
                    "tax_class": "",
                    "subtotal": "20.00",
                    "subtotal_tax": "4.00",
                    "total": "20.00",
                    "total_tax": "4.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "4",
                            "subtotal": "4"
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [
                        {
                            "id": 1716,
                            "key": "pa_color",
                            "value": "green",
                            "display_key": "Color",
                            "display_value": "Green"
                        },
                        {
                            "id": 2188,
                            "key": "_order_id",
                            "value": "490",
                            "display_key": "_order_id",
                            "display_value": "490"
                        }
                    ],
                    "sku": "",
                    "global_unique_id": "",
                    "price": 20,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": "Ship Your Idea 2",
                    "mi_inventories": [],
                    "bom_items": []
                },
                {
                    "id": 238,
                    "name": "ABC 123 XPTO",
                    "product_id": 507,
                    "variation_id": 0,
                    "quantity": 3,
                    "tax_class": "",
                    "subtotal": "3.00",
                    "subtotal_tax": "0.60",
                    "total": "3.00",
                    "total_tax": "0.60",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "0.6",
                            "subtotal": "0.6"
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [],
                    "sku": "",
                    "global_unique_id": "",
                    "price": 1,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": null,
                    "mi_inventories": [],
                    "bom_items": []
                },
                {
                    "id": 272,
                    "name": "Happy Ninja",
                    "product_id": 37,
                    "variation_id": 0,
                    "quantity": 1,
                    "tax_class": "",
                    "subtotal": "12.00",
                    "subtotal_tax": "0.00",
                    "total": "12.00",
                    "total_tax": "0.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "",
                            "subtotal": ""
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [],
                    "sku": "",
                    "global_unique_id": "",
                    "price": 12,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": null,
                    "mi_inventories": [
                        {
                            "id": 131,
                            "inventory_id": 11,
                            "qty": 1,
                            "subtotal": 12,
                            "total": 12,
                            "refund_qty": 0,
                            "refund_total": 0,
                            "reduced_stock": 0,
                            "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 5\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                        }
                    ],
                    "bom_items": []
                }
            ],
            "tax_lines": [
                {
                    "id": 217,
                    "rate_code": "GB-VAT-1",
                    "rate_id": 1,
                    "label": "VAT",
                    "compound": false,
                    "tax_total": "4.60",
                    "shipping_tax_total": "0.00",
                    "meta_data": []
                }
            ],
            "shipping_lines": [],
            "fee_lines": [],
            "description": "",
            "type": "warehouse-damage",
            "order": false,
            "damage_date": "2019-11-11T12:15:14",
            "date_created_gmt": "2018-03-05T09:55:00",
            "date_modified_gmt": "2019-11-11T12:54:28",
            "date_completed_gmt": "2019-11-11T11:54:29",
            "damage_date_gmt": "2019-11-11T11:15:14",
            "_links": {
                "self": [
                    {
                        "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/492"
                    }
                ],
                "collection": [
                    {
                        "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
                    }
                ]
            }
        }
    ],
    "delete": [
        {
            "id": 2147,
            "status": "atum_pending",
            "currency": "EUR",
            "prices_include_tax": false,
            "date_created": "2019-11-11T12:50:49",
            "date_modified": "2019-11-11T12:50:50",
            "discount_total": "0.00",
            "discount_tax": "0.00",
            "shipping_total": "20.00",
            "shipping_tax": "2.00",
            "cart_tax": "1.20",
            "total": "35.20",
            "total_tax": "3.20",
            "date_completed": "2019-11-11T12:54:29",
            "line_items": [
                {
                    "id": 324,
                    "name": "Woo Single #1",
                    "product_id": 93,
                    "variation_id": 0,
                    "quantity": 2,
                    "tax_class": "",
                    "subtotal": "6.00",
                    "subtotal_tax": "1.20",
                    "total": "6.00",
                    "total_tax": "1.20",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "1.2",
                            "subtotal": "1.2"
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [],
                    "sku": "Back Orders",
                    "global_unique_id": "",
                    "price": 3,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": null,
                    "mi_inventories": [
                        {
                            "id": 195,
                            "inventory_id": 152,
                            "qty": 1,
                            "subtotal": 3,
                            "total": 0,
                            "refund_qty": 0,
                            "refund_total": 0,
                            "reduced_stock": 0,
                            "extra_data": "a:11:{s:4:\"name\";s:14:\"Main Inventory\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;s:7:\"is_main\";s:3:\"yes\";}"
                        },
                        {
                            "id": 196,
                            "inventory_id": 126,
                            "qty": 1,
                            "subtotal": 3,
                            "total": 0,
                            "refund_qty": 0,
                            "refund_total": 0,
                            "reduced_stock": 0,
                            "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 2\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                        }
                    ],
                    "bom_items": []
                },
                {
                    "id": 325,
                    "name": "Ship Your Idea 2 - Black",
                    "product_id": 22,
                    "variation_id": 23,
                    "quantity": 1,
                    "tax_class": "",
                    "subtotal": "0.00",
                    "subtotal_tax": "0.00",
                    "total": "0.00",
                    "total_tax": "0.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "0",
                            "subtotal": "0"
                        }
                    ],
                    "stock_changed": "no",
                    "meta_data": [
                        {
                            "id": 2778,
                            "key": "pa_color",
                            "value": "black",
                            "display_key": "Color",
                            "display_value": "Black"
                        }
                    ],
                    "sku": "",
                    "global_unique_id": "",
                    "price": 0,
                    "image": {
                        "id": 0,
                        "src": ""
                    },
                    "parent_name": "Ship Your Idea 2",
                    "mi_inventories": [
                        {
                            "id": 197,
                            "inventory_id": 112,
                            "qty": 1,
                            "subtotal": 0,
                            "total": 0,
                            "refund_qty": 0,
                            "refund_total": 0,
                            "reduced_stock": 0,
                            "extra_data": "a:10:{s:4:\"name\";s:11:\"Warehouse 3\";s:3:\"sku\";s:0:\"\";s:12:\"supplier_sku\";s:0:\"\";s:7:\"barcode\";s:0:\"\";s:8:\"bbe_date\";b:0;s:14:\"inventory_date\";s:16:\"2019-03-01 10:00\";s:3:\"lot\";s:0:\"\";s:6:\"region\";a:0:{}s:8:\"location\";a:0:{}s:16:\"expiry_threshold\";i:0;}"
                        }
                    ],
                    "bom_items": []
                }
            ],
            "tax_lines": [
                {
                    "id": 327,
                    "rate_code": "GB-VAT-1",
                    "rate_id": 1,
                    "label": "VAT",
                    "compound": false,
                    "tax_total": "1.20",
                    "shipping_tax_total": "2.00",
                    "meta_data": []
                }
            ],
            "shipping_lines": [
                {
                    "id": 326,
                    "method_title": "Flat Rate",
                    "method_id": "flat_rate",
                    "total": "10.00",
                    "total_tax": "2.00",
                    "taxes": [
                        {
                            "id": 1,
                            "total": "2",
                            "subtotal": ""
                        }
                    ],
                    "meta_data": []
                }
            ],
            "fee_lines": [],
            "description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",
            "type": "reserved-stock",
            "order": false,
            "reservation_date": "2019-11-11T11:26:41",
            "date_created_gmt": "2019-11-11T11:50:49",
            "date_modified_gmt": "2019-11-11T12:50:50",
            "date_completed_gmt": "2019-11-11T11:54:29",
            "reservation_date_gmt": "2019-11-11T10:26:41",
            "_links": {
                "self": [
                    {
                        "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs/2147"
                    }
                ],
                "collection": [
                    {
                        "href": "https://example.com/wp-json/wc/v3/atum/inventory-logs"
                    }
                ]
            }
        }
    ]
}

On this page