Skip to main content

Bulk Supplier Inventory (deprecated)

POST 

/inventory/bulk/supplier

The bulk supplier inventory endpoint is used to create or update inventory records.

This endpoint is deprecated in favor of Bulk Inventory by lookup key / inventory type where you can use the same payload, but you need to set the lookup key param to supplierCode and the inventory type param to supplier.

On creating a record, inventory type supplier is matching the product on two fields: supplier and supplierCode. If the product is found, inventory record will be created.

For updating a record, matching fields are: supplier, supplierCode, warehouseId and location. Record is updated only when inventory record with all four matching fields is found, otherwise new record is created.

Available fields

NameRequired
quantity (integer)yes
supplier (string)yes
supplierCode (string)yes
warehouseId (integer)no
Default value is 0
location (string)no
Default value is empty
costPrice (integer)no
Default value is product costprice
nextDeliveryDate (date)no
notes (string)no

dateModified is always updated with the current date and time.

Request

Body

    inventory

    object[]

  • Array [

  • location string
    nextDeliveryDate string
    notes string
    quantity number
    supplier string
    supplierCode string
    warehouseId number
  • ]

Responses

Bulk Supplier Inventory - 200

Response Headers

  • Alt-Svc

    string

  • Via

    string

  • alt-svc

    string

  • content-length

    string

  • date

    string

  • return-format

    string

  • server

    string

  • x-request-id

    string

Schema

    data

    object[]

  • Array [

  • action string
    success boolean
  • ]

  • messages string[]
    total number
Loading...