Documentation
Feedback
Guides
API Reference

Guides
CheckoutFulfillment
List pickup points by location

Pickup points are locations where customers pick up their orders. A store provides pickup points so that its customers have the option of choosing to receive their order at their address (delivery) or to pick it up at a specified location (pickup). For more information, access pickup points.

This guide will describe how to retrieve information about collection points close to a certain location determined by geographic coordinates or postal and country codes.

Listing pickup points by location

To list all pickup points near a specific location, you need to use the List pickup points by location endpoint. There are two methods to retrieve pickup points using query parameters in the URL request.

Base URL: https://{accountName}.{environment}.com.br/api/checkout/pub/pickup-points

1. Geographic coordinates

Use the geographic coordinates (first longitude, then latitude) of the location where you want to check for nearby pickup points. See a URL request example below:

https://{accountName}.{environment}.com.br/api/checkout/pub/pickup-points?geoCoordinates=-43.1974334;-22.9573465

2. Postal and Country Codes

Use the postal and country codes of the location where you want to check for nearby pickup points. See a URL request example below:

https://{accountName}.{environment}.com.br/api/checkout/pub/pickup-points?postalCode=22250040&countryCode=BRA

The search for pickup points must be done using only one of the two methods in the URL (geographical coordinates or postal and country codes). If you try to use both query parameters, the request will not return the list of collection points.

After choosing one of the two described methods and sending the URL request, the terminal will return the body of the response containing the information of the registered pickup points closest to the informed location, as shown in the example below:


_67
...
_67
"items": [
_67
{
_67
"distance": 0.13299603760242462,
_67
"pickupPoint": {
_67
"friendlyName": "Cantina",
_67
"address": {
_67
"addressType": "pickup",
_67
"receiverName": null,
_67
"addressId": "300",
_67
"isDisposable": true,
_67
"postalCode": "22250-040",
_67
"city": "Rio de Janeiro",
_67
"state": "RJ",
_67
"country": "BRA",
_67
"street": "Praia de Botafogo",
_67
"number": "300",
_67
"neighborhood": "Botafogo",
_67
"complement": "",
_67
"reference": null,
_67
"geoCoordinates": [
_67
-43.18259,
_67
-22.94436
_67
]
_67
},
_67
"additionalInfo": null,
_67
"id": "1_300",
_67
"businessHours": [
_67
{
_67
"DayOfWeek": 0,
_67
"OpeningTime": "08:00:00",
_67
"ClosingTime": "08:00:00"
_67
},
_67
{
_67
"DayOfWeek": 1,
_67
"OpeningTime": "08:00:00",
_67
"ClosingTime": "08:00:00"
_67
},
_67
{
_67
"DayOfWeek": 2,
_67
"OpeningTime": "08:00:00",
_67
"ClosingTime": "08:00:00"
_67
},
_67
{
_67
"DayOfWeek": 3,
_67
"OpeningTime": "08:00:00",
_67
"ClosingTime": "08:00:00"
_67
},
_67
{
_67
"DayOfWeek": 4,
_67
"OpeningTime": "08:00:00",
_67
"ClosingTime": "08:00:00"
_67
},
_67
{
_67
"DayOfWeek": 5,
_67
"OpeningTime": "08:00:00",
_67
"ClosingTime": "08:00:00"
_67
},
_67
{
_67
"DayOfWeek": 6,
_67
"OpeningTime": "08:00:00",
_67
"ClosingTime": "08:00:00"
_67
}
_67
]
_67
}
_67
},
_67
...

The pickup points returned are not necessarily all active. Make sure to validate the current availability information with the responsible for the pick up points on your account.

Error codes

The following errors may appear as a message in the response body.

400 - Bad Request

  • Message error example (code ORD001): "Input string was not in the correct format": this message will appear when the geoCoordinates value field is not set correctly in the URL request.

_10
{
_10
"fields": {},
_10
"error": {
_10
"code": "001",
_10
"message": "Input string was not in a correct format.",
_10
"exception": null
_10
},
_10
"operationId": "2ff8e1f6-92f7-4921-be19-a5143a5b7a90"
_10
}

  • Message error example (code CHK0264): "Pickup not found": this message will appear when there are no pickup points near the location informed in this request.

_10
{
_10
"fields": {},
_10
"error": {
_10
"code": "CHK0264",
_10
"message": "Pickup not found",
_10
"exception": null
_10
},
_10
"operationId": "ca010e5c-9943-4485-a575-e79bd0761fa1"
_10
}

404 - Not Found

  • Message error example: "The requested URL was not found on the server": check if the URL data is correct.

_10
<body>
_10
<h1>404 Not Found</h1>
_10
<p>The requested URL was not found on this server.</p>
_10
</body>

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page