Skip to main content

Create Stock Take From Discrepancies

POST 

/api/shiphero/integration-instances/:integration_instance/inventory/create-stock-take

Create a SKU.io stock take from the selected ShipHero inventory discrepancies. The stock take counts each product at its ShipHero on-hand quantity.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Request Body:

FieldTypeRequiredDescription
product_idsarray of integersoptionalProduct IDs to include. Each must exist in products. Empty array (or omitted) = "stock take all": every visible discrepancy is included (kits excluded by default — see include_kits).
warehouse_idintegeroptionalWarehouse to scope discrepancies to. Must exist in warehouses. Defaults to the first mapped warehouse.
notesstringoptionalCustom notes (max 500 chars). Defaults to an auto-generated note referencing the warehouse.
datestringoptionalStock take date in Y-m-d format. Defaults to today.
statusstringoptionalOne of draft, open, closed. Defaults to draft. open initiates the count; closed initiates and finalizes it.
include_kitsbooleanoptionalDefault false. Only meaningful for a "stock take all" (empty product_ids). ShipHero reports 0 on hand for kit SKUs (inventory lives on the components), so kits are excluded by default to avoid zeroing out their SKU.io on-hand inventory. Set true to include them anyway; excluded_kit_count in the response will then be 0.

Response (data):

FieldTypeDescription
stock_takeobjectThe created stock take record.
stock_take_urlstringTenant URL to the stock take detail page (/v2/inventory/stock-takes/{id}).
selected_countintegerNumber of discrepancies included in the stock take.
total_value_adjustmentstringSum of discrepancy values, formatted to 2 decimal places.
excluded_kit_countintegerNumber of kit SKUs excluded from a "stock take all" (0 when include_kits is true or when specific product_ids were given).

Errors: Returns 422 with a message when no warehouse mapping exists, no discrepancies match the criteria, or the specified warehouse is not mapped.

Authentication: Requires Bearer token.

Request

Responses

Successful response