Get parcels
Retrieve a list of parcels associated with the carrier. This endpoint allows fetching detailed information about parcels, including their status and history.
Query parameters
-
ids
string Required Comma-separated list of parcel IDs to retrieve
GET
/parcels
curl \
--request GET 'https://api.staging.glsnxt.com/ooh/carrier-connector/v1/parcels?ids=12345%2CG67890%2CA12345' \
--header "X-API-Key: $API_KEY"
Response examples (200)
[
{
"shipmentUid": "anyParcelId123",
"lockerUid": "anyLockerId123",
"carrierParcelId": "anyCarrierParcelId123",
"carrierLockerId": "Locker1",
"shipmentType": "LAST_MILE",
"dimensionsStatus": "PARCEL_DIMENSIONS_OK",
"shipmentStatus": "BOOKING_PRE_CHECK",
"accessCodes": {
"consigneeCollection": "anyValidCode123",
"consigneeCollectionCode": {
"code": "anyValidCode123",
"validUntil": "2025-01-27T12:00:00Z"
}
},
"consignee": {
"name": "John Doe",
"email": "john.doe@google.com"
},
"events": [
{
"timestamp": "2025-08-20T00:00:00Z",
"eventType": "BOOKING_PRE_CHECK"
}
],
"allocationType": "HARD_RESERVATION"
}
]
Response examples (400)
{
"errorCode": "INVALID_REQUEST",
"message": "Bad request due to invalid input"
}
Response examples (401)
{
"errorCode": "UNAUTHORIZED",
"message": "The requested resource requires authentication"
}
Response examples (404)
{
"errorCode": "NOT_FOUND",
"message": "The requested resource was not found"
}
Response examples (500)
{
"errorCode": "SERVER_ERROR",
"message": "The server encountered an internal error"
}