Our API allows you to retrieve label information based on the provided order ID.
Instructions
Step 1: API Endpoint
To get label details, use the following GET endpoint:
https://api.tryoto.com/rest/v2/getLabelInfo
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 include:
| Field Name | Required | Type | Description |
|---|---|---|---|
orderId | Yes | String | The unique order ID for the label. |
Step 4: Example Request
Step 5: Example Response
{
"cityShort": "AHB",
"orderId": "169823636792557641",
"dsCode": "KHA",
"areaName": "Al Shifa",
"shipmentId": "6102623206686",
"success": true,
"zoneCode": "E19"
}Error Codes:
| Code | Description |
|---|---|
| 4 | "orderId is required" |
| 7 | "Order Not Exists" |
| 8 | "No DS Code information provided by DC." |
| 99 | "a system error occured" |