Skip to content
Get started

List Receipts

GET/api/v2/public/orders/receipts

Goods receipts and their lines for all stores. receipt_type is required. Use from_id to page through them reliably.

Query ParametersExpand Collapse
receipt_type: number

The receipt type (required).

formatint32
from_id: optional number

Filter from this receipt ID.

formatint64
is_submitted: optional boolean

Filter by submission status.

last_modified_date: optional string

Filter by last modified date.

formatdate-time
order_number: optional string

Filter by order number.

page_size: optional number

Number of receipts per page.

formatint32
page_start: optional number

Page number, starting at 1.

formatint32
store_number: optional string

Filter by store number.

to_id: optional number

Filter up to this receipt ID.

formatint64
ReturnsExpand Collapse
page_size: number

Maximum number of items returned per page.

formatint32
page_start: number

Current page number (1-based).

formatint32
total_count: number

Total number of records matching the query across all pages.

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

Collection of items for the current page.

datetime_created: string

When the order was created.

formatdate-time
datetime_expected: string

When the goods were expected to arrive.

formatdate-time
import_id: number

Identifier of the import the order arrived in.

formatint64
order_type_id: number

Type code for the order.

formatint32
updated_on: string

When the receipt was last changed.

formatdate-time
order_number: optional string

Order the goods were received against.

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

The lines on this receipt.

id: number

Identifier of the receipt line.

formatint64
purchase_price: number

Purchase price at the time of receipt.

formatdouble
received_quantity: number

Quantity actually received. A difference from shipped_quantity is a discrepancy.

formatdouble
shipped_quantity: number

Quantity the supplier said was sent.

formatdouble
store_products_price: number

Store price at the time of receipt.

formatdouble
updated_on: string

When the receipt was last changed.

formatdate-time
barcode: optional string

Barcode for the product.

category_code: optional string

Category the product belongs to.

container_barcode: optional string

Barcode of the container the goods arrived in.

description: optional string

Product name on the line.

group_code: optional string

Group the product is ordered in.

line_number: optional number

Position of the line within the receipt.

formatint32
product_number: optional string

Product on the line.

status: optional string

Current status of the receipt.

store_gln: optional string

Global Location Number of the store.

store_number: optional string

Store the goods were received in.

supplier_code: optional string

Supplier the goods came from. Matches supplier_code on the suppliers endpoint.

supplier_name: optional string

Supplier name.

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.

formatint32
previous_page: optional number

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

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

List Receipts

curl https://api.colleqtive.net/api/v2/public/orders/receipts \
    -H "Authorization: $COLLEQTIVE_BEARER_TOKEN"
{
  "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"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}
Returns Examples
{
  "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"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}