MobiariDocs
Admin APIInventory

Import counted quantities from CSV

PUT
/stores/{store_id}/stock-counts/{count_id}/import

Fills a count sheet from a spreadsheet: a column of SKUs (sku, codigo, code, referencia) and one of quantities (quantidade, qtd, contagem, contado, quantity, counted, qty, em_maos); without a recognisable header, the first two columns. Blank quantities stay uncounted; 3, 3,0 and 3.0 all read as 3. Writes counted quantities only: the sheet still has to be posted. SKUs not on the sheet are reported, not added.

Authorization

bearer_auth
AuthorizationBearer <token>

Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.

In: header

Path Parameters

store_id*string

Store id

Formatuuid
count_id*string

Stock count id

Formatuuid

Request Body

text/csv

The spreadsheet as CSV

TypeScript Definitions

Use the request body type in TypeScript.

body*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/stock-counts/497f6eca-6276-4993-bfeb-53cbbbba6f08/import" \  -H "Content-Type: text/csv" \  -d 'string'
{
  "applied": 0,
  "invalid": [
    "string"
  ],
  "unmatched": [
    "string"
  ]
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}