Get a watch
AuthorizationBearer <token>Authorization: Bearer lsk_live_…
id*stringThe watch with its last result or error.
application/json- response
id?stringtrackingNumber?stringcarrier?string|nullzipcode?|The postcode the watch was given (sent with every re-check)
status?|nullactive?booleanmetadata?|nullcreatedAt?stringcheckedAt?string|nullnextCheckAt?string|nullendedAt?string|nullendReason?|"delivered""returned""not_found""expired""deleted"nullresult?|nullerror?|nullnotice?NoticePro and Growth only, never blocking. Present when the request's new numbers went past the plan's included numbers (billed as usage) or left fewer than 10% of them. Re-checking a number already counted this period gets none. See Plans.
curl -X GET 'https://api.containerfeed.com/v1/watches/string'{ "id": "string", "trackingNumber": "string", "carrier": "string", "zipcode": "string", "status": "label_created", "active": true, "metadata": {}, "createdAt": "string", "checkedAt": "string", "nextCheckAt": "string", "endedAt": "string", "endReason": "delivered", "result": { "carrier": "ups", "trackingNumber": "string", "status": "label_created", "statusDescription": "string", "service": "string", "deliveredAt": "string", "deliveredAtLocal": "string", "signedBy": "string", "destination": { "city": "string", "state": "string", "country": "string" }, "estimatedDelivery": "string", "estimatedDeliveryAt": "string", "message": "string", "events": [ { "timestamp": "string", "localTime": "string", "status": "label_created", "description": "string", "location": "string", "code": "string" } ], "notice": "string" }, "error": { "code": "bad_request", "message": "string", "carrier": "string" }, "notice": "string"}Watch numbers POST
Looks the numbers up now and returns each watch with its current `result`, then re-checks them on a schedule and POSTs to the account's webhook whenever the status, newest event or estimate changes. A new watch counts as a tracked number; re-checks are free. A number already being watched keeps its watch (200 instead of 201). For a carrier that only shows a parcel with the recipient's postcode (PostNL, OSM Worldwide), send `zipcode`: it is kept on the watch and sent with every re-check. Posting an already-watched number with a `zipcode` it doesn't have sets it on the existing watch and checks it again at once, which is how a watch whose `error.code` is `postcode_required` gets its postcode.
Stop watching DELETE
Next Page