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

ShipmentFromCourier

Introduction

This endpoint was created as an entry point for information flows that reside on other systems or integrations.

It is an endpoint called with POST and a JSON payload.

Call specifications

Payload example

{
	"client_id" : 2,
	"instance" : "testbed",
	"courier" : 104,
	"shipment_number" : "123456789",
	"reference_1" : 11223,
	"reference_2": "11223",
	"parcels" : 1,
	"status" : "PU",
	"weight": 2.5,
	"volume": 0.005,
	"service": "N",
	"insurance": 0.0,
	"cod": 0.0,
	"parcel_details": [
		{
			"barcode": "12345",
			"weight": 2.5,
			"volume": 0.005,
			"height": 10,
			"length": 10,
			"width": 10,
			"type": "crt"
		}
	],
	"sender_info": {
		"name": "test",
		"address": "via delle Glorie 5",
		"city": "Alessandria",
		"zipcode": "15121",
		"state": "AL",
		"country": "IT",
		"phone": "1231212123",
		"mail": "test@test.it"
	},
	"recipient_info": {
		"name": "test",
		"address": "via delle rose 14",
		"city": "Milano",
		"zipcode": "20121",
		"state": "MI",
		"country": "IT",
		"phone": "1231212123",
		"mail": "test@test.it"
	},
	"date_cons": "2025-05-08 00:00:00",
	"order_id": 4743,
  "date_req_cons": "2026-03-10 00:00:00"
}

Field definitions

Headers

Name
Type
Description

x-api-key*

String

Apikey provided by Gsped

Request Body

Name
Type
Description

instance*

String

Gsped instance

courier*

Int

Gsped courier ID ( couriers and services )

parcels*

Int

Number of parcels in the shipment

volume*

Float

Shipment volume in cubic metres

weight*

Float

Shipment weight in KG

shipment_number*

String

Shipment number

status*

String

Shipment status code in the courier's format

reference_1*

String

Numeric reference of the shipment

reference_2*

String

Alphanumeric reference of the shipment

client_id*

Int

Client ID provided by Gsped

service*

String

Service code in the courier's format

sender_info*

Object

recipient_info*

Object

parcel_details*

Array

Array of parcel_data objects

date_cons

String

Delivery date

order_id

Int

Gsped ID of the order associated with the shipment

date_req_cons

String

Mandatory delivery date

Address Object

Name
Type
Description

name*

String

Name

address*

String

Address

city*

String

Name of the town/city

zipcode*

String

Postcode

state*

String

Province/state name

country*

String

2-char ISO code of the country

phone*

String

Phone number

mail*

String

Email address

Parcel_data Object

Name
Type
Description

barcode*

String

Barcode

weight*

Float

Weight in KG

volume*

Float

Volume in cubic metres

height*

Int

Height in CM

length*

Int

Length in CM

width*

Int

Depth in CM

type

String

Parcel type

Code examples

PHP

Python

GO

C#

Curl

Limitations

This endpoint is currently available for the following couriers:

ID
Courier

20

Fedex

37

Pitagorando

38

Reni Trasporti

70

Dummy1

71

Dummy2

72

Dummy3

73

Dummy4

74

Dummy5

75

Dummy6

76

Dummy7

77

Dummy8

78

Dummy9

79

Dummy10

90

Italsempione

91

Logisticando

92

CsiLogistica

93

Ribosped

94

Zust-Tiesse

95

Lynx

98

SVL

101

GLS

104

DHL

It will be expanded in the future: check the documentation regularly to stay up to date.