Skip to content

Receipt Payments

The ReceiptPayments entity represents the payment details for a specific receipt, including the amount, payment method, and transaction status.

Fields

FieldTypeDescription
idIntegerUnique identifier (Primary Key).
dateDateTimeDate and time of the payment.
amountFloatPayment amount.
typeEnumPayment type (e.g., prepayment, payment, reversal).
canceledBooleanFlag indicating if the payment was reversed.
finalizedBooleanFlag indicating if the payment transaction is finalized.
paymentServiceEnumThe payment service provider used.
paymentEquipmentStringThe hardware equipment used for the payment.
receiptRelationLink to the associated Receipt.
transactionDataJSONDetailed technical data from the payment provider.
createdAtDateTimeMetadata: Creation timestamp.
updatedAtDateTimeMetadata: Last update timestamp.

Get List of Payments

Fetch a list of receipt payments.

Endpoint: POST /core/data/ReceiptPayments/select

Example Request:

json
{
  "fields": {
    "id": true,
    "date": true,
    "amount": true,
    "type": { "id": true, "value": true },
    "receipt": { "id": true, "number": 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 Payment

Retrieve details for a specific payment by ID.

Endpoint: POST /core/data/ReceiptPayments/select

Example Request:

json
{
  "fields": {
    "id": true,
    "amount": true,
    "finalized": true,
    "transactionData": true,
    "paymentService": true
  },
  "conditions": {
    "filters": [
      {
        "field": "id",
        "comparator": "=",
        "value": 5001
      }
    ]
  },
  "limit": 1
}