Items
Products and services.
This page as plain text: items.md
GET/v1/items
Products and services
Answers
200 | { items: [...] } |
Example
curl -X GET 'https://api.reconsmith.com/v1/items' \
-H 'Authorization: Bearer $RECONSMITH_KEY'
POST/v1/items
Create or update products
A list. Matched by external_ref (your id) when sent, else by code. Keys: code, name, description, unit, sells, sales_price, sales_account_code, sales_tax_code, buys, purchase_price, purchase_account_code, purchase_tax_code, is_active, external_ref. A key not sent leaves the field alone. An invoice line names a product with item_code.
Body a JSON array of these, up to 1 000 per call
Answers
200 | { items: [{ id, code }] } |
422 | Refused, with the reason |
Example
curl -X POST 'https://api.reconsmith.com/v1/items' \
-H 'Authorization: Bearer $RECONSMITH_KEY' \
-H 'Content-Type: application/json' \
-d '[
{}
]'