6. Error codes and common situations

HTTP codeMessageCauseWhat to do
200The transaction is successful.Operation succeeded—
200... slip(s) failed, see FailedSlipsSome slips could not be builtForward the errors in the data.failedSlips list to your service provider
200Warning Inactive and unauthorized distributor codes = ...Some of the distributor codes sent are unauthorized or inactiveCheck 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 authorizedCheck the date range and the exported and doc_status filters
400Request 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
400Format error including the field nameA 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
401Invalid or missing token.Token missing, expired or copied incorrectlyGet a new token; make sure there are no quotation marks at the start or end
403Your role is not authorized.The user is not authorized to call this methodAsk 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_exported is on by default, the slip was marked as "exported" in the first query. To retrieve it again, send exported: [0, 1].
  • quant differs from the quantity shown on screen. quant is always in pieces; the screen may show cases. Number of cases = quant / pieces per case.
  • Slips on the end date are not returned. end_date is exclusive; send the following day.