Delivery session
A restricted session that lets an external system follow order and task tracking.
A delivery session is a special session type for integrating order and task tracking into an external system. It is what a courier-tracking page authenticates with, and it carries far less authority than an ordinary session.
The delivery info operations accept this session type alongside the standard one.
API actions
API base path: /user/session/delivery.
A demo session may create a delivery session only when one does not already exist.
Required sub-user rights: delivery_session_create.
Create a delivery session for the current user.
Requires the delivery_session_create right.
Takes no parameters. Also accepts GET.
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.
The new delivery session
true if request finished successfully.
trueDelivery session hash.
Bad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Feature unavailable due to tariff restrictions, error code 236.
In demo mode this function is disabled, error code 101.
Error response object
POST /v2/user/session/delivery/create HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"value": "text"
}Errors
These errors come in addition to the general error codes:
101 - In demo mode this function is disabled, when the session is a demo one and a delivery session already exists.
236 - Feature unavailable due to tariff restrictions.
Return the delivery session hash for the current user, used by the delivery application.
Also accepts GET with the same parameters as query-string values.
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.
The delivery session hash
true if request finished successfully.
trueDelivery session hash.
Bad 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 response object
POST /v2/user/session/delivery/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"value": "text"
}Errors
These errors come in addition to the general error codes:
201 - Not found in the database, when the user has no delivery session.
Last updated
Was this helpful?