Reprint By Reference

Label reprint by reference

Reprint By Reference

This function has the same aim of Reprint endpoint, but uses the numeric or alphanumeric reference istead of researching with the Gsped ID of the shipment.

For this endpoint you must use unique references.

Reprint labels via file

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

Use the numerical OR alphanumerical reference

Query Parameters

NameTypeDescription

ddt_num*

String

Numerical reference

ddt_alpha*

String

Alphanumerical reference

Headers

NameTypeDescription

x-api-key*

String

Apikey given by Gsped

{
    // Response
}

Example Snippets

<?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