GET
requests for transactions data, as well as trigger the error management process in case you mark any documents as errors.
PHP examples are included but you will likely also want to look at the relevant API calls in the API reference.
2xx
status code for successful requests. Anything else indicates an error.
Please read the Errors section of our API reference for a detailed description plus examples of how to handle them.
SHIPPING_NOTICE
.
In this case, the easiest way to acheive the filtering is to add the filter
parameter to the request.
SHIPPING_NOTICE
and INVOICE
.
In this case, you may want to load all document types and then filter them in your code, preventing multiple round-trip requests the API. You can filter the results by type
of each returned item to get the documents you need.
hasMore
flag. If it’s true
not all items are in the response.
You will then want to fetch the other items as well. Therefore, you can use the nextPageUrl
flag from the response body and perform the same request with the new URL again.
hasMore
is false. When doing so you can be sure to fetch all currently available items.success
flag to false
. Additionally you should (but are not required to) add a reason
for the shipping notice not being processed, which will be used for solving the issue.