For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reprint By Reference

Ristampa etichette su file via riferimento

Stessa finalità dell'endpoint Reprint ma al posto di ricercare con ID univoco Gsped della spedizione, utilizza i riferimenti numerici o alfanumerici.

Ristampa etichette via file

GET https://api.gsped.it/[ISTANZA]/reprintByReference

Si usa O il riferimento numerico OPPURE quello alfanumerico.

Query Parameters

Name
Type
Description

ddt_num*

String

Riferimento numerico

ddt_alpha*

String

Riferimento alfanumerico

Headers

Name
Type
Description

x-api-key*

String

Apikey fornita da Gsped

{
    // Response
}

Snippets codice di esempio

<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.gsped.it/sandbox/ReprintByReference?ddt_alpha=test1234",
  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?