> This page is for API, version 2026-01-01 (Stable) (default).
> For other versions, use one of these documentation indexes:
> - 2026-01-01 (Stable) (default): https://developer.deel.com/api/stable/llms.txt

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

# List case invoices

GET https://api.letsdeel.com/rest/immigration/invoices

Retrieves the invoices issued to the organization for a case, earliest due first. Requires the case_id returned from the List cases endpoint.

 **Token scopes**: `immigration:read`

 **Beta**: this version requires the `X-Beta: true` request header and its contract may change before it is promoted to stable. It is scheduled to become stable on 2027-01-14.

Reference: https://developer.deel.com/api/reference/endpoints/immigration/list-case-invoices-v-2026-10-14

## Authentication

- `Authorization` header (bearer token, required) — ## Authentication The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail. ```curl curl -X GET 'https://api.letsdeel.com/rest/v2/contracts' \ -H 'Authorization: Bearer YOUR-TOKEN-HERE' ``` [Learn more about authentication](/api/authentication)
- `Authorization` header (bearer token, required) — Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/

## Servers

- `https://api.letsdeel.com/rest` (Production, default)
- `https://api-staging.letsdeel.com/rest` (Demo)

## Request

### Query parameters

- `case_id` (string, required) — The unique identifier of the case whose invoices should be listed.
- `cursor` (string, optional) — Opaque pagination cursor returned as next_cursor from a previous response. Omit to fetch the first page.
- `limit` (integer, optional, default: 20) — Maximum number of invoices to return. Capped at 100.

### Headers

- `X-Beta` (enum, required, default: true) — Opts in to the beta version of this endpoint. Must be `true`.
  - Allowed values: `true`

## Response

### 200

Successful response with the case's invoices.

- `data` (list of ImmigrationInvoicesGetResponsesContentApplicationJsonSchemaDataItems, required)
- `has_more` (boolean, required) — Whether more items are available beyond this page.
- `next_cursor` (string, required, nullable) — Cursor to pass as cursor to fetch the next page. Null when there is no next page.
- `total_count` (integer, required, nullable) — Total number of invoices issued to the organization for the case.

## Errors

### 400 Bad Request Error

Operation failed.

- `errors` (list of ImmigrationInvoicesGetResponsesContentApplicationJsonSchemaErrorsItems, optional)

### 401 Unauthorized Error

Operation failed.

- `request` (ApiErrorRequest, optional)
- `errors` (list of ApiError, optional)

### 403 Forbidden Error

Operation failed.

- `request` (ApiErrorRequest, optional)
- `errors` (list of ApiError, optional)

### 404 Not Found Error

Operation failed.

- `request` (ApiErrorRequest, optional)
- `errors` (list of ApiError, optional)

### 500 Internal Server Error

Operation failed.

- `errors` (list of ImmigrationInvoicesGetResponsesContentApplicationJsonSchemaErrorsItems, optional)

## Types

### ImmigrationInvoicesGetResponsesContentApplicationJsonSchemaDataItems

- `id` (string, required) — The public identifier of the invoice, as shown in the Deel platform.
- `amount` (double, required) — Invoiced amount in the invoice currency.
- `status` (enum, required) — Payment status of the invoice.
  - Allowed values: `PENDING`, `PROCESSING`, `PREPROCESSING`, `PAID`, `CANCELLED`, `OPEN`, `AWAITING_PAYMENT`, `FAILED`, `SKIPPED`, `UNPAYABLE`, `REFUNDED`, `PROCESSED`, `CREDITED`
- `is_paid` (boolean, required) — Whether the invoice has been settled.
- `paid_at` (string, required, nullable) — UTC timestamp when the invoice was paid. Null while unpaid.
- `currency` (string, required) — ISO 4217 currency code of the invoiced amount.
- `due_date` (string, required) — UTC timestamp by which the invoice is due.
- `quote_id` (string, required) — The unique identifier of the quote the invoice was issued for.
- `issued_at` (string, required) — UTC timestamp when the invoice was issued.

### ImmigrationInvoicesGetResponsesContentApplicationJsonSchemaErrorsItems

- `code` (string, optional) — The error code.
- `message` (string, optional) — Human-readable explanation of the error.

### ApiErrorRequest

- `method` (string, optional) — The HTTP method of the failed request
- `url` (string, optional) — The relative URL of the failed request
- `status` (double, optional) — The status code of the response
- `api_req_id` (string, optional) — The request ID of the failed request
- `docs` (string, optional) — A link to the official documentation for the requested endpoint resource
- `source` (string, optional) — The source handler which produced the returned error
- `code` (double, optional) — The code of the source handler which produced the returned error

### ApiError

- `message` (string, optional) — A description of the returned error
- `path` (string, optional) — The JSON path where input validation failed

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "g3mxzqp",
      "amount": 1500,
      "status": "PAID",
      "is_paid": true,
      "paid_at": "2026-10-20T08:30:00Z",
      "currency": "USD",
      "due_date": "2026-10-30T00:00:00Z",
      "quote_id": "4185fb2c-0db6-47bc-bdf1-2be0644ab980",
      "issued_at": "2026-10-13T10:00:00Z"
    }
  ],
  "has_more": false,
  "next_cursor": "eyJvZmZzZXQiOjIwfQ",
  "total_count": 2
}
```

**SDK Code**

```python
import requests

url = "https://api.letsdeel.com/rest/immigration/invoices"

querystring = {"case_id":"8e4a849f-10e0-4052-8b58-ca75d9fc0e88","cursor":"eyJvZmZzZXQiOjIwfQ","limit":"20"}

headers = {
    "X-Beta": "true",
    "Authorization": "Bearer <token>"
}

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

print(response.json())
```

```javascript
const url = 'https://api.letsdeel.com/rest/immigration/invoices?case_id=8e4a849f-10e0-4052-8b58-ca75d9fc0e88&cursor=eyJvZmZzZXQiOjIwfQ&limit=20';
const options = {method: 'GET', headers: {'X-Beta': 'true', Authorization: 'Bearer <token>'}};

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

```go
package main

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

func main() {

	url := "https://api.letsdeel.com/rest/immigration/invoices?case_id=8e4a849f-10e0-4052-8b58-ca75d9fc0e88&cursor=eyJvZmZzZXQiOjIwfQ&limit=20"

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

	req.Header.Add("X-Beta", "true")
	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
require 'uri'
require 'net/http'

url = URI("https://api.letsdeel.com/rest/immigration/invoices?case_id=8e4a849f-10e0-4052-8b58-ca75d9fc0e88&cursor=eyJvZmZzZXQiOjIwfQ&limit=20")

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

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

response = http.request(request)
puts response.read_body
```

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

HttpResponse<String> response = Unirest.get("https://api.letsdeel.com/rest/immigration/invoices?case_id=8e4a849f-10e0-4052-8b58-ca75d9fc0e88&cursor=eyJvZmZzZXQiOjIwfQ&limit=20")
  .header("X-Beta", "true")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.letsdeel.com/rest/immigration/invoices?case_id=8e4a849f-10e0-4052-8b58-ca75d9fc0e88&cursor=eyJvZmZzZXQiOjIwfQ&limit=20', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'X-Beta' => 'true',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.letsdeel.com/rest/immigration/invoices?case_id=8e4a849f-10e0-4052-8b58-ca75d9fc0e88&cursor=eyJvZmZzZXQiOjIwfQ&limit=20");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Beta", "true");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-Beta": "true",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.letsdeel.com/rest/immigration/invoices?case_id=8e4a849f-10e0-4052-8b58-ca75d9fc0e88&cursor=eyJvZmZzZXQiOjIwfQ&limit=20")! 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()
```