Reprint
Ristampa le etichette su file
Endpoint di utilità per rigenerare i files di stampa delle etichette di una spedizione, può essere utilizzato se si dispone di una Gsped Labeling Machine o se si recuperano le etichette via FTP.
Ristampa le etichette
GET
https://api.gsped.it/[ISTANZA]/reprint/[id_spedizione]
Path Parameters
Name
Type
Description
id_spedizione*
String
ID univoco spedizione Gsped
Headers
Name
Type
Description
x-api-key*
String
APIKEY fornita da Gsped
{
"result": "OK"
}
Snippets codice di esempio
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gsped.it/sandbox/reprint/1234",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"x-api-key: YOUR-API-KEY"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Last updated
Was this helpful?