---
title: "Get contract"
method: GET
path: "/contracts/{idContract}"
tags: ["Contracts"]
---

# Get contract

`GET /contracts/{idContract}`

## Request

- Base URL: `https://api.toriihq.com/v1.0`
- URL: `https://api.toriihq.com/v1.0/contracts/{idContract}`
- Auth: API key in header `Authorization`

Returns a single contract.<br/><br/>Add `lineItems` to `fields` to include the contract's line items (products / SKUs on the order) in the response; they are not returned otherwise, and the list endpoint never returns them. Example: ```GET /contracts/123?fields=id,name,lineItems```<br/><br/>
<p><ul><li>Rate limit: 800 requests per minute</li></ul></p>

## Path parameters

- `idContract` integer, required

## Query parameters

- `fields` string

## Headers

- `x-api-version` '1.0' | '1.1'

## Response `200`

Get contract

- GetContract: Get contract
  - `contract` Contract
    - `id` integer: Unique identifier
    - `name` string
    - `status` string: Contract status

---

[API](https://skmtc.dev/toriihq/apis/torii-api-documentation.md) - [All operations](https://skmtc.dev/toriihq/apis/torii-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/toriihq/apis/torii-api-documentation/revisions/15fd1512591b?raw)
