Update docs

This commit is contained in:
Hillel Coren 2018-01-07 15:11:20 +02:00
parent 258d1d1269
commit b6d3b58f2c

View File

@ -85,7 +85,9 @@ You can also update a client by specifying a value for id. Next, heres
-d '{"client_id":"1", "invoice_items":[{"product_key": "ITEM", "notes":"Test", "cost":10, "qty":1}]}' \
-H "X-Ninja-Token: TOKEN"
If the product_key is set and matches an existing record the product fields will be auto-populated. If the email field is set then well search for a matching client. If no matches are found a new client will be created.
If the email field is set well search for a matching client, if no matches are found a new client will be created.
If the product_key is set and matches an existing record the product fields will be auto-populated. You can use a comma-separated value to create an invoice with multiple products.
Options
^^^^^^^