> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# dropoffLocations

> Dropoff locations across every network your account may use. With `near`, a live search sorted nearest first: it returns the nearest `first` locations as a single page (`locations.pageInfo.hasNextPage` is always false). Without `near`, it pages each network's catalog by provider and location id. Happy Returns needs `near` and `items`; without them it contributes a message instead of locations.

**Required scopes:** [`dropoff_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-dropoff_read)

**Store must have one of:** `RETURNS`

## Arguments

**after** `String`

Only without `near`: return catalog locations after this cursor, from `edges[].cursor` or `pageInfo.endCursor`.

**first** `Int`

How many locations to return (max 100, default 25).

**items** `[\[DropoffItemInput!\]](/docs/api-reference/v3/reference/dropoff/dropoff-item-input)`

The items being returned, for networks that decide eligibility per item (Happy Returns). At most 100 units in total.

**fields**

**description** `String!` *required*

What the item is.

**imageUrls** `[String!]`

Images of the item, shown to the dropoff agent.

**quantity** `Int!` *required*

How many of this item are in the parcel. At least 1, at most 100.

**reason** `String`

Why the item is being returned. Happy Returns uses it.

**sku** `String`

Your SKU for the item.

**near** `[DropoffSearchAddressInput](/docs/api-reference/v3/reference/dropoff/dropoff-search-address-input)`

Search live near this address.

**fields**

**address1** `String!` *required*

The first line of the address (street and number).

**address2** `String`

The second line of the address (apartment, suite, unit).

**city** `String!` *required*

The city, town, or village.

**country** `String!` *required*

Country code or name.

**latitude** `String`

Latitude of the address. Supply it with longitude to skip geocoding.

**longitude** `String`

Longitude of the address. Supply it with latitude to skip geocoding.

**postalCode** `String!` *required*

The postal or ZIP code.

**province** `String!` *required*

The province, state, or region.

**providers** `[\[DropoffProvider!\]](/docs/api-reference/v3/reference/dropoff/dropoff-provider)`

Limit the result to these networks. Defaults to every network available to the account.

**radiusKm** `Float`

Only with `near`: leave out locations farther than this. Each network's own search radius still applies.

## Returns

**dropoffLocations** `[DropoffLocationsResult!](/docs/api-reference/v3/reference/dropoff/dropoff-locations-result)` *required*

Dropoff locations and non-fatal network messages.

**fields**

**locations** `[DropoffLocationConnection!](/docs/api-reference/v3/pagination)` *required*

The page of locations this query found.

**fields**

**edges** `[\[DropoffLocationEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[DropoffLocation!](/docs/api-reference/v3/reference/dropoff/dropoff-location)` *required*

The item at this edge.

**nodes** `[\[DropoffLocation!\]!](/docs/api-reference/v3/reference/dropoff/dropoff-location)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

**address** `[DropoffLocationAddress!](/docs/api-reference/v3/reference/dropoff/dropoff-location-address)` *required*

The location's address.

**distanceKm** `Float`

Distance in kilometres from `near`. Null in a catalog listing, which has no origin.

**dropoffMethod** `String`

How the customer drops off here, for networks with several methods (Happy Returns). Null otherwise.

**geo** `[GeoCoordinates](/docs/api-reference/v3/reference/common/geo-coordinates)`

The location's coordinates, when the network publishes them.

**hours** `[\[DropoffLocationHours!\]!](/docs/api-reference/v3/reference/dropoff/dropoff-location-hours)` *required*

Opening intervals, empty when the network reports none.

**id** `ID!` *required*

The network's identifier for this location. Pass it, with `provider`, to `dropoffPurchase`.

**name** `String!` *required*

The location's name.

**phoneNumber** `String`

The location's phone number, when the network has one.

**provider** `[DropoffProvider!](/docs/api-reference/v3/reference/dropoff/dropoff-provider)` *required*

The network operating this location.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

**messages** `[\[DropoffMessage!\]!](/docs/api-reference/v3/reference/dropoff/dropoff-message)` *required*

Non-fatal messages for networks that contributed no locations. They describe the whole result, not just this page.

**fields**

**code** `[DropoffMessageCode!](/docs/api-reference/v3/reference/dropoff/dropoff-message-code)` *required*

The stable reason code for this message.

**message** `String!` *required*

A human-readable explanation.

**provider** `[DropoffProvider!](/docs/api-reference/v3/reference/dropoff/dropoff-provider)` *required*

The network this message is about.

## Example

```graphql theme={null}
query {
  dropoffLocations(after: "...", first: 10, items: { ... }, near: { ... }, providers: BLUE_YONDER, radiusKm: 0.0) {
    locations {
      nodes {
        distanceKm
        dropoffMethod
        id
        name
        phoneNumber
        provider
      }
      pageInfo { hasNextPage endCursor }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.