Filter transports created by your truckers and partners
When retrieving data from transports created using Dashdoc, you can patch the transport data to add your internal ids (in the remote id fields) if necessary for matching your data with ours. See the article on External Identifier in this documentation.
If you want to retrieve transports that were not created by you, you can use the transports list API with filters :
1. Retrieve transports created by the carrier from our web app or from the mobile application
This can be achieved by doing this GET request (replace company_pk with the id of the company you're retrieving transports for):
/transports/?creation_method__not=api&created_by={company_pk}
As a response, you will get a paginated list of transports according to the Transports List API reference
2. Retrieve transport orders created by partners on Dashdoc
This can be achieved by doing this GET request (replace company_pk with the id of the company you're retrieving transports for):
/transports/?created_by__not={company_pk}
As a response, you will get a paginated list of transports according to the Transports List API reference.
Last updated