Receipt Layout
Layout
Per position the following fields are required:
# | Field | FIDELE label | Description | ESR field |
---|---|---|---|---|
13 | Unit price tax. excl | ENC-TIK-LIG-PRO-MHT | net tax modified pos price | Pos.NMPri |
18 | Total tax. excl | ENC-TIK-LIG-TOT-MHT | net tax modified pos amount | Pos.NMAmt |
These fields are stored with the transaction if delivered in the ESR. When Pos.NMAmt
is missing, the necessary computations are performed by ESR:
- Modifier positions are reckoned upon item positions
- For
Pos.NMAmt
Tax.Net
per tax group TaxG is divided into the according positions
To assure congruence of position amounts to tax totals in TaxA, a summation according to the Kahan summation algorithm is used. To allow the frontend application to print invoices with no cent differences, the transaction positions with NMAmt are returned in the response.
Example Response
All Fis.Tag elements in the response must be printed on the receipt.
XML Response
<TraC SQ="2">
<Result RC="OK"/>
<ESR DN="1">
<TaxA>
<Tax TaxG="A" Prc="20" Net="1.66" TAmt="0.33" Amt="1.99"/>
</TaxA>
</ESR>
<Fis>
<Payload>2000:199,199,20210623092800,TIK:001/1/1,Vente,N,</Payload>
<Signature>SgXKE...</Signature>
<Tag Label="Numéro:" Value="TIK:001/1/1" Name="FN"/>
<Tag Label="Code:" Value="B0000 JowV (NF525)" Name="Sec"/>
</Fis>
</TraC>
From the response, all <Tag>
elements have to be printed on the receipt to fulfill NF525. <Payload>
and <Signature>
are delivered only for information and don't need to be checked or stored. In the request example above, optional ESR attributes have been omitted, which are set with default values upon registration.
ESR Attribute | Description | FIDELE Label | Default Value |
---|---|---|---|
TL | Transaction Location | Cfg.Loc.TL | |
TT | Transaction Terminal | ENC-TIK-CAI-NID | Cfg.Trm.TT |
D | Date Time | ENC-TIK-HOR-GDH | System time |
TN | Transaction Number (set for reference if available in frontend application) | lastTN + 1 (within TL/TT) | |
FR_OperationType | Operation type | ENC-OPE-TYP | Vente , Remboursement or Annulation depending on ESR.T signum and ESR.Void flag |
DT | Document Type | ENC-TIK-DOC-TYP | TIK for "Ticket" |
DN | Document Number | ENC-TIK-NUM | lastDN + 1 (within TL/TT/DT) |
For Infocert certification, the transaction data MUST contain position details in <PosA>
and payment data in <PayA>
. The ESR element <TaxA>
containing the tax totals is optional and computed from <PosA>
on behalf.