Skip to content

Receipts

The Receipts entity stores transaction data for sales, including totals, customer links, and related fiscal information.

Fields

FieldTypeDescription
idIntegerUnique identifier (Primary Key).
numberStringReceipt document number.
dateDateTimeTransaction date and time.
totalAmountFloatTotal amount.
paidAmountFloatAmount paid.
fullAmountFloatFull amount before discounts.
totalEntryPriceFloatTotal cost price of products.
customerRelationRelation to the Customers who made the purchase.
conveniqRelationRelation to the Conveniqs device.
fiscalServiceStringType of fiscal service used.
paymentServiceStringType of payment service used.
hasDebtBooleanFlag indicating if the receipt has unpaid debt.
isTestingBooleanFlag for test transactions.
frontalPhotosFile[]Collection of photos related to the transaction.
createdAtDateTimeMetadata: Creation timestamp.
updatedAtDateTimeMetadata: Last update timestamp.

Get List of Receipts

Fetch a list of receipts with filters (e.g., by date or conveniq).

Endpoint: POST /core/data/Receipts/select

Example Request:

json
{
  "fields": {
    "id": true,
    "number": true,
    "totalAmount": true,
    "date": true,
    "customer": { "id": true, "name": true }
  },
  "conditions": {
    "operator": "and",
    "filters": [
      {
        "field": "date",
        "comparator": ">",
        "value": "2025-01-01T00:00:00Z"
      }
    ]
  },
  "orderBy": [
    {
      "field": "date",
      "order": "desc"
    }
  ],
  "limit": 50,
  "offset": 0
}

Get Single Receipt

Retrieve all details for a specific receipt by ID.

Endpoint: POST /core/data/Receipts/select

Example Request:

json
{
  "fields": {
    "id": true,
    "number": true,
    "fullAmount": true,
    "paidAmount": true,
    "date": true,
    "frontalPhotos": { "id": true, "fileName": true }
  },
  "conditions": {
    "filters": [
      {
        "field": "id",
        "comparator": "=",
        "value": 2001
      }
    ]
  },
  "limit": 1
}

Receipt Products (Table Part)

The ReceiptsProducts entity stores individual line items for a specific receipt.

Table Part Fields

FieldTypeDescription
idIntegerUnique identifier.
ownerRelationLink to the parent Receipt.
productRelationLink to the Products entity.
quantityFloatQuantity purchased.
priceFloatPrice per unit.
amountFloatTotal line amount.
fullAmountFloatFull amount before discount.
discountFloatApplied discount.
fullDiscountFloatTotal discount for the line.
entryPriceFloatPurchase price per unit.
totalEntryPriceFloatTotal cost price for the line.

Get Products for a Receipt

To fetch all products belonging to a specific receipt, filter by the owner.id field.

Endpoint: POST /core/data/ReceiptsProducts/select

Example Request:

json
{
  "fields": {
    "id": true,
    "product": { "id": true, "name": true, "barcode": true },
    "quantity": true,
    "price": true,
    "amount": true
  },
  "conditions": {
    "operator": "and",
    "filters": [
      {
        "field": "owner.id",
        "comparator": "=",
        "value": 2001 
      }
    ]
  },
  "limit": 500
}