RefreshQr
Renew the PUT URLs of the file defined in the QrCode
In combination with the feature that lets you create a QrCode on the label (when uploading a file), the URLs are valid for 7 days.
With this endpoint, if they have expired, you can renew their validity window for another 7 days, up to a maximum of 4 times.
Renew the QrCode URLs
GET https://api.gsped.it/[INSTANCE]/shipment/refreshQr/[ID_SPEDIZIONE_GSPED]
7 more days of validity from the time of the call, for a maximum of 4 renewals
Headers
Name
Type
Description
x-api-key*
String
Apikey provided by Gsped
{
"result": {
"qrCode": [
{
"putUrl": "XXXXXXXXX", // URL per il PUT
"url": "XXXXXXXXX" // URL per il GET
}
]
}
}Below is an example for when the maximum number of refreshes has been reached:
{
"error": "Max number of refresh reached", // messaggio errore
"code": 400 // codice HTTP errore
}