Skip to main content
POST
Create quantity

Authorizations

Authorization
string
header
required

An API token from Sign in, sent as Authorization: Bearer <token>. Tokens last 30 days.

Body

application/json
location_id
integer
required

Inventory location ID. The id of an existing record in the inventories_locations table.

Example:

1

product_id
integer
required

Product ID. Configurable products are not allowed; pass a variant product ID instead. The id of an existing record in the products_products table.

Example:

1

counted_quantity
number
required

Counted quantity entered during inventory adjustment. For serial-tracked products, this must be 0 or 1. Must be at least 0. Must not be greater than 99999999999.

Example:

25

storage_category_id
integer | null

Storage category ID. The id of an existing record in the inventories_storage_categories table.

Example:

1

lot_id
integer | null

Lot ID. Required for lot/serial tracked products and must belong to the selected product. The id of an existing record in the inventories_lots table.

Example:

1

package_id
integer | null

Package ID. Must belong to the selected location. The id of an existing record in the inventories_packages table.

Example:

1

partner_id
integer | null

Owner partner ID. The id of an existing record in the partners_partners table.

Example:

1

user_id
integer | null

Responsible user ID. The id of an existing record in the users table.

Example:

1

company_id
integer | null

Company ID. The id of an existing record in the companies table.

Example:

1

scheduled_at
string | null

Scheduled inventory date. Must be a valid date.

Example:

"2026-02-25"

Response

Created