Articles

Create an article

post/v1/articles

Request

  • Base URL: https://api.officina.it
  • URL: https://api.officina.it/v1/articles
  • Auth: HTTP bearer

Request body

namestring required
codestring nullable
unit_typestring required

Magazzino: kg, L, kit, pz. Manodopera: gg, h, lav, min.

stocknumber nullable
minimum_stocknumber nullable
purchase_pricenumber nullable
sale_pricenumber nullable
vat_codestring required

Deve essere una delle aliquote attive dell'azienda.

unit_discount_rateinteger nullable
locationstring nullable
commentsstring nullable
supplier_idstring nullable
work_category_idsstring[] nullable

The work categories ("Categoria") the article is used for, in the order given. Omitted → unchanged (none on create); [] or null → removes every category. Trimmed and de-duplicated; each id must be one of the company's work categories (GET /v1/work-categories).

Response

success

Changes

No recorded changes to this operation across all 1 revision of this API.