Next available PUDOs

Returning the next available PUDO Options

Using just the Basic Parameters, you can return the cheapest next available PUDO delivery option for each carrier 'service group':

Here is an example of an API call incorporating the above:

GET https://dmo.metapack.com/dmoptions/find?key=<API-Key>&wh_code=SL123&c_lat=52.192001&c_long=-2.220000&optionType=PUDO&r_t=lgg

Here is an example of the server response (assuming a 200 OK status):

{
    "header": {
        "requestId": "a7368bdc-d0d0-4ad6-98cc-7a2d0797e8f5",
        "requestDate": "2020-02-18T16:59:14.245Z",
        "inputParameters": {
            "optionType": [
                "PUDO"
            ],
            "c_long": [
                "-2.220000"
            ],
            "r_t": [
                "lgg"
            ],
            "c_lat": [
                "52.192001"
            ],
            "wh_code": [
                "SL123"
            ],
            "key": [
                "<API-Key>"
            ]
        },
        "responseDate": "2020-02-18T16:59:15.511Z"
    },
    "results": [
        {
            "groupCodes": [
                "NEXT"
            ],
            "photoUrls": [],
            "telephoneNumber": null,
            "distance": {
                "unit": "m",
                "value": 556
            },
            "description": null,
            "carrierServiceCode": "COL01COL24_WVZU_329001",
            "long": -2.2245133,
            "optionType": "PUDO",
            "countryCode": "GBR",
            "storeName": "Castle Service Station",
            "shippingCharge": 0,
            "lat": 52.196175,
            "delivery": {
                "from": "2020-02-19T00:01:00.000Z",
                "to": "2020-02-19T23:59:59.999Z"
            },
            "address": "Castle Service Station, 3-7 Castle Street, Worcester",
            "carrierServiceName": "24 hour Collect+ Delivery to Store\nWVZU\nCastle Service Station\n3-7 Castle Street\n\n\nWorcester\n\nGBR\nWR1 3AD",
            "postcode": "WR1 3AD",
            "fullName": "Collect+ 24 hour Collect+ Delivery to Store\nWVZU\nCastle Service Station\n3-7 Castle Street\n\n\nWorcester\n\nGBR\nWR1 3AD",
            "collection": {
                "from": "2020-02-18T18:30:00.000Z",
                "to": "2020-02-18T19:30:59.999Z"
            },
            "storeId": null,
            "logoUrl": null,
            "storeTimes": {
                "monday": [
                    "00:00-23:59"
                ],
                "tuesday": [
                    "00:00-23:59"
                ],
                "wednesday": [
                    "00:00-23:59"
                ],
                "thursday": [
                    "00:00-23:59"
                ],
                "friday": [
                    "00:00-23:59"
                ],
                "saturday": [
                    "00:00-23:59"
                ],
                "sunday": [
                    "00:00-23:59"
                ]
            },
            "carrierCode": "COL01",
            "hasDisabledAccess": false,
            "bookingCode": "COL01COL24_WVZU_329001/2020-02-18/*-*/*/*-*",
            "cutOffDateTime": "2020-02-18T18:00:00.000Z"
        },
        {
            "groupCodes": [
                "STANDARD"
            ],
            "photoUrls": [],
            "telephoneNumber": null,
            "distance": {
                "unit": "m",
                "value": 556
            },
            "description": null,
            "carrierServiceCode": "COL01COL48_WVZU_329002",
            "long": -2.2245133,
            "optionType": "PUDO",
            "countryCode": "GBR",
            "storeName": "Castle Service Station",
            "shippingCharge": 0,
            "lat": 52.196175,
            "delivery": {
                "from": "2020-02-19T00:01:00.000Z",
                "to": "2020-02-20T23:59:59.999Z"
            },
            "address": "Castle Service Station, 3-7 Castle Street, Worcester",
            "carrierServiceName": "48 hour Collect+ Delivery to Store\nWVZU\nCastle Service Station\n3-7 Castle Street\n\n\nWorcester\n\nGBR\nWR1 3AD",
            "postcode": "WR1 3AD",
            "fullName": "Collect+ 48 hour Collect+ Delivery to Store\nWVZU\nCastle Service Station\n3-7 Castle Street\n\n\nWorcester\n\nGBR\nWR1 3AD",
            "collection": {
                "from": "2020-02-18T18:30:00.000Z",
                "to": "2020-02-18T19:30:59.999Z"
            },
            "storeId": null,
            "logoUrl": null,
            "storeTimes": {
                "monday": [
                    "00:00-23:59"
                ],
                "tuesday": [
                    "00:00-23:59"
                ],
                "wednesday": [
                    "00:00-23:59"
                ],
                "thursday": [
                    "00:00-23:59"
                ],
                "friday": [
                    "00:00-23:59"
                ],
                "saturday": [
                    "00:00-23:59"
                ],
                "sunday": [
                    "00:00-23:59"
                ]
            },
            "carrierCode": "COL01",
            "hasDisabledAccess": false,
            "bookingCode": "COL01COL48_WVZU_329002/2020-02-18/*-*/*/*-*",
            "cutOffDateTime": "2020-02-18T18:00:00.000Z"
        }
    ]
}