> ## 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.

# DropoffPurchaseInput

> The dropoff to buy.

**customer** `[DropoffPurchaseCustomerInput!](/docs/api-reference/v3/reference/dropoff/dropoff-purchase-customer-input)` *required*

The customer returning the parcel.

**fields**

**address** `[DropoffPurchaseAddressInput](/docs/api-reference/v3/reference/dropoff/dropoff-purchase-address-input)`

The customer's 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.

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

The postal or ZIP code.

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

The province, state, or region.

**email** `String!` *required*

The customer's email. Providers validate it and reject placeholders.

**firstName** `String!` *required*

The customer's first name.

**lastName** `String!` *required*

The customer's last name.

**phone** `String`

The customer's phone number.

**externalReferenceId** `String!` *required*

Your own key for this purchase. Buying twice with the same reference returns the first dropoff and charges once.

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

The goods in the parcel. At least one line is required.

**fields**

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

What the item is. Shown to the provider and on customs forms.

**imageUrl** `String`

A product image URL, shown to Happy Returns staff.

**orderLineReference** `String`

Your own line id. Opaque to Redo, passed through to the provider.

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

How many of this item are in the parcel. Must be positive.

**reason** `String`

Why the item is being returned. Required for `HAPPY_RETURNS`, which checks eligibility per item.

**sku** `String`

Your SKU for the item.

**unitValue** `[MoneyInput!](/docs/api-reference/v3/reference/common/money-input)` *required*

The declared value of a single unit. Must be greater than zero.

**fields**

**amount** `[Decimal!](/docs/api-reference/v3/reference/common/decimal)` *required*

The amount as an exact decimal string (e.g. "19.99").

**currency** `String!` *required*

ISO 4217 currency code (e.g. USD).

**locationId** `String`

The location to drop off at, from `dropoffLocations`. Omit to buy at the location nearest `customer.address`; one of the two is required.

**orderReference** `String!` *required*

Your own order id for the parcel. Opaque to Redo.

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

The provider to buy from. With `locationId`, it is cross-checked against the location and a mismatch is rejected. Without it, the nearest location is chosen from this provider's locations.

**purchaseDate** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the dropoff record and the provider request are dated. Defaults to now. Billing always uses the time the purchase is processed, so this does not move the charge.

**returnAddressId** `ID`

Which of your configured return addresses the parcel goes to. Omitted, the return center is chosen from the customer's country.


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