beel_create_products_bulk
Creates up to 100 products in a company catalog in one request. Each product is processed independently, so invalid rows are reported while valid products are still created.
Instructions
Creates up to 100 products in the catalog of this company.
Partial operation: each product is processed and reported independently, so a row the domain rejects — a rate the law does not allow, a duplicate code — comes back inside the report while the rest are created.
Status code: always
201when the batch was processed, even if not a single product could be created. A malformed request — a missing field, an empty array, more than 100 items — answers422instead and nothing is processed.
Endpoint: POST /v1/companies/{company_id}/products/bulk
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| company_id | Yes | Unique identifier (UUID) of the company the operation acts on — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. | |
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. |