# Publish parcel data with carrier locker id This endpoint is an alternative to endpoint and could be used to publish parcel data using carrierLockerId instead of lockerUid. Endpoint: POST /parcels/data/by-tenant-locker-id Version: 1.1.0 Security: ApiKeyAuth ## Request fields (application/json): - `eventType` (string, required) The type of booking request. Enum: "PRE_CHECK", "BOOKING" - `carrierLockerId` (string, required) The unique identifier of the locker in the Carrier Platform. Example: "LOCKER123" - `carrierParcelId` (string, required) The identifier of the parcel in the carrier's system. Example: "12345KL6789M" - `shipmentType` (string) The possible types of last-mile shipments accepted. Enum: "LAST_MILE", "ALTERNATIVE_DELIVERY" - `consignee` (object,null) The details of the consignee. - `consignee.name` (string,null) Example: "John Doe" - `consignee.email` (string,null) Example: "john.doe@google.com" - `dimensions` (object, required) The dimensions of the parcel. - `dimensions.depth` (integer,null) Depth in mm Example: 190 - `dimensions.height` (integer,null) Height in mm Example: 100 - `dimensions.width` (integer,null) Width in mm Example: 140 - `weight` (integer) Weight in grams Example: 300 - `allocationType` (string) The allocation type of the shipment. Enum: "HARD_RESERVATION", "SOFT_RESERVATION" ## Response 200 fields (application/json): - `status` (string) The status of the event processing. Example: "success" - `message` (string) A message providing additional information about the event processing. Example: "Parcel event received and processed successfully" - `timestamp` (string) The timestamp when the event was processed. Example: "2023-06-18T10:45:00Z" ## Response 400 fields (application/json): - `errorCode` (string) A code representing the type of error. Example: "INVALID_REQUEST" - `message` (string) A message describing the error. Example: "Bad request due to invalid input" ## Response 401 fields (application/json): - `errorCode` (string) A code representing the type of error. Example: "UNAUTHORIZED" - `message` (string) A message describing the error. Example: "The requested resource requires authentication" ## Response 500 fields (application/json): - `errorCode` (string) A code representing the type of error. Example: "SERVER_ERROR" - `message` (string) A message describing the error. Example: "The server encountered an internal error"