Retranslator binding
Which retranslators forward a given tracker's data, and how to change that.
A binding connects one tracker to one retranslator, which is what makes that tracker's data flow on to the third-party server the retranslator points at. The retranslator itself is created separately, and these operations only decide which trackers feed it.
Binding is a master-user action. Creating and removing a binding requires the admin right, though listing a tracker's bindings does not.
Tracker retranslator binding object
API actions
API base path: /tracker/retranslator.
Required sub-user rights: admin, available only to master users.
Start forwarding a tracker's data to a retranslator, or update an existing binding. The retranslator itself is created with the retranslator resource.
Requires the admin right.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.
999199ID of the retranslator.
123Optional. Forward this value instead of the real device ID. Must be valid for the retranslator's protocol, which the protocol's fake_device_id_pattern defines.
AI568TThe binding was created
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error 201: no such tracker or retranslator. Error 208: the tracker exists but is blocked, normally because its tariff ended. Error 219: the tracker is a clone. Error 236: no tracker has the retranslation tariff feature. Error 242: fake_device_id is invalid for the retranslator's protocol.
Error response object
POST /v2/tracker/retranslator/bind HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"tracker_id": 999199,
"retranslator_id": 123,
"fake_device_id": "AI568T"
}{
"success": true
}Errors
These errors come in addition to the general error codes:
201 - No such tracker or retranslator.
208 - The tracker exists but is blocked, normally because its tariff ended.
219 - The tracker is a clone.
236 - No tracker has the retranslation tariff feature.
242 -
fake_device_idis invalid for the retranslator's protocol.
Get the retranslators a tracker forwards data to. Available to demo accounts.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.
999199The bindings
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error 208: the tracker exists but is blocked, normally because its tariff ended.
Error response object
POST /v2/tracker/retranslator/list HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"tracker_id": 999199
}{
"success": true,
"list": [
{
"retranslator_id": 4548,
"fake_device_id": "AI568T"
}
]
}Errors
These errors come in addition to the general error codes:
208 - The tracker exists but is blocked, normally because its tariff ended.
Required sub-user rights: admin, available only to master users.
Stop forwarding a tracker's data to a retranslator.
Requires the admin right.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.
999199ID of the retranslator.
123The binding was removed
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error 208: the tracker exists but is blocked, normally because its tariff ended. Error 219: the tracker is a clone.
Error response object
POST /v2/tracker/retranslator/unbind HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"tracker_id": 999199,
"retranslator_id": 123
}{
"success": true
}Errors
These errors come in addition to the general error codes:
208 - The tracker exists but is blocked, normally because its tariff ended.
219 - The tracker is a clone.
Last updated
Was this helpful?