Our API allows you to retrieve detailed shipment transaction records, including financial details, using the getShipmentTransactions endpoint. This guide explains how to fetch shipment transactions efficiently.
Instructions
Step 1: API Endpoint
- To get shipment transactions, use the following GET endpoint:
https://api.tryoto.com/rest/v2/getShipmentTransactions
Step 2: Authorization
- A valid Bearer Token must be included in the request headers for authentication
Step 3: Request Body Parameters
- The request body should be in JSON format and must include at least one date filter.
Name | Required | Type | Description |
---|---|---|---|
perPage | yes | number | Credit transaction count in the response. Max limit 100 |
page | yes | number | Pagination number. You can iterate this field to get all items. |
minDate | yes (If there is no orderId) | date | Starting "Transaction Date" of your credit transactions in "yyyy-mm-dd" format. |
maxDate | yes (If there is no orderId) | date | Ending "Transaction Date" of your credit transactions in "yyyy-mm-dd" format. |
orderId | no | string | Order ID for transactions of a single Order |
shipmentNumber | no | string | Shipment Number for transactions of a single shipment |
Step 4: Example Request
Below is an example request to retrieve shipment transactions within a specific date range:
Using cURL:
Step 5: Example Response
- A successful response will return the shipment transaction details:
In case of an empty result, the shipments array will be empty with a success flag set to true.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article