Purchases: buying materials and products from suppliers. A purchase adds to stock at the storage location and updates material prices. Via the API you can create, edit and delete purchases, change the status and the payment status, and get a list of purchases and a purchase's details.
Method paths are given relative to the base API URL; the rules common to all methods (authorization, request format, partial editing, pagination) are described in API Overview and Common Rules.
Methods
| Method | What it does |
|---|---|
| v1/purchases/add | Creates a purchase |
| v1/purchases/edit | Updates a purchase |
| v1/purchases/delete | Deletes a purchase |
| v1/purchases/update_status | Changes the purchase status |
| v1/purchases/update_payment | Changes the payment status |
| v1/purchases/get_list | Returns the company's purchases |
| v1/purchases/get_entry | Returns a purchase's details with its lines |