6. Error codes and common situations
| HTTP code | Message | Cause | What to do |
|---|---|---|---|
200 | The transaction is successful. | Operation succeeded | — |
200 | ... slip(s) failed, see FailedSlips | Some slips could not be built | Forward the errors in the data.failedSlips list to your service provider |
200 | Warning Inactive and unauthorized distributor codes = ... | Some of the distributor codes sent are unauthorized or inactive | Check the codes; slips for the other distributors have been returned |
204 | (empty response) | No slips match the criteria, or none of the distributors sent are authorized | Check the date range and the exported and doc_status filters |
400 | Request değerleri boş (request values are empty) | One of the required fields is missing (doc_type, start_date, end_date, exported, doc_status) | Add the missing field |
400 | Format error including the field name | A field was sent with the wrong type (e.g. text instead of a number, invalid date) | Send the field using the type in the table |
401 | Invalid or missing token. | Token missing, expired or copied incorrectly | Get a new token; make sure there are no quotation marks at the start or end |
403 | Your role is not authorized. | The user is not authorized to call this method | Ask your service provider for the Integration.Invoices.GetInv permission |
Frequently asked questions
- The same slip does not come back in the second query. Because
update_exportedis on by default, the slip was marked as "exported" in the first query. To retrieve it again, sendexported: [0, 1]. quantdiffers from the quantity shown on screen.quantis always in pieces; the screen may show cases. Number of cases =quant/ pieces per case.- Slips on the end date are not returned.
end_dateis exclusive; send the following day.