AlmondTill/G3N API

fiscalReceipt

query · in the family Reading your records

What it does

Look up one fiscal receipt — the legal tax artifact of a sale: its sequential fiscal number, signature or authorization code, and the QR the printed receipt shows.

ONE fiscal receipt by id, within your org group. Requires authentication (template class).

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Reading your records — Looking up and listing the records of your organization.

Roles that may call it:

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

FiscalReceipt — A FiscalReceipt: the gap-free sequential fiscal number + the regime's signature (model A) or clearance authorization code (model B) + the QR payload the printed receipt renders. Immutable once issued — no edit, no transitions, no doom. Certified partners produce the artifact fields — the caller never supplies them.

Example request

graphql
query ExampleFiscalReceipt($id: ID!) {
  fiscalReceipt(id: $id) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    parentKind
    regime
    logicalFacilityId
    seriesKey
    seq
    signature
    authorizationCode
    qrPayload
    partnerRef
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-ef0b9d950000"
}

Example response

json
{
  "data": {
    "fiscalReceipt": {
      "id": "01900000-0000-7000-8000-ef0b9d950000",
      "sysId": "FR-EXMP-0000-000F",
      "type": "FiscalReceipt",
      "caption": "Blue jeans",
      "status": "<status>",
      "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "parentKind": "<parent kind>",
      "regime": "<regime>",
      "logicalFacilityId": "01900000-0000-7000-8000-10c08c590000",
      "seriesKey": "<series key>",
      "seq": 1,
      "signature": "<signature>",
      "authorizationCode": "BJ-001",
      "qrPayload": "<qr payload>",
      "partnerRef": "<partner ref>"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer