Issue the tracking link
POST
/orders/{external_order_id}/tracking_link
const url = 'https://api.govza.app/v1/partner/orders/example/tracking_link';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.govza.app/v1/partner/orders/example/tracking_link \ --header 'Authorization: Bearer <token>'Returns the delivery’s tracking link, creating it if the order does not have one yet.
Creating a delivery already returns its tracking link, so most integrations never need this. It exists for the cases that come later — a create response that was discarded, or a link that was never stored. Reading an order or listing orders returns only links that already exist, and never creates one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”external_order_id
required
string
Your own identifier for the order.
Responses
Section titled “Responses”The tracking link.
Media typeapplication/json
object
success
boolean
data
object
external_order_id
string
order_code
string
tracking_url
string
tracking_urls
Array<string>
Examplegenerated
{ "success": true, "data": { "external_order_id": "example", "order_code": "example", "tracking_url": "example", "tracking_urls": [ "example" ] }}The key is missing, malformed, revoked, or its account can no longer create orders.
Media typeapplication/json
object
success
boolean
error
object
id
string
code
string
message
string
details
string
Example
{ "success": false}No order exists for this external_order_id.
Media typeapplication/json
object
success
boolean
error
object
id
string
code
string
message
string
details
string
Example
{ "success": false}