## Retrieves a paginated list of receipt orders with receipt lines.

**get** `/api/v2/public/orders/receipts`

Retrieves a paginated list of receipt orders with receipt lines.

### Query Parameters

- `receipt_type: number`

  The receipt type (required).

- `from_id: optional number`

  Filter from this receipt ID.

- `is_submitted: optional boolean`

  Filter by submission status.

- `last_modified_date: optional string`

  Filter by last modified date.

- `order_number: optional string`

  Filter by order number.

- `page_size: optional number`

- `page_start: optional number`

- `store_number: optional string`

  Filter by store number.

- `to_id: optional number`

  Filter up to this receipt ID.

### Returns

- `page_size: number`

  Maximum number of items returned per page.

- `page_start: number`

  Current page number (1-based).

- `total_count: number`

  Total number of records matching the query across all pages.

- `list: optional array of object { datetime_created, datetime_expected, import_id, 9 more }`

  Collection of items for the current page.

  - `datetime_created: string`

  - `datetime_expected: string`

  - `import_id: number`

  - `order_type_id: number`

  - `updated_on: string`

  - `order_number: optional string`

  - `receipt_lines: optional array of object { id, purchase_price, received_quantity, 10 more }`

    - `id: number`

    - `purchase_price: number`

    - `received_quantity: number`

    - `shipped_quantity: number`

    - `store_products_price: number`

    - `updated_on: string`

    - `barcode: optional string`

    - `category_code: optional string`

    - `container_barcode: optional string`

    - `description: optional string`

    - `group_code: optional string`

    - `line_number: optional number`

    - `product_number: optional string`

  - `status: optional string`

  - `store_gln: optional string`

  - `store_number: optional string`

  - `supplier_code: optional string`

  - `supplier_name: optional string`

- `list_body: optional map[unknown]`

  Additional body-level metadata for the list.

- `list_filters: optional map[array of string]`

  Active filter criteria applied to the result set, keyed by field name.

- `next_page: optional number`

  Next page number, or null when on the last page.

- `previous_page: optional number`

  Previous page number, or null when on the first page.

- `project_last_modified_date: optional string`

  Last modified date/time of the project.

- `scroll_id: optional string`

  Opaque scroll identifier for deep-pagination scenarios.

- `server_time: optional string`

  Server UTC date/time when the response was generated.

- `sort_column: optional string`

  Column name the results are sorted by.

- `sort_order: optional string`

  Sort direction (asc or desc).

- `task_last_modified_date: optional string`

  Last modified date/time of the task.

### Example

```http
curl https://api.colleqtive.net/api/v2/public/orders/receipts \
    -H "Authorization: $COLLEQTIVE_BEARER_TOKEN"
```

#### Response

```json
{
  "page_size": 0,
  "page_start": 0,
  "total_count": 0,
  "list": [
    {
      "datetime_created": "2019-12-27T18:11:19.117Z",
      "datetime_expected": "2019-12-27T18:11:19.117Z",
      "import_id": 0,
      "order_type_id": 0,
      "updated_on": "2019-12-27T18:11:19.117Z",
      "order_number": "order_number",
      "receipt_lines": [
        {
          "id": 0,
          "purchase_price": 0,
          "received_quantity": 0,
          "shipped_quantity": 0,
          "store_products_price": 0,
          "updated_on": "2019-12-27T18:11:19.117Z",
          "barcode": "barcode",
          "category_code": "category_code",
          "container_barcode": "container_barcode",
          "description": "description",
          "group_code": "group_code",
          "line_number": 0,
          "product_number": "product_number"
        }
      ],
      "status": "status",
      "store_gln": "store_gln",
      "store_number": "store_number",
      "supplier_code": "supplier_code",
      "supplier_name": "supplier_name"
    }
  ],
  "list_body": {
    "foo": "bar"
  },
  "list_filters": {
    "foo": [
      "string"
    ]
  },
  "next_page": 0,
  "previous_page": 0,
  "project_last_modified_date": "project_last_modified_date",
  "scroll_id": "scroll_id",
  "server_time": "server_time",
  "sort_column": "sort_column",
  "sort_order": "sort_order",
  "task_last_modified_date": "task_last_modified_date"
}
```
