Get Coverage
GEThttps://api.goodsdelivery.io/v1/coverage
Authorization: x-api-key
name: x-api-keytype: apiKeyscopes: brand
in: header
Use this endpoint to receive a complete list of supported zip codes in which our delivery services are offered.
This endpoint has many use cases, including:
- Add a filtering facet to category pages that shows products available for same-day delivery from our stores
- Update your application to reflect the list of applicable zip codes
Request
Responses
- 200
- 404
If the request is valid, a successful response will contain a complete list of supported zip codes.
- application/json
- Schema
- Example (from schema)
- Example
Schema
pagesCount numberrequired
page numberrequired
objectsCount numberrequired
objects object[]required
{
"pagesCount": 0,
"page": 0,
"objectsCount": 0,
"objects": [
{
"name": "string",
"pickUpZipCodes": [
"string"
],
"dropOffZipCodes": [
"string"
],
"operatingDays": [
"monday"
],
"services": [
{
"serviceType": "SAME_DAY",
"jobType": "DELIVERY"
}
],
"timeZone": "string"
}
]
}
{
"success": true,
"objects": [
{
"name": "New York",
"pickUpZipCodes": [
"10005",
"10006"
],
"dropOffZipCodes": [
"10005",
"10007"
],
"services": [
{
"serviceType": "SAME_DAY",
"jobType": "DELIVERY"
},
{
"serviceType": "NEXT_DAY",
"jobType": "DELIVERY"
},
{
"serviceType": "SAME_DAY",
"jobType": "RETURN"
},
{
"serviceType": "NEXT_DAY",
"jobType": "RETURN"
}
],
"operatingDays": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday"
]
},
{
"name": "Los Angeles",
"pickUpZipCodes": [
"90046",
"90047",
"90048"
],
"dropOffZipCodes": [
"90046",
"90047",
"90049"
],
"services": [
{
"serviceType": "SAME_DAY",
"jobType": "DELIVERY"
},
{
"serviceType": "NEXT_DAY",
"jobType": "DELIVERY"
},
{
"serviceType": "SAME_DAY",
"jobType": "RETURN"
},
{
"serviceType": "NEXT_DAY",
"jobType": "RETURN"
}
],
"operatingDays": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday"
]
}
]
}
No coverage found
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
Human readable error message.
code stringrequired
Machine readable error message.
more url
More help on the error here.
{
"message": "string",
"code": "string",
"more": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://api.goodsdelivery.io/v1/coverage' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
ResponseClear