This endpoint is an alternative to /parcels/data endpoint and could be used to publish parcel data using carrierLockerId instead of lockerUid.
Security
ApiKeyAuth
The type of booking request.
Enum:"PRE_CHECK""BOOKING"
Example:"BOOKING"
The unique identifier of the locker in the Carrier Platform.
Example:"LOCKER123"
The identifier of the parcel in the carrier's system.
Example:"12345KL6789M"
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"
- Mock serverhttps://docs.glsnxt.com/_mock/openapi-carrier-integration-api/parcels/data/by-tenant-locker-id
- Staginghttps://api.staging.glsnxt.com/ooh/carrier-connector/v1/parcels/data/by-tenant-locker-id
- Productionhttps://api.glsnxt.com/ooh/carrier-connector/v1/parcels/data/by-tenant-locker-id
curl -i -X POST \
https://docs.glsnxt.com/_mock/openapi-carrier-integration-api/parcels/data/by-tenant-locker-id \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"eventType": "BOOKING",
"carrierLockerId": "LOCKER123",
"carrierParcelId": "12345KL6789M",
"shipmentType": "LAST_MILE",
"consignee": {
"name": "John Doe",
"email": "[email protected]"
},
"dimensions": {
"depth": 190,
"height": 100,
"width": 140
},
"weight": 300,
"allocationType": "HARD_RESERVATION",
"requiresAccessibleCompartment": false
}'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" }