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

# Fetch all Quality Controls

GET https://api.rechain.co/public/v1/quality_controls

Fetch all Quality Controls

Reference: https://dev.rechain.co/api-reference/quality-control/fetch-all-quality-controls

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `page` (integer, optional, default: 1) — Page number
- `search_query` (string, optional) — Search query
- `filters` (list of QualityControlsGetParametersFiltersSchemaItems, optional) — Filters

## Response

### 200

Successful operation

- `list of QualityControlResponse`

## Errors

### 405 Method Not Allowed Error

Invalid input

- `any`

## Types

### QualityControlsGetParametersFiltersSchemaItems

- `productCategory` (list of string, optional)
- `result` (list of string, optional) — passed, failed, pending
- `suppliers` (list of integer, optional)

### QualityControlResponse

- `acknowledgedDefectsIdentified` (boolean, optional)
- `actualInspectionDate` (datetime, optional)
- `approved` (boolean, optional)
- `company` (QualityControlResponseCompany, optional)
- `companyId` (string, optional)
- `controlCheckin` (QualityControlResponseControlCheckin, optional)
- `controlChecks` (list of QualityControlResponseControlChecksItems, optional)
- `cooperationLevel` (string, optional)
- `createdAt` (datetime, optional)
- `dueDate` (datetime, optional)
- `enableQcCheckin` (boolean, optional)
- `finalResult` (enum, optional) — Quality control final result, can be any of \{ pending: 0, passed: 1, failed: 2 }
  - Allowed values: `0`, `1`, `2`
- `fixedCount` (integer, optional)
- `formVersion` (string, optional)
- `id` (string, optional)
- `inspectionDate` (datetime, optional)
- `inspectionLevel` (string, optional)
- `inspector` (QualityControlResponseInspector, optional)
- `inspectorId` (string, optional)
- `milestoneId` (string, optional)
- `milestoneName` (string, optional)
- `orderId` (string, optional)
- `orderNumber` (string, optional)
- `orderProducts` (list of QualityControlResponseOrderProductsItems, optional)
- `orderReference` (string, optional)
- `orderUuid` (string, optional)
- `orders` (list of QualityControlResponseOrdersItems, optional)
- `product` (QualityControlResponseProduct, optional)
- `productId` (string, optional)
- `productName` (string, optional)
- `qualityControlValues` (list of QualityControlResponseQualityControlValuesItems, optional)
- `quantityToControl` (integer, optional)
- `reportFileUrl` (string, optional)
- `result` (string, optional)
- `sizes` (list of string, optional)
- `status` (enum, optional) — Quality control status, can be any of \{ draft: 0, requested: 1, started: 2, completed: 3 }
  - Allowed values: `0`, `1`, `2`, `3`
- `supplier` (QualityControlResponseSupplier, optional)
- `supplierId` (integer, optional)
- `token` (string, optional)
- `userId` (string, optional)
- `uuid` (string, optional)
- `viewHistory` (map from string to any, optional)
- `willReplaceDefects` (boolean, optional)

### QualityControlResponseCompany

- `id` (string, optional)
- `name` (string, optional)
- `logoUrl` (string, optional)

### QualityControlResponseControlCheckin

- `id` (string, optional)
- `createdAt` (datetime, optional)
- `latitude` (double, optional)
- `longitude` (double, optional)
- `inspectorPhotoUrl` (string, optional)

### QualityControlResponseControlChecksItems

- `id` (string, optional)
- `name` (string, optional)
- `names` (map from string to any, optional)
- `icon` (string, optional)
- `createdByRechain` (boolean, optional)
- `formFields` (map from string to any, optional)
- `statuses` (map from string to any, optional)
- `description` (string, optional)
- `descriptions` (map from string to any, optional)
- `position` (integer, optional)
- `qualityCheckId` (string, optional)
- `settings` (map from string to any, optional)
- `results` (map from string to any, optional)
- `status` (string, optional)
- `approval` (map from string to any, optional)
- `controlCheckPhotos` (list of QualityControlResponseControlChecksItemsControlCheckPhotosItems, optional)

### QualityControlResponseInspector

- `fullName` (string, optional)

### QualityControlResponseOrderProductsItems

- `controlVariantId` (string, optional)
- `id` (string, optional)
- `variantId` (string, optional)
- `name` (string, optional)
- `quantity` (integer, optional)
- `sizesQuantity` (map from string to any, optional)
- `quantityToControl` (integer, optional)

### QualityControlResponseOrdersItems

- `id` (string, optional)
- `exFactoryDate` (datetime, optional)
- `shippingMethod` (string, optional)
- `createdAt` (datetime, optional)
- `origin` (string, optional)

### QualityControlResponseProduct

- `id` (string, optional)
- `companyId` (string, optional)
- `name` (string, optional)
- `reference` (string, optional)
- `dimensionsUnit` (string, optional)

### QualityControlResponseQualityControlValuesItems

- `id` (string, optional)
- `content` (string, optional)
- `qualityControlFieldId` (string, optional)

### QualityControlResponseSupplier

- `id` (integer, optional)
- `name` (string, optional)
- `address` (string, optional)
- `country` (string, optional)
- `contact` (string, optional)

### QualityControlResponseControlChecksItemsControlCheckPhotosItems

- `id` (string, optional)
- `createdAt` (datetime, optional)
- `fileUrl` (string, optional)
- `comment` (string, optional)
- `rotationAngle` (double, optional)

## Examples

**Response**

```json
[
  {
    "acknowledgedDefectsIdentified": true,
    "actualInspectionDate": "2024-01-15T09:30:00Z",
    "approved": true,
    "company": {
      "id": "string",
      "name": "string",
      "logoUrl": "string"
    },
    "companyId": "123e4567-e89b-12d3-a456-426614174000",
    "controlCheckin": {
      "id": "string",
      "createdAt": "2024-01-15T09:30:00Z",
      "latitude": 1.1,
      "longitude": 1.1,
      "inspectorPhotoUrl": "string"
    },
    "controlChecks": [
      {
        "id": "string",
        "name": "string",
        "names": {},
        "icon": "string",
        "createdByRechain": true,
        "formFields": {},
        "statuses": {},
        "description": "string",
        "descriptions": {},
        "position": 1,
        "qualityCheckId": "string",
        "settings": {},
        "results": {},
        "status": "string",
        "approval": {},
        "controlCheckPhotos": [
          {
            "id": "string",
            "createdAt": "2024-01-15T09:30:00Z",
            "fileUrl": "string",
            "comment": "string",
            "rotationAngle": 1.1
          }
        ]
      }
    ],
    "cooperationLevel": "string",
    "createdAt": "2024-01-15T09:30:00Z",
    "dueDate": "2024-01-15T09:30:00Z",
    "enableQcCheckin": true,
    "finalResult": 1,
    "fixedCount": 0,
    "formVersion": "string",
    "id": "string",
    "inspectionDate": "2024-09-04T10:15:30Z",
    "inspectionLevel": "AQL 1.5",
    "inspector": {
      "fullName": "string"
    },
    "inspectorId": "string",
    "milestoneId": "string",
    "milestoneName": "string",
    "orderId": "string",
    "orderNumber": "4655-2027781",
    "orderProducts": [
      {
        "controlVariantId": "string",
        "id": "string",
        "variantId": "string",
        "name": "string",
        "quantity": 1,
        "sizesQuantity": {},
        "quantityToControl": 1
      }
    ],
    "orderReference": "string",
    "orderUuid": "string",
    "orders": [
      {
        "id": "string",
        "exFactoryDate": "2024-01-15T09:30:00Z",
        "shippingMethod": "string",
        "createdAt": "2024-01-15T09:30:00Z",
        "origin": "string"
      }
    ],
    "product": {
      "id": "string",
      "companyId": "string",
      "name": "string",
      "reference": "string",
      "dimensionsUnit": "string"
    },
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "productName": "string",
    "qualityControlValues": [
      {
        "id": "string",
        "content": "string",
        "qualityControlFieldId": "string"
      }
    ],
    "quantityToControl": 1,
    "reportFileUrl": "string",
    "result": "string",
    "sizes": [
      "LG"
    ],
    "status": 1,
    "supplier": {
      "id": 1,
      "name": "string",
      "address": "string",
      "country": "string",
      "contact": "string"
    },
    "supplierId": 120,
    "token": "string",
    "userId": "123e4567-e89b-12d3-a456-426614174000",
    "uuid": "string",
    "viewHistory": {},
    "willReplaceDefects": true
  }
]
```

**SDK Code**

```python
import requests

url = "https://api.rechain.co/public/v1/quality_controls"

querystring = {"filters":"[{\"productCategory\":[\"e605430e-9c2d-4392-b8ff-c6b682866a7e\"],\"result\":[\"passed\"],\"suppliers\":[540]}]","page":"1","search_query":"T-Shirt (Demo)"}

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

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

print(response.json())
```

```javascript
const url = 'https://api.rechain.co/public/v1/quality_controls?filters=%5B%7B%22productCategory%22%3A%5B%22e605430e-9c2d-4392-b8ff-c6b682866a7e%22%5D%2C%22result%22%3A%5B%22passed%22%5D%2C%22suppliers%22%3A%5B540%5D%7D%5D&page=1&search_query=T-Shirt+%28Demo%29';
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.rechain.co/public/v1/quality_controls?filters=%5B%7B%22productCategory%22%3A%5B%22e605430e-9c2d-4392-b8ff-c6b682866a7e%22%5D%2C%22result%22%3A%5B%22passed%22%5D%2C%22suppliers%22%3A%5B540%5D%7D%5D&page=1&search_query=T-Shirt+%28Demo%29"

	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.rechain.co/public/v1/quality_controls?filters=%5B%7B%22productCategory%22%3A%5B%22e605430e-9c2d-4392-b8ff-c6b682866a7e%22%5D%2C%22result%22%3A%5B%22passed%22%5D%2C%22suppliers%22%3A%5B540%5D%7D%5D&page=1&search_query=T-Shirt+%28Demo%29")

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.rechain.co/public/v1/quality_controls?filters=%5B%7B%22productCategory%22%3A%5B%22e605430e-9c2d-4392-b8ff-c6b682866a7e%22%5D%2C%22result%22%3A%5B%22passed%22%5D%2C%22suppliers%22%3A%5B540%5D%7D%5D&page=1&search_query=T-Shirt+%28Demo%29")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.rechain.co/public/v1/quality_controls?filters=%5B%7B%22productCategory%22%3A%5B%22e605430e-9c2d-4392-b8ff-c6b682866a7e%22%5D%2C%22result%22%3A%5B%22passed%22%5D%2C%22suppliers%22%3A%5B540%5D%7D%5D&page=1&search_query=T-Shirt+%28Demo%29', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.rechain.co/public/v1/quality_controls?filters=%5B%7B%22productCategory%22%3A%5B%22e605430e-9c2d-4392-b8ff-c6b682866a7e%22%5D%2C%22result%22%3A%5B%22passed%22%5D%2C%22suppliers%22%3A%5B540%5D%7D%5D&page=1&search_query=T-Shirt+%28Demo%29");
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.rechain.co/public/v1/quality_controls?filters=%5B%7B%22productCategory%22%3A%5B%22e605430e-9c2d-4392-b8ff-c6b682866a7e%22%5D%2C%22result%22%3A%5B%22passed%22%5D%2C%22suppliers%22%3A%5B540%5D%7D%5D&page=1&search_query=T-Shirt+%28Demo%29")! 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()
```