Locker Provider API
Operations that a locker provider calls: validation before a locker accepts a parcel or opens a compartment, and label printing. Carriers do not call these operations.
For locker providers
Base URL:
https://api.glsnxt.com/ooh/provider-connector(staging:https://api.staging.glsnxt.com/ooh/provider-connector). Authenticate with your provider API key in theX-API-Keyheader. Each operation is enabled for each provider separately. A key that cannot use an operation gets401.
For a validation, the platform does not decide the answer itself. It asks the carrier that owns the parcel and returns the result. When the answer is not a success status, the locker must not accept the parcel and must not open the compartment.
Validate a first-mile deposit
The locker calls this operation before it accepts a parcel that a sender wants to drop off. The platform asks the carrier if the parcel is known and can be deposited.
200 means the locker can accept the parcel. 422 means the locker must refuse the parcel.
For any other status, the check did not complete and the locker must not accept the parcel.
The call changes no state, so it is safe to send it again.
Validate a first-mile deposit › Request Body
lockerIdThe ID of the locker in the provider's system.
The value the sender or courier entered or scanned at the locker.
The locker network the locker belongs to.
Validate a first-mile deposit › Responses
The parcel can be deposited.
isEligibleAlways true in this response.
isLabellesstrue when the parcel has no label and the locker must handle it as a labelless parcel.
reservationIdThe carrier's reference for this deposit.
parcelNumberbarcodeThe size and weight of the parcel. A value is absent when it is not known.
Validate a last-mile deposit
The locker calls this operation before it accepts a parcel that a courier wants to deliver. The platform asks the carrier if the parcel is known and can be deposited.
200 means the locker can accept the parcel. 422 means the locker must refuse the parcel.
For any other status, the check did not complete and the locker must not accept the parcel.
The call changes no state, so it is safe to send it again.
Validate a last-mile deposit › Request Body
lockerIdThe ID of the locker in the provider's system.
The value the sender or courier entered or scanned at the locker.
The locker network the locker belongs to.
Validate a last-mile deposit › Responses
The parcel can be deposited.
isEligibleAlways true in this response.
parcelNumberbarcodeThe size of the parcel. A value is absent when it is not known.
recipientNameAbsent when it is not known.
recipientEmailAbsent when it is not known.
recipientPhoneAbsent when it is not known.
Present only for a cash-on-delivery parcel. It reports the payment the recipient must make. It does not create the cash-on-delivery amount on the platform.
Validate a labelless reference code
The locker calls this operation after the driver scans a mini label, and before it opens the compartment that holds a labelless parcel. The platform checks if this carrier already used the reference code.
Only 202 permits the locker to open the compartment. On 409, the locker must show an error and
ask the driver for another label. For any other status, the check did not complete and the
compartment must stay closed. This includes 500 and a timeout.
Every response has an empty body. The call changes no state, so it is safe to send it again.
Validate a labelless reference code › Request Body
carrierNameThe platform name of the carrier the locker serves, as in the locker configuration. A reference code is unique for each carrier, so another carrier can use the same code.
referenceCodeThe code on the mini label, exactly as scanned. The platform compares the full text, so remove any scanner prefix, suffix or white space before you send it.
Validate a labelless reference code › Responses
This carrier did not use the reference code before. The locker can open the compartment.
Get a label PDF
The locker calls this operation to print a label for a parcel. The platform renders the QR code content into a label PDF of the requested size.
The call changes no state, so it is safe to send it again.
Get a label PDF › Request Body
labelSizeThe label size in inches.
qrCodeContentThe QR code content exactly as the locker received it for the parcel. The platform prints it on the label without changes.
Get a label PDF › Responses
The label PDF.