Previous | Next |
(docx) | HP Shipping Service API - Technical documentation (pdf) |
6. Delivery point methods6.1.GetParcelDeliveryPointDefinitionThis method is used to retrieve accurate and available information about working hours, addresses and other information of Croatian Post offices and parcel lockers.
Request parametersClass ParcelDeliveryPointData
Request example1. Example of a service call that retrieves all post offices and parcel lockers with business hours for the current week, without filtering the results { "facilityType": "ALL", "nextWeek": 0, "searchText": "" } 2. Example of a service call that retrieves only parcel lockers { "facilityType": "PAK", "nextWeek": 0, "searchText": "" } 3. Example of a service call that retrieves only post offices with business hours for the current and following week { "facilityType": "PU", "nextWeek": 1, "searchText": "" } 4. Example of a service call that retrieves data by filtering { "facilityType": "ALL", "nextWeek": 0, "searchText": "62102" } { "facilityType": "PU", "nextWeek": 0, "searchText": "Zagreb" } Response example"postaInfoList":[ { "type": "string", "name": "string", "zip": "string", "city": "string", "address": "string", "tel": "string", "fax": "string", "geoLatitude": 0, "getLongitude": 0, "workingHours": [ { "weekDay": 0, "date": "string", "openingTime": { "hour": 0, "minute": 0, "second": 0 }, "closingTime": { "hour": 0, "minute": 0, "second": 0 }, "closed": "string" } ] } ], "paketomatInfoList": [ { "type": "string", "name": "string", "zip": "string", "city": "string", "address": "string", "geoLat": 0, "getLng": 0, "code": "string" } ] } The service returns two lists: one for post offices "postaInfoList" and one for parcel lockers "paketomatInfoList". PostaInfoList Within the list for post offices, the service returns information about working hours "workingHours" structured in such a way that working hours are returned separately for each day of the week. WorkingHours contains the following parameters within its structure:
|