Next Day 'Click and Collect'

Returning the cheapest Next Day Own Store Option

To return the cheapest next day 'Click and Collect' carrier 'service group' option:

  • Specify the latitude/longitude or postal code for the search point.

  • Use return type lgg to ensure the listing of the cheapest next available delivery option for each carrier 'service group'.

  • To return the next available options, include only the NEXT DAY group that you created in Setup, by using the incgrp parameter.

  • Specify OWNSTORE as your optionType.

  • Specify a radius that returns just the nearest 'Click and Collect' location(s).

  • Display the location(s) and store opening times on your checkout page.

Here is an example of an API call designed to return the cheapest next day 'Click and Collect' option within 7,000 metres of a particular latitude/longitude:

GET https://dmo.metapack.com/dmoptions/find?key=<API-Key>&wh_code=SL123&c_lat=51.5234&c_long=-0.1141&optionType=OWNSTORE&incgrp=NEXT&r_t=lgg&radius=8000

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

{
    "header": {
        "requestId": "bb185be1-2184-4a2d-a568-5472e10863cd",
        "requestDate": "2020-04-07T15:15:23.951Z",
        "inputParameters": {
            "optionType": [
                "OWNSTORE"
            ],
            "c_long": [
                "-0.1141"
            ],
            "r_t": [
                "lgg"
            ],
            "c_lat": [
                "51.5234"
            ],
            "radius": [
                "8000"
            ],
            "wh_code": [
                "SL123"
            ],
            "key": [
                "<API-Key>"
            ],
            "incgrp": [
                "NEXT"
            ]
        },
        "responseDate": "2020-04-07T15:15:24.067Z"
    },
    "results": [
        {
            "groupCodes": [
                "NEXT"
            ],
            "photoUrls": [],
            "telephoneNumber": "",
            "distance": {
                "unit": "m",
                "value": 6493
            },
            "description": "DCL[21723]Georges",
            "carrierServiceCode": "PLPRE1000OC",
            "long": -0.05399991,
            "optionType": "OWNSTORE",
            "countryCode": "GBR",
            "storeName": "Georges",
            "shippingCharge": 4,
            "lat": 51.47868,
            "delivery": {
                "from": "2020-04-07T07:00:00.000Z",
                "to": "2020-04-07T09:00:59.999Z"
            },
            "address": "909 Old Kent Road, London, GBR",
            "carrierServiceName": "BEFORE 10 - Early Cut off",
            "postcode": "SE15 1NL",
            "fullName": "DPD BEFORE 10 - Early Cut off",
            "collection": {
                "from": "2020-04-07T17:30:00.000Z",
                "to": "2020-04-07T18:30:59.999Z"
            },
            "storeId": "WGRF",
            "logoUrl": "",
            "storeTimes": {
                "monday": [
                    "06:00-19:30"
                ],
                "tuesday": [
                    "06:00-19:30"
                ],
                "wednesday": [
                    "06:00-19:30"
                ],
                "thursday": [
                    "06:00-19:30"
                ],
                "friday": [
                    "06:00-19:30"
                ],
                "saturday": [
                    "07:30-19:30"
                ],
                "sunday": [
                    "07:30-13:00"
                ]
            },
            "carrierCode": "DPD",
            "hasDisabledAccess": false,
            "bookingCode": "PLPRE1000OC/2020-04-07/*-*/*/*-*",
            "cutOffDateTime": "2020-04-07T17:00:00.000Z"
        },
        {
            "groupCodes": [
                "NEXT"
            ],
            "photoUrls": [],
            "telephoneNumber": "",
            "distance": {
                "unit": "m",
                "value": 7246
            },
            "description": "DCL[20316]Londis",
            "carrierServiceCode": "PLPRE1000OC",
            "long": -0.03119687,
            "optionType": "OWNSTORE",
            "countryCode": "GBR",
            "storeName": "Londis",
            "shippingCharge": 4,
            "lat": 51.48383,
            "delivery": {
                "from": "2020-04-07T07:00:00.000Z",
                "to": "2020-04-07T09:00:59.999Z"
            },
            "address": "317-319 Evelyn Street, London, GBR",
            "carrierServiceName": "BEFORE 10 - Early Cut off",
            "postcode": "SE8 5RA",
            "fullName": "DPD BEFORE 10 - Early Cut off",
            "collection": {
                "from": "2020-04-07T17:30:00.000Z",
                "to": "2020-04-07T18:30:59.999Z"
            },
            "storeId": "WFOC",
            "logoUrl": "",
            "storeTimes": {
                "monday": [
                    "07:00-22:00"
                ],
                "tuesday": [
                    "06:00-22:00"
                ],
                "wednesday": [
                    "07:00-22:00"
                ],
                "thursday": [
                    "07:00-22:00"
                ],
                "friday": [
                    "07:00-23:00"
                ],
                "saturday": [
                    "07:00-23:00"
                ],
                "sunday": [
                    "08:00-22:00"
                ]
            },
            "carrierCode": "DPD",
            "hasDisabledAccess": false,
            "bookingCode": "PLPRE1000OC/2020-04-07/*-*/*/*-*",
            "cutOffDateTime": "2020-04-07T17:00:00.000Z"
        },
        {
            "groupCodes": [
                "NEXT"
            ],
            "photoUrls": [],
            "telephoneNumber": "",
            "distance": {
                "unit": "m",
                "value": 7699
            },
            "description": "DCL[22765]Manani Brothers",
            "carrierServiceCode": "PLPRE1000OC",
            "long": -0.01078028,
            "optionType": "OWNSTORE",
            "countryCode": "GBR",
            "storeName": "Manani Brothers",
            "shippingCharge": 4,
            "lat": 51.498234,
            "delivery": {
                "from": "2020-04-07T07:00:00.000Z",
                "to": "2020-04-07T09:00:59.999Z"
            },
            "address": "3 Castalia Square, London, GBR",
            "carrierServiceName": "BEFORE 10 - Early Cut off",
            "postcode": "E14 3PQ",
            "fullName": "DPD BEFORE 10 - Early Cut off",
            "collection": {
                "from": "2020-04-07T17:30:00.000Z",
                "to": "2020-04-07T18:30:59.999Z"
            },
            "storeId": "WHKD",
            "logoUrl": "",
            "storeTimes": {
                "monday": [
                    "07:00-17:00"
                ],
                "tuesday": [
                    "07:00-17:00"
                ],
                "wednesday": [
                    "07:00-17:00"
                ],
                "thursday": [
                    "07:00-17:00"
                ],
                "friday": [
                    "07:00-17:00"
                ],
                "saturday": [
                    "07:00-15:00"
                ],
                "sunday": [
                    "07:30-12:00"
                ]
            },
            "carrierCode": "DPD",
            "hasDisabledAccess": false,
            "bookingCode": "PLPRE1000OC/2020-04-07/*-*/*/*-*",
            "cutOffDateTime": "2020-04-07T17:00:00.000Z"
        }
    ]
}

You can now display the 'Click and Collect' locations on your checkout page.