Upload Documents

Custom documents upload

This endpoint allows to upload the custom documents, after the creation of shipment and the receiving of the label.

The use of this enpoint needs a preventive talk with a Gsped technician to have a proper activation.

Document upload for DHL shipments

POST https://api.gsped.it/[INSTANCE]/DhlPaperless

Allows the upload after the receiving of the label.

Request Body

Name
Type
Description

id*

Integer

Unique Gsped ID of the shipment

files*

Array

Array of document objects

doc.type*

String

Type of file (see the table)

doc.format*

String

Image format

doc.content*

String

Base 64 of the image

{
    // Response
}
// Example payload

{
    "id": 50000397,
    "files":
    [
        {
            "type": "PNV",
            "format": "PDF",
            "content": "base64 string"
        },
        {
            "type": "DCL",
            "format": "PDF",
            "content": "base 64 string"
        }
    ]
}

Loadable types and codes of documents

Type of document
Acronym

Invoice

INV

Proforma Invoice

PNV

Certificate of Origin

COO

Certificate of Nafta origin

NAF

Commercial Invoice

CIN

Custom Bill

DCL

Waybill document

AWB

Type of loadable files

DHL takes the following file formats:

  • PDF

  • PNG

  • TIFF

  • GIF

  • JPEG

Maximum size of 1 Mb in B64.

Last updated