This endpoint returns the shipment information together with their labels in the available formats, exactly as , but using the numeric reference as a query parameter.
To use this endpoint the numeric reference must be unique in order
If the user to whom the apikey is associated operates with several usernames and the numeric references risk to be identical, it is possible to use the additional parameter client_id, valorised with the whole one indicating on which data to further filter the query.
The list of the client_id of a user is given by Gsped at the end of each configuration.
var client = new RestClient("https://api.gsped.it/sandbox/ShipmentByDdtnum?ddt_num=123");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "YOUR-API-KEY");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
curl --location --request GET 'https://api.gsped.it/sandbox/ShipmentByDdtnum?ddt_num=123' \
--header 'x-api-key: YOUR-API-KEY'
Shipment by DDT Num - DELETE
This endpoint deletes a shipment using the numeric reference used during the creation as search field.
In order to use this endpoint the numeric reference must be unique
var client = new RestClient("https://api.gsped.it/sandbox/ShipmentByDdtnum?ddt_num=124");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
request.AddHeader("x-api-key", "YOUR-API-KEY");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);