Skip to content

POST /inventory/count-record/import

Import Count Records

POST
/inventory/count-record/import

Import count records from a CSV/XLSX file.

Two modes of operation:

  • dry_run=True: Validate file and return summary. Requires 'file' upload.
  • dry_run=False: Execute import using previously validated file. Requires 'file_key'.

Returns:

  • If errors: annotated Excel file with error details
  • If dry_run=True and valid: file_key + summary for subsequent import
  • If dry_run=False and valid: import result from event

Emits: CountImportedEvent (execute mode only)
Required scope: inventory:count:apply

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Request Body

multipart/form-data
object
Defaulttrue
string |null
string |null

Responses

Successful Response

application/json
JSON
[
]

Samples

Powered by VitePress OpenAPI