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

POD (proof of delivery)

Download PODs (Proof-Of-Delivery)

This endpoint lets you download PODs in PDF/JPG format (or in the courier's original format) for couriers that provide the means to obtain them.

Download POD

GET https://api.gsped.it/[INSTANCE]/POD/[ID_GSPED]

Download POD file

Path Parameters

Name
Type
Description

id*

String

Unique Gsped ID of the shipment

Headers

Name
Type
Description

x-api-key*

String

Apikey provided by Gsped

{
    "pod": "base64 encoded POD string",
    "file_type": "application/pdf"
}
{
  "error": "ID spedizione non indicata"
}
{
  "status": false,
  "error": "Invalid API key "
}
{
  "error": "Spedizione non trovata"
}

Example code snippets

<?php

$curl = curl_init();

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