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

# Invoice line items by contract

GET https://api.letsdeel.com/rest/contracts/{contract_id}/invoice-adjustments

Retrieves invoice line items (adjustments) associated with a given contract_id, with support for filtering by contract type, adjustment type, status, invoice, reporter, and submission date range.

 **Token scopes**: `invoice-adjustments:read`

Reference: https://developer.deel.com/api/embedded/ic-endpoints/invoice-adjustments/get-contract-invoice-adjustments

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

### Path parameters

- `contract_id` (string, required) — Deel contract id.

### Query parameters

- `contract_types` (list of enum, optional) — types of contracts to filter
  - Allowed values: `ongoing_time_based`, `milestones`, `time_based`, `pay_as_you_go_time_based`, `commission`, `payg_milestones`, `payg_tasks`, `eor`, `unknown`, `employee`, `global_payroll`, `shield_msa`, `hris_direct_employee`, `peo`
- `types` (list of enum, optional) — types of invoice adjustments to filter
  - Allowed values: `accrued_holiday`, `additional_fee`, `allowance`, `bonus`, `commission`, `deduction`, `deposit`, `deposit_refund`, `employer_cost`, `expense`, `health_allowance`, `health_benefit`, `health_insurance_fee`, `legal_fee`, `management_fee`, `milestone`, `offcycle`, `other`, `overtime`, `pension`, `pro_rata`, `setup_fee`, `severance`, `shield_service`, `signing_bonus`, `signing_bonus_employer_cost`, `refund`, `task`, `time_off`, `vat`, `withholding_tax`, `work`
- `statuses` (list of enum, optional) — statuses of invoice adjustment to filter
  - Allowed values: `approved`, `declined`, `not_payable`, `paid`, `pending`, `processing`
- `invoice_id` (string, optional) — ID of an existing invoice
- `reporter_id` (string, optional) — ID of an existing profile
- `date_from` (string, optional) — To get invoice adjustments submitted on or after given start date (inclusive). Short date in format ISO-8601 (YYYY-MM-DD). For example: 2022-12-31.
- `date_to` (string, optional) — To get invoice adjustments submitted before given end date (excludes records submitted on this date). Short date in format ISO-8601 (YYYY-MM-DD). For example: 2022-12-31.
- `limit` (string, optional) — Return a page of results with given number of records; NOTE: technically ALL query parameters are strings or array of strings
- `offset` (string, optional) — Return a page of results after given index of row; NOTE: technically ALL query parameters are strings or array of strings

## Response

### 200

Successful operation.

- `data` (list of ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItems, required)
- `page` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaPage, required) — Pagination metadata for the response.

## Errors

### 400 Bad Request Error

Bad Request - Validation error or invalid parameters

- `errors` (list of ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaErrorsItems, required) — Error messages
- `request` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaRequest, optional) — Error request details

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

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

## Types

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItems

- `id` (string, required, nullable) — Unique identifier of this invoice adjustment.
- `type` (enum, required) — Type of invoice adjustment.
  - Allowed values: `accrued_holiday`, `additional_fee`, `allowance`, `bonus`, `commission`, `deduction`, `deposit`, `deposit_refund`, `employer_cost`, `expense`, `health_allowance`, `health_benefit`, `health_insurance_fee`, `legal_fee`, `management_fee`, `milestone`, `offcycle`, `other`, `overtime`, `pension`, `pro_rata`, `setup_fee`, `severance`, `shield_service`, `signing_bonus`, `signing_bonus_employer_cost`, `refund`, `task`, `time_off`, `vat`, `withholding_tax`, `work`
- `status` (enum, required, nullable) — Current processing status of the invoice adjustment.
  - Allowed values: `approved`, `declined`, `not_payable`, `paid`, `pending`, `processing`
- `contract` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsContract, required) — Contract associated with this invoice adjustment.
- `quantity` (double, required, nullable) — Quantity used to calculate the total amount.
- `worksheet` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsWorksheet, required, nullable) — Breakdown of time worked across different units.
- `attachment` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsAttachment, required, nullable) — This object is used for linking file attachments to your records.
- `created_at` (string, required) — Timestamp when the adjustment was created (ISO-8601).
- `description` (string, required) — Human-readable explanation of the invoice adjustment.
- `reported_by` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsReportedBy, required) — User who reported the invoice adjustment.
- `reviewed_by` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsReviewedBy, required, nullable) — Reviewer information if the adjustment has been reviewed.
- `total_amount` (string, required) — Total monetary value of the invoice adjustment.
- `currency_code` (string, required) — ISO 4217 currency code used for the amount.
- `payment_cycle` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsPaymentCycle, required) — Payment cycle associated with this adjustment.
- `date_submitted` (string, required) — Timestamp when the adjustment was submitted for review (ISO-8601).
- `scale` (string, optional, nullable) — Predefined scale used to calculate the adjustment amount.
- `invoice_id` (double, optional, nullable) — Identifier of the generated invoice this adjustment belongs to.
- `custom_scale` (string, optional, nullable) — Custom scale label defined by the client.

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaPage

Pagination metadata for the response.

- `offset` (double, required) — Index of the first row in this page
- `total_rows` (double, required) — Total number of rows in the result set
- `items_per_page` (double, required) — Number of items per page

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaErrorsItems

- `message` (string, required) — Error response

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaRequest

Error request details

- `method` (string, optional) — Method of the API
- `status` (double, optional) — Status of API response

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

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsContract

Contract associated with this invoice adjustment.

- `id` (string, required) — Unique identifier of the contract.
- `type` (enum, required) — Type of a contract
  - Allowed values: `ongoing_time_based`, `milestones`, `time_based`, `pay_as_you_go_time_based`, `commission`, `payg_milestones`, `payg_tasks`, `eor`, `unknown`, `employee`, `global_payroll`, `shield_msa`, `hris_direct_employee`, `peo`
- `title` (string, required) — Human-readable title of the contract.

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsWorksheet

Breakdown of time worked across different units.

- `days` (double, required) — Number of days reported.
- `hours` (double, required) — Number of hours reported.
- `weeks` (double, required) — Number of weeks reported.
- `minutes` (double, required) — Number of minutes reported.

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsAttachment

This object is used for linking file attachments to your records.

- `key` (string, required) — You can call attachments end-point, get key and URL to upload your file.
- `filename` (string, required) — Original filename you used to upload using attachments end-point.

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsReportedBy

User who reported the invoice adjustment.

- `id` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsReportedById, required) — Unique identifier of the reporting user (string or integer).
- `full_name` (string, optional) — Full name of the user who reported the adjustment.

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsReviewedBy

Reviewer information if the adjustment has been reviewed.

- `id` (ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsReviewedById, required) — Unique identifier of the reviewer (string or integer).
- `remarks` (string, required) — Reviewer remarks or decision notes.
- `reviewed_at` (string, required) — Timestamp when the review occurred (ISO-8601).
- `full_name` (string, optional) — Full name of the reviewer.

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsPaymentCycle

Payment cycle associated with this adjustment.

- `end_date` (string, required, nullable) — End date of the payment cycle (ISO-8601).
- `start_date` (string, required, nullable) — Start date of the payment cycle (ISO-8601).

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsReportedById

Unique identifier of the reporting user (string or integer).

### ContractsContractIdInvoiceAdjustmentsGetResponsesContentApplicationJsonSchemaDataItemsReviewedById

Unique identifier of the reviewer (string or integer).

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "type": "bonus",
      "status": "approved",
      "contract": {
        "id": "contract_abc123",
        "type": "ongoing_time_based",
        "title": "Senior Backend Engineer"
      },
      "quantity": 8,
      "worksheet": {
        "days": 5,
        "hours": 40,
        "weeks": 1,
        "minutes": 0
      },
      "attachment": {
        "key": "attachments/receipt_123.pdf",
        "filename": "receipt.pdf"
      },
      "created_at": "2025-12-19T10:30:00Z",
      "description": "Performance bonus for September",
      "reported_by": {
        "id": "user_456",
        "full_name": "John Doe"
      },
      "reviewed_by": {
        "id": "admin_789",
        "remarks": "Approved after verification",
        "reviewed_at": "2025-12-19T11:00:00Z",
        "full_name": "Jane Smith"
      },
      "total_amount": "200.00",
      "currency_code": "USD",
      "payment_cycle": {
        "end_date": "2025-12-31T23:59:59Z",
        "start_date": "2025-12-01T00:00:00Z"
      },
      "date_submitted": "2025-12-18T09:15:00Z",
      "scale": "hourly",
      "invoice_id": 102938,
      "custom_scale": "night_shift"
    }
  ],
  "page": {
    "offset": 0,
    "total_rows": 10,
    "items_per_page": 10
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.letsdeel.com/rest/contracts/37nex2x/invoice-adjustments"

querystring = {"contract_types":"[\"ongoing_time_based\"]","date_from":"2022-12-31","date_to":"2022-12-31","invoice_id":"string","limit":"10","offset":"10","reporter_id":"string","statuses":"[\"approved\"]","types":"[\"bonus\"]"}

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

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

print(response.json())
```

```javascript
const url = 'https://api.letsdeel.com/rest/contracts/37nex2x/invoice-adjustments?contract_types=%5B%22ongoing_time_based%22%5D&date_from=2022-12-31&date_to=2022-12-31&invoice_id=string&limit=10&offset=10&reporter_id=string&statuses=%5B%22approved%22%5D&types=%5B%22bonus%22%5D';
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
package main

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

func main() {

	url := "https://api.letsdeel.com/rest/contracts/37nex2x/invoice-adjustments?contract_types=%5B%22ongoing_time_based%22%5D&date_from=2022-12-31&date_to=2022-12-31&invoice_id=string&limit=10&offset=10&reporter_id=string&statuses=%5B%22approved%22%5D&types=%5B%22bonus%22%5D"

	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
require 'uri'
require 'net/http'

url = URI("https://api.letsdeel.com/rest/contracts/37nex2x/invoice-adjustments?contract_types=%5B%22ongoing_time_based%22%5D&date_from=2022-12-31&date_to=2022-12-31&invoice_id=string&limit=10&offset=10&reporter_id=string&statuses=%5B%22approved%22%5D&types=%5B%22bonus%22%5D")

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
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.letsdeel.com/rest/contracts/37nex2x/invoice-adjustments?contract_types=%5B%22ongoing_time_based%22%5D&date_from=2022-12-31&date_to=2022-12-31&invoice_id=string&limit=10&offset=10&reporter_id=string&statuses=%5B%22approved%22%5D&types=%5B%22bonus%22%5D")
  .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/contracts/37nex2x/invoice-adjustments?contract_types=%5B%22ongoing_time_based%22%5D&date_from=2022-12-31&date_to=2022-12-31&invoice_id=string&limit=10&offset=10&reporter_id=string&statuses=%5B%22approved%22%5D&types=%5B%22bonus%22%5D', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.letsdeel.com/rest/contracts/37nex2x/invoice-adjustments?contract_types=%5B%22ongoing_time_based%22%5D&date_from=2022-12-31&date_to=2022-12-31&invoice_id=string&limit=10&offset=10&reporter_id=string&statuses=%5B%22approved%22%5D&types=%5B%22bonus%22%5D");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.letsdeel.com/rest/contracts/37nex2x/invoice-adjustments?contract_types=%5B%22ongoing_time_based%22%5D&date_from=2022-12-31&date_to=2022-12-31&invoice_id=string&limit=10&offset=10&reporter_id=string&statuses=%5B%22approved%22%5D&types=%5B%22bonus%22%5D")! 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()
```