> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.shipbob.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.shipbob.com/_mcp/server.

# Get Return Orders


GET https://api.shipbob.com/2025-07/return

Reference: https://developer.shipbob.com/2025-07/api/returns/get-return-orders

## Authentication

- `Authorization` header (bearer token, required) — Authentication using Personal Access Token (PAT) token
- `Authorization` header (bearer token, required) — OAuth2 authentication using JWT tokens

## Servers

- `https://api.shipbob.com` (https://api.shipbob.com, default)
- `https://sandbox-api.shipbob.com` (https://sandbox-api.shipbob.com)

## Request

### Query parameters

- `Ids` (string, optional) — The IDs of the returns to fetch. Accepts a comma-separated list of return IDs (e.g., "123,456,789").
- `ReferenceIds` (string, optional) — Comma-separated list of return reference IDs (RMA numbers) to filter by.
- `Status` (string, optional) — Comma-separated list of return statuses to filter by (e.g., 'AwaitingArrival', 'Arrived', 'Processing', 'Completed', 'Cancelled').
- `FulfillmentCenterIds` (string, optional) — Comma-separated list of fulfillment center IDs to filter by.
- `TrackingNumbers` (string, optional) — Comma-separated list of tracking numbers to filter by.
- `OriginalShipmentIds` (string, optional) — Comma-separated list of original shipment IDs to filter by.
- `InventoryIds` (string, optional) — Comma-separated list of inventory IDs to filter by.
- `StartDate` (datetime, optional) — Filter returns created on or after this date (ISO 8601 format).
- `EndDate` (datetime, optional) — Filter returns created on or before this date (ISO 8601 format).
- `ReturnTypes` (string, optional) — Comma-separated list of return types to filter by (e.g., 'Regular', 'ReturnToSender').
- `ReturnActions` (string, optional) — Comma-separated list of return actions to filter by (e.g., 'Restock', 'Quarantine', 'Dispose').
- `StoreOrderIds` (string, optional) — Comma-separated list of store order IDs to filter by.
- `Sortby` (string, optional) — Field to sort results by.
- `CompletedStartDate` (datetime, optional) — Filter returns completed on or after this date (ISO 8601 format).
- `CompletedEndDate` (datetime, optional) — Filter returns completed on or before this date (ISO 8601 format).
- `Cursor` (integer, optional)
- `Limit` (string, optional)
- `SortOrder` (string, optional)

### Headers

- `shipbob_channel_id` (string, optional) — Channel Id for operation

## Response

### 200

Success

- `first` (string, optional, nullable)
- `items` (list of object, optional, nullable)
  - `arrived_date` (datetime, optional, nullable)
  - `awaiting_arrival_date` (datetime, optional, nullable)
  - `cancelled_date` (datetime, optional, nullable)
  - `channel` (object, optional)
    - `id` (integer, optional)
    - `name` (string, optional, nullable)
  - `completed_date` (datetime, optional, nullable)
  - `customer_name` (string, optional, nullable)
  - `fulfillment_center` (object, optional)
    - `id` (integer, optional)
    - `name` (string, optional, nullable)
  - `id` (integer, optional)
  - `insert_date` (datetime, optional)
  - `inventory` (list of object, optional, nullable)
    - `action_requested` (object, optional)
      - `action` (string, optional, nullable)
      - `action_type` (string, optional, nullable)
      - `instructions` (string, optional, nullable)
    - `action_taken` (list of object, optional, nullable)
      - `action` (string, optional, nullable)
      - `action_reason` (string, optional, nullable)
      - `image_url` (string, optional, nullable)
      - `quantity_processed` (integer, optional)
    - `id` (integer, optional)
    - `lot_information` (object, optional)
      - `expiration` (datetime, optional, nullable)
      - `minimumShelfLife` (integer, optional, nullable)
      - `number` (string, optional, nullable)
    - `name` (string, optional, nullable)
    - `quantity` (integer, optional)
    - `sku` (string, optional, nullable)
  - `invoice` (object, optional)
    - `amount` (double, optional, nullable)
    - `currency_code` (string, optional, nullable)
  - `original_shipment_id` (integer, optional, nullable)
  - `processing_date` (datetime, optional, nullable)
  - `reference_id` (string, optional, nullable)
  - `return_type` (string, optional, nullable)
  - `shipment_tracking_number` (string, optional, nullable)
  - `status` (string, optional, nullable)
  - `status_history` (list of object, optional, nullable)
    - `status` (string, optional, nullable)
    - `timestamp` (datetime, optional)
  - `store_order_id` (string, optional, nullable)
  - `tracking_number` (string, optional, nullable)
  - `transactions` (list of object, optional, nullable)
    - `amount` (double, optional)
    - `transaction_type` (string, optional, nullable)
- `last` (string, optional, nullable)
- `next` (string, optional, nullable)
- `prev` (string, optional, nullable)

## Errors

### 400 Bad Request Error

Bad Request

- `detail` (string, optional, nullable)
- `instance` (string, optional, nullable)
- `status` (integer, optional, nullable)
- `title` (string, optional, nullable)
- `type` (string, optional, nullable)

### 401 Unauthorized Error

Authorization missing or invalid

- `any`

### 403 Forbidden Error

The provided credentials are not authorized to access this resource

- `any`

### 404 Not Found Error

Not Found

- `detail` (string, optional, nullable)
- `instance` (string, optional, nullable)
- `status` (integer, optional, nullable)
- `title` (string, optional, nullable)
- `type` (string, optional, nullable)

## Examples

**Response**

```json
{
  "first": "http://example.com",
  "items": [
    {
      "arrived_date": "2019-08-24T14:15:22Z",
      "awaiting_arrival_date": "2019-08-24T14:15:22Z",
      "cancelled_date": "2019-08-24T14:15:22Z",
      "channel": {
        "id": 0,
        "name": "string"
      },
      "completed_date": "2019-08-24T14:15:22Z",
      "customer_name": "string",
      "fulfillment_center": {
        "id": 0,
        "name": "string"
      },
      "id": 0,
      "insert_date": "2019-08-24T14:15:22Z",
      "inventory": [
        {
          "action_requested": {
            "action": "string",
            "action_type": "string",
            "instructions": "string"
          },
          "action_taken": [
            {
              "action": "string",
              "action_reason": "string",
              "image_url": "http://example.com",
              "quantity_processed": 0
            }
          ],
          "id": 0,
          "lot_information": {
            "expiration": "2019-08-24T14:15:22Z",
            "minimumShelfLife": 0,
            "number": "string"
          },
          "name": "string",
          "quantity": 0,
          "sku": "string"
        }
      ],
      "invoice": {
        "amount": 0.1,
        "currency_code": "string"
      },
      "original_shipment_id": 0,
      "processing_date": "2019-08-24T14:15:22Z",
      "reference_id": "string",
      "return_type": "string",
      "shipment_tracking_number": "string",
      "status": "string",
      "status_history": [
        {
          "status": "string",
          "timestamp": "2019-08-24T14:15:22Z"
        }
      ],
      "store_order_id": "string",
      "tracking_number": "string",
      "transactions": [
        {
          "amount": 0.1,
          "transaction_type": "string"
        }
      ]
    }
  ],
  "last": "http://example.com",
  "next": "http://example.com",
  "prev": "http://example.com"
}
```

**SDK Code**

```python Returns_getReturnOrders_example
import requests

url = "https://api.shipbob.com/2025-07/return"

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

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

print(response.json())
```

```javascript Returns_getReturnOrders_example
const url = 'https://api.shipbob.com/2025-07/return';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Returns_getReturnOrders_example
package main

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

func main() {

	url := "https://api.shipbob.com/2025-07/return"

	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(res)
	fmt.Println(string(body))

}
```

```ruby Returns_getReturnOrders_example
require 'uri'
require 'net/http'

url = URI("https://api.shipbob.com/2025-07/return")

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
```

```java Returns_getReturnOrders_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.shipbob.com/2025-07/return")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Returns_getReturnOrders_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.shipbob.com/2025-07/return', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Returns_getReturnOrders_example
using RestSharp;

var client = new RestClient("https://api.shipbob.com/2025-07/return");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Returns_getReturnOrders_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.shipbob.com/2025-07/return")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```