Sales: selling products, and materials when the setting is on, to your customers. Via the API you can create, edit and delete them, change the status and the payment status, and get a list of sales and a sale'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/orders/add | Creates a sale |
| v1/orders/edit | Updates a sale |
| v1/orders/delete | Deletes a sale |
| v1/orders/update_status | Changes the sale status |
| v1/orders/update_payment | Changes the payment status |
| v1/orders/get_list | Returns the company's sales |
| v1/orders/get_entry | Returns a sale's details with its lines |