Skip to main content
GET
/
return_orders
List all returns
curl --request GET \
  --url https://app.supercycle.com/api/v1/return_orders \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://app.supercycle.com/api/v1/return_orders"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://app.supercycle.com/api/v1/return_orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://app.supercycle.com/api/v1/return_orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://app.supercycle.com/api/v1/return_orders"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://app.supercycle.com/api/v1/return_orders")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.supercycle.com/api/v1/return_orders")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "id": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "customer": {
        "id": 123,
        "createdAt": "2023-11-07T05:31:56Z",
        "shopifyId": 123,
        "defaultAddress": {
          "customerId": 123,
          "default": true,
          "firstName": "<string>",
          "lastName": "<string>",
          "company": "<string>",
          "address1": "<string>",
          "address2": "<string>",
          "city": "<string>",
          "province": "<string>",
          "country": "<string>",
          "zip": "<string>",
          "phone": "<string>",
          "name": "<string>",
          "provinceCode": "<string>",
          "countryCode": "<string>",
          "countryName": "<string>"
        },
        "email": "<string>",
        "firstName": "<string>",
        "lastName": "<string>"
      },
      "returnLines": [
        {
          "id": 123,
          "createdAt": "2023-11-07T05:31:56Z",
          "rentalId": 123,
          "condition": {
            "id": 123,
            "createdAt": "2023-11-07T05:31:56Z",
            "severityKey": "<string>",
            "severityTone": "<string>",
            "title": "<string>"
          },
          "item": {
            "id": 123,
            "createdAt": "2023-11-07T05:31:56Z",
            "activeRentalId": 123,
            "productTitle": "<string>",
            "serial": "<string>",
            "sequentialId": 123,
            "shopifyVariantId": 123,
            "tags": [
              "<string>"
            ],
            "variantTitle": "<string>",
            "activeReturnId": 123,
            "condition": {
              "id": 123,
              "createdAt": "2023-11-07T05:31:56Z",
              "severityKey": "<string>",
              "severityTone": "<string>",
              "title": "<string>"
            },
            "conditionId": 123,
            "imageUrl": "<string>",
            "location": {
              "shopifyId": 123,
              "name": "<string>"
            },
            "pickLocation": "<string>",
            "acquisitionCostCents": 123,
            "roiCents": 123,
            "shopifyProductId": 123,
            "timelineEvents": [
              {
                "id": 123,
                "eventableId": 123,
                "eventableType": "<string>",
                "eventType": "<string>",
                "metadata": {},
                "createdAt": "2023-11-07T05:31:56Z",
                "updatedAt": "2023-11-07T05:31:56Z",
                "author": "<string>"
              }
            ],
            "customFields": [
              {
                "id": 123,
                "ownerId": 123,
                "definitionId": 123,
                "key": "<string>",
                "value": "<string>",
                "valueJson": "<unknown>"
              }
            ]
          },
          "requestedAt": "2023-11-07T05:31:56Z",
          "restockedAt": "2023-11-07T05:31:56Z"
        }
      ],
      "sequentialId": 123,
      "requestedAt": "2023-11-07T05:31:56Z",
      "returnMethod": {
        "trackingUrl": "<string>",
        "addressShopifyId": 123,
        "collectionDate": "2023-12-25"
      },
      "timelineEvents": [
        {
          "id": 123,
          "eventableId": 123,
          "eventableType": "<string>",
          "eventType": "<string>",
          "metadata": {},
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z",
          "author": "<string>"
        }
      ],
      "tags": [
        "<string>"
      ]
    }
  ],
  "nextPage": "<string>"
}
{
"error": "Rate limit exceeded. Retry after 42 seconds."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer<int32>

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50.

Required range: x <= 100
page
string

Cursor token to fetch next page of results.

Filter returns by formatted IDs and customer names

status
enum<string>

Filter return orders by status, can be a comma-separated list of statuses

Available options:
requested,
expected,
received,
in_progress,
completed,
cancelled

Response

A paged array of returns

data
object[]
nextPage
null | string