PUT
Update sales order tracking information
Scope:
inventory:sales-orders.writehttps://api.holded.com/api/v2/sales-orders/{salesOrderId}/trackingUpdates the shipment tracking information for a sales order. You can set the carrier name, tracking number, pickup date, expected delivery date, and internal notes. This information is included when you send the sales order by email.
Parameters
Path parameters
salesOrderId
stringrequiredSales Order ID (24-char hex ObjectId)
Request body
object
tracking_keystring | null
Carrier identifier key
tracking_namestring | null
Carrier name
tracking_numberstring | null
Shipment tracking number
pickup_datestring<date> | null
Pickup date in ISO 8601 format
delivery_datestring<date> | null
Expected delivery date in ISO 8601 format
internal_notesstring | null
Internal notes about the shipment
Request
python
import requests
url = "https://api.holded.com/api/v2/sales-orders/{salesOrderId}/tracking"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"tracking_key": "string",
"tracking_name": "string",
"tracking_number": "string",
"pickup_date": "2024-01-15",
"delivery_date": "2024-01-15",
"internal_notes": "string"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Responses
Success responses
200Tracking information updatedError responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Sales order not foundapplication/json