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

Shipment Webhook

Using Webhooks lets you receive real-time notifications at every status change of a shipment.

The notification is sent as soon as Gsped receives the status update from the courier, removing the need to call Gsped's systems before the status change has actually occurred. This ensures a more efficient data flow and reduces the risk of unnecessary requests.

Standard webhook

POST urldadefinire

The standard webhook sends:

  • data to an endpoint you define, as a POST

  • data in JSON format

  • optional authentication through customisable headers

Headers

Name
Value

Content-Type

application/json

Authorization to be defined

to be defined

Body

Name
Type
Description

riferimento

string

ddt_alpha Alphanumeric reference of the shipment

riferimento_numerico

number

ddt_num Numeric reference of the shipment

status_spedizione

string

Shipment status in text format

nome_corriere

string

Name of the courier handling the shipment

numero_spedizione

string

Tracking number

tracking_link

string

Tracking URL

Custom webhook

Contact Gsped to define a custom webhook.