Reprint

Reprint labels on file

Utility endpoint to regenerate the print files of the labels of a shipping. This endpoint can be used if you have a Gsped Labeling Machine or if the file are retrieved via FTP.

Reprint the labels

GET https://api.gsped.it/[INSTANCE]/reprint/[shipment_id]

Path Parameters

NameTypeDescription

shipment_id*

String

Unique Gsped shipping ID

Headers

NameTypeDescription

x-api-key*

String

API Key given by Gsped

{
    "result": "OK"
}

Example Snippets

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