Skip to main content
This guide shows you how to programmatically generate return shipping labels and track returned items. Handling returns efficiently is crucial for customer satisfaction. The API allows you to generate a shipping label that your customer can use to send an item back to the Quivo warehouse.

Prerequisites

Before you start, make sure you have:
All API examples in this guide use ${BASE_URL} as a placeholder. Replace it with the correct base URL configured for the correct environment. For more information see Environments page.

Book a return label

To let a customer return an item, you must generate a shipping label for them via the POST /returnApp/book endpoint. You need to provide the “Ship From” address (your customer’s house) and the weight of the package. The following example shows how to send a complete return request payload in one command:
Use this request to book a return shipping label for your customer.
curl -X POST "${BASE_URL}/returnApp/book" \
  -H "X-Api-Key: <YOUR_STATIC_API_KEY>" \
  -H "Authorization: <YOUR_SESSION_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "requestUUID": "<YOUR_REQUEST_UUID>",
    "hash": "<YOUR_SECURE_HASH>",
    "reference": "<YOUR_REFERENCE>",
    "grossWeightKG": <GROSS_WEIGHT_KG>,
    "shipFrom": {
      "name": "<CUSTOMER_NAME>",
      "street": "<CUSTOMER_STREET_ADDRESS>",
      "city": "<CUSTOMER_CITY>",
      "zip": "<CUSTOMER_ZIP_CODE>",
      "countryIso2": "<CUSTOMER_COUNTRY_CODE>",
      "email": "<CUSTOMER_EMAIL>"
    }
  }'

Track received returns

When the package arrives back at the Quivo warehouse, the staff inspects it. You can list all received returns to see their status and condition via the GET /returns endpoint.
Use this request to list all received returns and review their status.
curl -X GET "${BASE_URL}/returns?sort=created:desc" \
  -H "X-Api-Key: <YOUR_STATIC_API_KEY>" \
  -H "Authorization: <YOUR_SESSION_TOKEN>"

Where to go next

Now that you can manage returns, continue with these guides:

Track an Order

Check the status of the original order to understand the full fulfillment lifecycle.

Create a Fulfillment Order

Create new orders for replacement items or refund processing.