This endpoint allows the Carriers to publish parcel data into the OOH Platform. It should be used to push parcel data at the time when the locker booking is expected to take place or to pre-check if a parcel can be accepted in the locker.
Security
ApiKeyAuth
The type of booking request.
Enum:"PRE_CHECK""BOOKING"
Example:"BOOKING"
The unique identifier of the locker in the GLS/NXT Platform.
Example:"locker_567890"
The identifier of the parcel in the carrier's system.
Example:"A123456789"
The possible types of last-mile shipments accepted.
Enum:"LAST_MILE""ALTERNATIVE_DELIVERY"
Example:"LAST_MILE"
The allocation type of the shipment.
Enum:"HARD_RESERVATION""SOFT_RESERVATION"
Example:"HARD_RESERVATION"
Indicates whether the parcel requires an accessible compartment. Defaults to false when not present or null.
Default:false
Example:false
- Mock serverhttps://docs.glsnxt.com/_mock/openapi-carrier-integration-api/parcels/data
- Staginghttps://api.staging.glsnxt.com/ooh/carrier-connector/v1/parcels/data
- Productionhttps://api.glsnxt.com/ooh/carrier-connector/v1/parcels/data
curl -i -X POST \
https://docs.glsnxt.com/_mock/openapi-carrier-integration-api/parcels/data \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"eventType": "BOOKING",
"lockerUid": "locker_567890",
"carrierParcelId": "A123456789",
"shipmentType": "LAST_MILE",
"consignee": {
"name": "John Doe",
"email": "[email protected]"
},
"dimensions": {
"depth": 190,
"height": 100,
"width": 140
},
"weight": 400,
"allocationType": "HARD_RESERVATION",
"requiresAccessibleCompartment": false,
"secondaryShipmentId": "EXP-CODE-0001"
}'Parcel event published successfully
A message providing additional information about the event processing.
Example:"Parcel event received and processed successfully"
Response
{ "status": "success", "message": "Parcel event received and processed successfully", "timestamp": "2023-06-18T10:45:00Z" }