Extensions for Financial Services (XFS) interface specification Release 3.50 - Part 7: Check Reader/Scanner Device Class Interface - Programmer's Reference

This specification describes the XFS service class of check readers and scanners. Check image scanners are treated as a special case of check readers, i.e. image-enabled instances of the latter. This class includes devices with a range of features, from small hand-held read-only devices through which checks are manually swiped one at a time, to desktop units which automatically feed the check one at a time; recording the MICR data and check image, and endorse or encode the check. The specification of this service class includes definitions of the service-specific commands that can be issued, using the WFSAsyncExecute, WFSExecute, WFSGetInfo and WFSAsyncGetInfo functions.
In the U.S., checks are always encoded in magnetic ink for reading by Magnetic Ink Character Recognition (MICR), and a single font is always used. In Europe some countries use MICR and some use Optical Character Recognition (OCR) character sets, with different fonts, for their checks.
In all countries, typical fields found encoded on a check include the bank ID number and the account number. Part of the processing done by the bank is to also encode the amount on the check, usually done by having an operator enter the handwritten or typewritten face amount on a numeric keypad.
This service class is currently defined only for attended branch service.

Specifikacija vmesnika za razširitev finančnih storitev (XFS), izdaja 3.50 - 7. del: Vmesnik razreda naprav za bralnike/skenerje čekov - Referenca za programerje

Ta specifikacija opisuje razred storitve razširitev za finančne storitve (XFS) za bralnike/skenerje čekov. Skenerji slik čekov so obravnavani kot poseben primer čitalnikov čekov, tj. čitalniki z omogočeno sliko. Ta razred vključuje naprave z različnimi funkcijami, od majhnih ročnih naprav samo za branje, v katere je treba posamezne čeke vstavljati ročno, do namiznih enot s samodejnim podajanjem posameznih čekov, beleženjem podatkov MICR in slik čekov ter označevanjem ali šifriranjem čekov. Specifikacija tega razreda storitve vključuje definicije ukazov, značilnih za določeno storitev, ki jih je mogoče izdati s funkcijami WFSAsyncExecute, WFSExecute, WFSGetInfo in WFSAsyncGetInfo.
V ZDA so čeki vedno kodirani v magnetnem črnilu – za branje se uporablja prepoznavanje znakov, zapisanih z magnetnim črnilom (MICR), in vselej je uporabljena enaka velikost črk. V Evropi nekatere države za čeke uporabljajo prepoznavanje znakov, zapisanih z magnetnim črnilom, nekatere pa nabore znakov s prepoznavanjem optičnih znakov (OCR) z različnimi velikostmi črk.
V vseh državah šifrirana polja na čeku običajno vsebujejo identifikacijsko številko banke in številko računa. Banka v okviru obdelave kodira znesek na čeku, običajno tako, da upravljavec s številsko tipkovnico vnese nominalno vrednost, ki je ročno izpisana ali natipkana.
Ta razred storitve je trenutno opredeljen samo za posamezne upravljane storitve.

General Information

Status
Published
Publication Date
22-Jan-2023
Technical Committee
Current Stage
6060 - National Implementation/Publication (Adopted Project)
Start Date
04-Jan-2023
Due Date
11-Mar-2023
Completion Date
23-Jan-2023

Buy Standard

Standardization document
CWA 16926-7:2023
English language
58 pages
sale 10% off
Preview
sale 10% off
Preview
e-Library read for
1 day
Standardization document
CWA 16926-7:2023
English language
58 pages
sale 10% off
Preview
sale 10% off
Preview
e-Library read for
1 day
Technical report
TP CWA 16926-7:2023
English language
58 pages
sale 10% off
Preview
sale 10% off
Preview
e-Library read for
1 day

Standards Content (Sample)

SLOVENSKI STANDARD
SIST CWA 16926-7:2023
01-marec-2023
Specifikacije vmesnika za razširitev finančnih storitev (XFS), izdaja 3.50 - 7. del:
Vmesnik razreda naprav za bralnike/skenerje čekov - Referenca za programerje
Extensions for Financial Services (XFS) interface specification Release 3.50 - Part 7:
Check Reader/Scanner Device Class Interface - Programmer's Reference
Ta slovenski standard je istoveten z: CWA 16926-7:2022
ICS:
35.200 Vmesniška in povezovalna Interface and interconnection
oprema equipment
35.240.15 Identifikacijske kartice. Čipne Identification cards. Chip
kartice. Biometrija cards. Biometrics
35.240.40 Uporabniške rešitve IT v IT applications in banking
bančništvu
SIST CWA 16926-7:2023 en,fr,de
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------
SIST CWA 16926-7:2023

---------------------- Page: 2 ----------------------
SIST CWA 16926-7:2023


CEN
CWA 16926-7

WORKSHOP
December 2022

AGREEMENT


ICS 35.200; 35.240.15; 35.240.40
English version


Extensions for Financial Services (XFS) interface
specification Release 3.50 - Part 7: Check Reader/Scanner
Device Class Interface - Programmer's Reference
This CEN Workshop Agreement has been drafted and approved by a Workshop of representatives of interested parties, the
constitution of which is indicated in the foreword of this Workshop Agreement.

The formal process followed by the Workshop in the development of this Workshop Agreement has been endorsed by the
National Members of CEN but neither the National Members of CEN nor the CEN-CENELEC Management Centre can be held
accountable for the technical content of this CEN Workshop Agreement or possible conflicts with standards or legislation.

This CEN Workshop Agreement can in no way be held as being an official standard developed by CEN and its Members.

This CEN Workshop Agreement is publicly available as a reference document from the CEN Members National Standard Bodies.

CEN members are the national standards bodies of Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France,
Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Republic of North
Macedonia, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, Türkiye and United Kingdom.



EUROPEAN COMMITTEE FOR STANDARDIZATION
COMITÉ EUROPÉEN DE NORMALISATION

EUROPÄISCHES KOMITEE FÜR NORMUNG

CEN-CENELEC Management Centre: Rue de la Science 23, B-1040 Brussels
© 2022 CEN All rights of exploitation in any form and by any means reserved worldwide for CEN national Members.


Ref. No.:CWA 16926-7:2022 E

---------------------- Page: 3 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)
Table of Contents
European Foreword . 4
1. Introduction . 8
1.1 Background to Release 3.50 . 8
1.2 XFS Service-Specific Programming . 8
2. Check Readers and Scanners . 10
3. References . 11
4. Info Commands . 12
4.1 WFS_INF_CHK_STATUS . 12
4.2 WFS_INF_CHK_CAPABILITIES . 15
4.3 WFS_INF_CHK_FORM_LIST . 18
4.4 WFS_INF_CHK_MEDIA_LIST . 19
4.5 WFS_INF_CHK_QUERY_FORM . 20
4.6 WFS_INF_CHK_QUERY_MEDIA . 22
4.7 WFS_INF_CHK_QUERY_FIELD . 24
5. Execute Commands . 26
5.1 WFS_CMD_CHK_PROCESS_FORM . 26
5.2 WFS_CMD_CHK_RESET . 29
5.3 WFS_CMD_CHK_SET_GUIDANCE_LIGHT . 30
5.4 WFS_CMD_CHK_POWER_SAVE_CONTROL . 32
5.5 WFS_CMD_CHK_SYNCHRONIZE_COMMAND . 33
6. Events . 34
6.1 WFS_EXEE_CHK_NOMEDIA . 34
6.2 WFS_EXEE_CHK_MEDIAINSERTED . 35
6.3 WFS_SRVE_CHK_MEDIAINSERTED . 36
6.4 WFS_EXEE_CHK_FIELDERROR . 37
6.5 WFS_EXEE_CHK_FIELDWARNING . 38
6.6 WFS_USRE_CHK_INKTHRESHOLD . 39
6.7 WFS_SRVE_CHK_MEDIADETECTED . 40
6.8 WFS_SRVE_CHK_DEVICEPOSITION . 41
6.9 WFS_SRVE_CHK_POWER_SAVE_CHANGE . 42
7. Forms Language Usage . 43
7.1 Definition Syntax . 44
7.2 XFS form/media definition files in multi-vendor environments . 45
7.3 Form and Media Measurements . 46
7.4 Form Definition . 47

2

---------------------- Page: 4 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)


7.5 Field Definition . 48
7.6 Media Definition . 51
8. C - Header file . 52

3

---------------------- Page: 5 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

European Foreword
This CEN Workshop Agreement has been developed in accordance with the CEN-CENELEC Guide 29
“CEN/CENELEC Workshop Agreements – The way to rapid consensus” and with the relevant provisions of
CEN/CENELEC Internal Regulations – Part 2. It was approved by a Workshop of representatives of interested
parties on 2022-11-08, the constitution of which was supported by CEN following several public calls for
participation, the first of which was made on 1998-06-24. However, this CEN Workshop Agreement does not
necessarily include all relevant stakeholders.

The final text of this CEN Workshop Agreement was provided to CEN for publication on 2022-11-18.

The following organizations and individuals developed and approved this CEN Workshop Agreement:

• AURIGA SPA
• CIMA SPA
• DIEBOLD NIXDORF SYSTEMS GMBH
• FIS BANKING SOLUTIONS UK LTD (OTS)
• FUJITSU TECHNOLOGY SOLUTIONS
• GLORY LTD
• GRG BANKING EQUIPMENT HK CO LTD
• HITACHI CHANNEL SOLUTIONS CORP
• HYOSUNG TNS INC
• JIANGSU GUOGUANG ELECTRONIC INFORMATION TECHNOLOGY
• KAL
• KEBA HANDOVER AUTOMATION GMBH
• NCR FSG
• NEXUS SOFTWARE
• OBERTHUR CASH PROTECTION
• OKI ELECTRIC INDUSTRY SHENZHEN
• SALZBURGER BANKEN SOFTWARE
• SECURE INNOVATION
• SIGMA SPA
It is possible that some elements of this CEN/CWA may be subject to patent rights. The CEN-CENELEC policy on
patent rights is set out in CEN-CENELEC Guide 8 “Guidelines for Implementation of the Common IPR Policy on
Patents (and other statutory intellectual property rights based on inventions)”. CEN shall not be held responsible for
identifying any or all such patent rights.

The Workshop participants have made every effort to ensure the reliability and accuracy of the technical and non-
technical content of CWA 16926-7, but this does not guarantee, either explicitly or implicitly, its correctness. Users
of CWA 16926-7 should be aware that neither the Workshop participants, nor CEN can be held liable for damages

4

---------------------- Page: 6 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

or losses of any kind whatsoever which may arise from its application. Users of CWA 16926-7 do so on their own
responsibility and at their own risk.
The CWA is published as a multi-part document, consisting of:
Part 1: Application Programming Interface (API) - Service Provider Interface (SPI) - Programmer's Reference
Part 2: Service Classes Definition - Programmer's Reference
Part 3: Printer and Scanning Device Class Interface - Programmer's Reference
Part 4: Identification Card Device Class Interface - Programmer's Reference
Part 5: Cash Dispenser Device Class Interface - Programmer's Reference
Part 6: PIN Keypad Device Class Interface - Programmer's Reference
Part 7: Check Reader/Scanner Device Class Interface - Programmer's Reference
Part 8: Depository Device Class Interface - Programmer's Reference
Part 9: Text Terminal Unit Device Class Interface - Programmer's Reference
Part 10: Sensors and Indicators Unit Device Class Interface - Programmer's Reference
Part 11: Vendor Dependent Mode Device Class Interface - Programmer's Reference
Part 12: Camera Device Class Interface - Programmer's Reference
Part 13: Alarm Device Class Interface - Programmer's Reference
Part 14: Card Embossing Unit Device Class Interface - Programmer's Reference
Part 15: Cash-In Module Device Class Interface - Programmer's Reference
Part 16: Card Dispenser Device Class Interface - Programmer's Reference
Part 17: Barcode Reader Device Class Interface - Programmer's Reference
Part 18: Item Processing Module Device Class Interface - Programmer's Reference
Part 19: Biometrics Device Class Interface - Programmer's Reference
Parts 20 - 28: Reserved for future use.
Parts 29 through 47 constitute an optional addendum to this CWA. They define the integration between the SNMP
standard and the set of status and statistical information exported by the Service Providers.
Part 29: XFS MIB Architecture and SNMP Extensions - Programmer’s Reference
Part 30: XFS MIB Device Specific Definitions - Printer Device Class
Part 31: XFS MIB Device Specific Definitions - Identification Card Device Class
Part 32: XFS MIB Device Specific Definitions - Cash Dispenser Device Class
Part 33: XFS MIB Device Specific Definitions - PIN Keypad Device Class
Part 34: XFS MIB Device Specific Definitions - Check Reader/Scanner Device Class
Part 35: XFS MIB Device Specific Definitions - Depository Device Class
Part 36: XFS MIB Device Specific Definitions - Text Terminal Unit Device Class
Part 37: XFS MIB Device Specific Definitions - Sensors and Indicators Unit Device Class
Part 38: XFS MIB Device Specific Definitions - Camera Device Class
Part 39: XFS MIB Device Specific Definitions - Alarm Device Class
Part 40: XFS MIB Device Specific Definitions - Card Embossing Unit Class
Part 41: XFS MIB Device Specific Definitions - Cash-In Module Device Class
Part 42: Reserved for future use.
Part 43: XFS MIB Device Specific Definitions - Vendor Dependent Mode Device Class
Part 44: XFS MIB Application Management
Part 45: XFS MIB Device Specific Definitions - Card Dispenser Device Class

5

---------------------- Page: 7 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

Part 46: XFS MIB Device Specific Definitions - Barcode Reader Device Class
Part 47: XFS MIB Device Specific Definitions - Item Processing Module Device Class
Part 48: XFS MIB Device Specific Definitions - Biometrics Device Class
Parts 49 - 60 are reserved for future use.
Part 61: Application Programming Interface (API) - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Service Provider Interface (SPI) - Programmer's Reference
Part 62: Printer and Scanning Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Programmer's Reference
Part 63: Identification Card Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Programmer's Reference
Part 64: Cash Dispenser Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 65: PIN Keypad Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 66: Check Reader/Scanner Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 67: Depository Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
Part 68: Text Terminal Unit Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Programmer's Reference
Part 69: Sensors and Indicators Unit Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 70: Vendor Dependent Mode Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 71: Camera Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
Part 72: Alarm Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
Part 73: Card Embossing Unit Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 74: Cash-In Module Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 75: Card Dispenser Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 76: Barcode Reader Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 77: Item Processing Module Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 78: Biometric Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
In addition to these Programmer's Reference specifications, the reader of this CWA is also referred to a
complementary document, called Release Notes. The Release Notes contain clarifications and explanations on the
CWA specifications, which are not requiring functional changes. The current version of the Release Notes is
available online from: https://www.cencenelec.eu/areas-of-work/cen-sectors/digital-society-cen/cwa-download-
area/.
The information in this document represents the Workshop's current views on the issues discussed as of the date of
publication. It is provided for informational purposes only and is subject to change without notice. CEN makes no
warranty, express or implied, with respect to this document.


6

---------------------- Page: 8 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

Revision History:
3.00 October 18, 2000 Initial Release.
3.10 November 29, 2007 For a description of changes from version 3.00 to version
3.10 see the CHK 3.10 Migration document.
3.20 March 2, 2011 For a description of changes from version 3.10 to version
3.20 see the CHK 3.20 Migration document.
3.30 March 19, 2015 For a description of changes from version 3.20 to version
3.30 see the CHK 3.30 Migration document.
3.40 December 06, 2019 For a description of changes from version 3.30 to version
3.40 see the CHK 3.40 Migration document.
3.50 November 18, 2022 For a description of changes from version 3.40 to version
3.50 see the CHK 3.50 Migration document.



7

---------------------- Page: 9 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

1. Introduction
1.1 Background to Release 3.50
The CEN/XFS Workshop aims to promote a clear and unambiguous specification defining a multi-vendor software
interface to financial peripheral devices. The XFS (eXtensions for Financial Services) specifications are developed
within the CEN (European Committee for Standardization/Information Society Standardization System) Workshop
environment. CEN Workshops aim to arrive at a European consensus on an issue that can be published as a CEN
Workshop Agreement (CWA).
The CEN/XFS Workshop encourages the participation of both banks and vendors in the deliberations required to
create an industry standard. The CEN/XFS Workshop achieves its goals by focused sub-groups working
electronically and meeting quarterly.
Release 3.50 of the XFS specification is based on a C API and is delivered with the continued promise for the
protection of technical investment for existing applications. This release of the specification extends the
functionality and capabilities of the existing devices covered by the specification:
• Addition of E2E security
• PIN Password Entry

1.2 XFS Service-Specific Programming
The service classes are defined by their service-specific commands and the associated data structures, error codes,
messages, etc. These commands are used to request functions that are specific to one or more classes of Service
Providers, but not all of them, and therefore are not included in the common API for basic or administration
functions.
When a service-specific command is common among two or more classes of Service Providers, the syntax of the
command is as similar as possible across all services, since a major objective of XFS is to standardize function
codes and structures for the broadest variety of services. For example, using the WFSExecute function, the
commands to read data from various services are as similar as possible to each other in their syntax and data
structures.
In general, the specific command set for a service class is defined as a superset of the specific capabilities likely to
be provided by the developers of the services of that class; thus any particular device will normally support only a
subset of the defined command set.
There are three cases in which a Service Provider may receive a service-specific command that it does not support:
The requested capability is defined for the class of Service Providers by the XFS specification, the particular vendor
implementation of that service does not support it, and the unsupported capability is not considered to be
fundamental to the service. In this case, the Service Provider returns a successful completion, but does no operation.
An example would be a request from an application to turn on a control indicator on a passbook printer; the Service
Provider recognizes the command, but since the passbook printer it is managing does not include that indicator, the
Service Provider does no operation and returns a successful completion to the application.
The requested capability is defined for the class of Service Providers by the XFS specification, the particular vendor
implementation of that service does not support it, and the unsupported capability is considered to be fundamental
to the service. In this case, a WFS_ERR_UNSUPP_COMMAND error for Execute commands or
WFS_ERR_UNSUPP_CATEGORY error for Info commands is returned to the calling application. An example
would be a request from an application to a cash dispenser to retract items where the dispenser hardware does not
have that capability; the Service Provider recognizes the command but, since the cash dispenser it is managing is
unable to fulfil the request, returns this error.

8

---------------------- Page: 10 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

The requested capability is not defined for the class of Service Providers by the XFS specification. In this case, a
WFS_ERR_INVALID_COMMAND error for Execute commands or WFS_ERR_INVALID_CATEGORY error
for Info commands is returned to the calling application.
This design allows implementation of applications that can be used with a range of services that provide differing
subsets of the functionalities that are defined for their service class. Applications may use the WFSGetInfo and
WFSAsyncGetInfo commands to inquire about the capabilities of the service they are about to use, and modify
their behavior accordingly, or they may use functions and then deal with error returns to make decisions as to how
to use the service.

9

---------------------- Page: 11 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

2. Check Readers and Scanners
This specification describes the XFS service class of check readers and scanners. Check image scanners are treated
as a special case of check readers, i.e. image-enabled instances of the latter. This class includes devices with a range
of features, from small hand-held read-only devices through which checks are manually swiped one at a time, to
desktop units which automatically feed the check one at a time; recording the MICR data and check image, and
endorse or encode the check. The specification of this service class includes definitions of the service-specific
commands that can be issued, using the WFSAsyncExecute, WFSExecute, WFSGetInfo and WFSAsyncGetInfo
functions.
In the U.S., checks are always encoded in magnetic ink for reading by Magnetic Ink Character Recognition
(MICR), and a single font is always used. In Europe some countries use MICR and some use Optical Character
Recognition (OCR) character sets, with different fonts, for their checks.
In all countries, typical fields found encoded on a check include the bank ID number and the account number. Part
of the processing done by the bank is to also encode the amount on the check, usually done by having an operator
enter the handwritten or typewritten face amount on a numeric keypad.
This service class is currently defined only for attended branch service.

10

---------------------- Page: 12 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

3. References
1. XFS Application Programming Interface (API)/Service Provider Interface (SPI), Programmer’s Reference
Revision 3.50

11

---------------------- Page: 13 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

4. Info Commands
4.1 WFS_INF_CHK_STATUS
Description This function is used to query the status of the device and the service.
Input Param None.
Output Param LPWFSCHKSTATUS lpStatus;
struct _wfs_chk_status
{
WORD  fwDevice;
WORD  fwMedia;
WORD  fwInk;
LPSTR  lpszExtra;
DWORD  dwGuidLights[WFS_CHK_GUIDLIGHTS_SIZE];
WORD  wDevicePosition;
USHORT usPowerSaveRecoveryTime;
WORD  wAntiFraudModule;
} WFSCHKSTATUS, *LPWFSCHKSTATUS;
fwDevice
Specifies the state of the check reader device as one of:
Value Meaning
WFS_CHK_DEVONLINE The device is online (i.e. powered on and
operable).
WFS_CHK_DEVOFFLINE The device is offline (e.g. the operator has
taken the device offline by turning a switch).
WFS_CHK_DEVPOWEROFF The device is powered off or physically not
connected.
WFS_CHK_DEVNODEVICE There is no device intended to be there; e.g.
this type of self service machine does not
contain such a device or it is internally not
configured.
WFS_CHK_DEVHWERROR The device is inoperable due to a hardware
error.
WFS_CHK_DEVUSERERROR The device is inoperable because a person is
preventing proper device operation.
WFS_CHK_DEVBUSY The device is busy and unable to process an
execute command at this time.
WFS_CHK_DEVFRAUDATTEMPT The device is present but is inoperable
because it has detected a fraud attempt.
WFS_CHK_DEVPOTENTIALFRAUD The device has detected a potential fraud
attempt and is capable of remaining in
service. In this case the application should
make the decision as to whether to take the
device offline.
fwMedia
Specifies the status of the media in the check reader as one of:
Value Meaning
WFS_CHK_MEDIANOTSUPP The capability to report the state of the check
media is not supported by the device.
WFS_CHK_MEDIANOTPRESENT No media is inserted in device.
WFS_CHK_MEDIAREQUIRED Insertion of media required.
WFS_CHK_MEDIAPRESENT Media inserted in device.
WFS_CHK_MEDIAJAMMED Media jam in device.
fwInk
Specifies the status of the ink in the check reader as one of:
Value Meaning
WFS_CHK_INKNOTSUPP Capability not supported by the device.

12

---------------------- Page: 14 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

WFS_CHK_INKFULL Ink supply in device is full.
WFS_CHK_INKLOW Ink supply in device is low.
WFS_CHK_INKOUT Ink supply in device is empty.
lpszExtra
Pointer to a list of vendor-specific, or any other extended, information. The information is
returned as a series of “key=value” strings so that it is easily extensible by Service Providers.
Each string is null-terminated, with the final string terminating with two null characters. An
empty list may be indicated by either a NULL pointer or a pointer to two consecutive null
characters.
dwGuidLights [.]
Specifies the state of the guidance light indicators. A number of guidance light types are defined
below. Vendor specific guidance lights are defined starting from the end of the array. The
maximum guidance light index is WFS_CHK_GUIDLIGHTS_MAX.
Specifies the state of the guidance light indicator as
WFS_CHK_GUIDANCE_NOT_AVAILABLE, WFS_CHK_GUIDANCE_OFF or a
combination of the following flags consisting of one type B, optionally one type C and optionally
one type D.
Value Meaning Type
WFS_CHK_GUIDANCE_NOT_AVAILABLE The status is not available. A
WFS_CHK_GUIDANCE_OFF The light is turned off. A
WFS_CHK_GUIDANCE_SLOW_FLASH The light is blinking slowly. B
WFS_CHK_GUIDANCE_MEDIUM_FLASH The light is blinking medium B
frequency.
WFS_CHK_GUIDANCE_QUICK_FLASH The light is blinking quickly. B
WFS_CHK_GUIDANCE_CONTINUOUS The light is turned on B
continuous (steady).
WFS_CHK_GUIDANCE_RED The light is red. C
WFS_CHK_GUIDANCE_GREEN The light is green. C
WFS_CHK_GUIDANCE_YELLOW The light is yellow. C
WFS_CHK_GUIDANCE_BLUE The light is blue. C
WFS_CHK_GUIDANCE_CYAN The light is cyan. C
WFS_CHK_GUIDANCE_MAGENTA The light is magenta. C
WFS_CHK_GUIDANCE_WHITE The light is white. C
WFS_CHK_GUIDANCE_ENTRY The light is in the entry state. D
WFS_CHK_GUIDANCE_EXIT The light is in the exit state. D
dwGuidLights [WFS_CHK_GUIDANCE_CHECKUNIT]
Specifies the state of the guidance light indicator on the check processing unit.
wDevicePosition
Specifies the device position. The device position value is independent of the fwDevice value, e.g.
when the device position is reported as WFS_CHK_DEVICENOTINPOSITION, fwDevice can
have any of the values defined above (including WFS_CHK_DEVONLINE or
WFS_CHK_DEVOFFLINE). If the device is not in its normal operating position (i.e.
WFS_CHK_DEVICEINPOSITION) then media may not be presented through the normal
customer interface. This value is one of the following values:
Value Meaning
WFS_CHK_DEVICEINPOSITION The device is in its normal operating
position, or is fixed in place and cannot be
moved.
WFS_CHK_DEVICENOTINPOSITION The device has been removed from its
normal operating position.
WFS_CHK_DEVICEPOSUNKNOWN Due to a hardware error or other condition,
the position of the device cannot be
determined.
WFS_CHK_DEVICEPOSNOTSUPP The physical device does not have the
capability of detecting the position.

13

---------------------- Page: 15 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

usPowerSaveRecoveryTime
Specifies the actual number of seconds required by the device to resume its normal operational
state from the current power saving mode. This value is zero if either the power saving mode has
not been activated or no power save control is supported.
wAntiFraudModule
Specifies the state of the anti-fraud module as one of the
...

SLOVENSKI STANDARD
SIST CWA 16926-7:2023
01-marec-2023
Specifikacija vmesnika razširitev za finančne storitve (XFS), izdaja 3.50 - 7. del:
Vmesnik razreda naprav za preverjanje čitalnikov/skenerjev - Referenca za
programerje
Extensions for Financial Services (XFS) interface specification Release 3.50 - Part 7:
Check Reader/Scanner Device Class Interface - Programmer's Reference
Ta slovenski standard je istoveten z: CWA 16926-7:2022
ICS:
35.200 Vmesniška in povezovalna Interface and interconnection
oprema equipment
35.240.15 Identifikacijske kartice. Čipne Identification cards. Chip
kartice. Biometrija cards. Biometrics
35.240.40 Uporabniške rešitve IT v IT applications in banking
bančništvu
SIST CWA 16926-7:2023 en,fr,de
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------
SIST CWA 16926-7:2023

---------------------- Page: 2 ----------------------
SIST CWA 16926-7:2023


CEN
CWA 16926-7

WORKSHOP
December 2022

AGREEMENT


ICS 35.200; 35.240.15; 35.240.40
English version


Extensions for Financial Services (XFS) interface
specification Release 3.50 - Part 7: Check Reader/Scanner
Device Class Interface - Programmer's Reference
This CEN Workshop Agreement has been drafted and approved by a Workshop of representatives of interested parties, the
constitution of which is indicated in the foreword of this Workshop Agreement.

The formal process followed by the Workshop in the development of this Workshop Agreement has been endorsed by the
National Members of CEN but neither the National Members of CEN nor the CEN-CENELEC Management Centre can be held
accountable for the technical content of this CEN Workshop Agreement or possible conflicts with standards or legislation.

This CEN Workshop Agreement can in no way be held as being an official standard developed by CEN and its Members.

This CEN Workshop Agreement is publicly available as a reference document from the CEN Members National Standard Bodies.

CEN members are the national standards bodies of Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France,
Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Republic of North
Macedonia, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, Türkiye and United Kingdom.



EUROPEAN COMMITTEE FOR STANDARDIZATION
COMITÉ EUROPÉEN DE NORMALISATION

EUROPÄISCHES KOMITEE FÜR NORMUNG

CEN-CENELEC Management Centre: Rue de la Science 23, B-1040 Brussels
© 2022 CEN All rights of exploitation in any form and by any means reserved worldwide for CEN national Members.


Ref. No.:CWA 16926-7:2022 E

---------------------- Page: 3 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)
Table of Contents
European Foreword . 4
1. Introduction . 8
1.1 Background to Release 3.50 . 8
1.2 XFS Service-Specific Programming . 8
2. Check Readers and Scanners . 10
3. References . 11
4. Info Commands . 12
4.1 WFS_INF_CHK_STATUS . 12
4.2 WFS_INF_CHK_CAPABILITIES . 15
4.3 WFS_INF_CHK_FORM_LIST . 18
4.4 WFS_INF_CHK_MEDIA_LIST . 19
4.5 WFS_INF_CHK_QUERY_FORM . 20
4.6 WFS_INF_CHK_QUERY_MEDIA . 22
4.7 WFS_INF_CHK_QUERY_FIELD . 24
5. Execute Commands . 26
5.1 WFS_CMD_CHK_PROCESS_FORM . 26
5.2 WFS_CMD_CHK_RESET . 29
5.3 WFS_CMD_CHK_SET_GUIDANCE_LIGHT . 30
5.4 WFS_CMD_CHK_POWER_SAVE_CONTROL . 32
5.5 WFS_CMD_CHK_SYNCHRONIZE_COMMAND . 33
6. Events . 34
6.1 WFS_EXEE_CHK_NOMEDIA . 34
6.2 WFS_EXEE_CHK_MEDIAINSERTED . 35
6.3 WFS_SRVE_CHK_MEDIAINSERTED . 36
6.4 WFS_EXEE_CHK_FIELDERROR . 37
6.5 WFS_EXEE_CHK_FIELDWARNING . 38
6.6 WFS_USRE_CHK_INKTHRESHOLD . 39
6.7 WFS_SRVE_CHK_MEDIADETECTED . 40
6.8 WFS_SRVE_CHK_DEVICEPOSITION . 41
6.9 WFS_SRVE_CHK_POWER_SAVE_CHANGE . 42
7. Forms Language Usage . 43
7.1 Definition Syntax . 44
7.2 XFS form/media definition files in multi-vendor environments . 45
7.3 Form and Media Measurements . 46
7.4 Form Definition . 47

2

---------------------- Page: 4 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)


7.5 Field Definition . 48
7.6 Media Definition . 51
8. C - Header file . 52

3

---------------------- Page: 5 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

European Foreword
This CEN Workshop Agreement has been developed in accordance with the CEN-CENELEC Guide 29
“CEN/CENELEC Workshop Agreements – The way to rapid consensus” and with the relevant provisions of
CEN/CENELEC Internal Regulations – Part 2. It was approved by a Workshop of representatives of interested
parties on 2022-11-08, the constitution of which was supported by CEN following several public calls for
participation, the first of which was made on 1998-06-24. However, this CEN Workshop Agreement does not
necessarily include all relevant stakeholders.

The final text of this CEN Workshop Agreement was provided to CEN for publication on 2022-11-18.

The following organizations and individuals developed and approved this CEN Workshop Agreement:

• AURIGA SPA
• CIMA SPA
• DIEBOLD NIXDORF SYSTEMS GMBH
• FIS BANKING SOLUTIONS UK LTD (OTS)
• FUJITSU TECHNOLOGY SOLUTIONS
• GLORY LTD
• GRG BANKING EQUIPMENT HK CO LTD
• HITACHI CHANNEL SOLUTIONS CORP
• HYOSUNG TNS INC
• JIANGSU GUOGUANG ELECTRONIC INFORMATION TECHNOLOGY
• KAL
• KEBA HANDOVER AUTOMATION GMBH
• NCR FSG
• NEXUS SOFTWARE
• OBERTHUR CASH PROTECTION
• OKI ELECTRIC INDUSTRY SHENZHEN
• SALZBURGER BANKEN SOFTWARE
• SECURE INNOVATION
• SIGMA SPA
It is possible that some elements of this CEN/CWA may be subject to patent rights. The CEN-CENELEC policy on
patent rights is set out in CEN-CENELEC Guide 8 “Guidelines for Implementation of the Common IPR Policy on
Patents (and other statutory intellectual property rights based on inventions)”. CEN shall not be held responsible for
identifying any or all such patent rights.

The Workshop participants have made every effort to ensure the reliability and accuracy of the technical and non-
technical content of CWA 16926-7, but this does not guarantee, either explicitly or implicitly, its correctness. Users
of CWA 16926-7 should be aware that neither the Workshop participants, nor CEN can be held liable for damages

4

---------------------- Page: 6 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

or losses of any kind whatsoever which may arise from its application. Users of CWA 16926-7 do so on their own
responsibility and at their own risk.
The CWA is published as a multi-part document, consisting of:
Part 1: Application Programming Interface (API) - Service Provider Interface (SPI) - Programmer's Reference
Part 2: Service Classes Definition - Programmer's Reference
Part 3: Printer and Scanning Device Class Interface - Programmer's Reference
Part 4: Identification Card Device Class Interface - Programmer's Reference
Part 5: Cash Dispenser Device Class Interface - Programmer's Reference
Part 6: PIN Keypad Device Class Interface - Programmer's Reference
Part 7: Check Reader/Scanner Device Class Interface - Programmer's Reference
Part 8: Depository Device Class Interface - Programmer's Reference
Part 9: Text Terminal Unit Device Class Interface - Programmer's Reference
Part 10: Sensors and Indicators Unit Device Class Interface - Programmer's Reference
Part 11: Vendor Dependent Mode Device Class Interface - Programmer's Reference
Part 12: Camera Device Class Interface - Programmer's Reference
Part 13: Alarm Device Class Interface - Programmer's Reference
Part 14: Card Embossing Unit Device Class Interface - Programmer's Reference
Part 15: Cash-In Module Device Class Interface - Programmer's Reference
Part 16: Card Dispenser Device Class Interface - Programmer's Reference
Part 17: Barcode Reader Device Class Interface - Programmer's Reference
Part 18: Item Processing Module Device Class Interface - Programmer's Reference
Part 19: Biometrics Device Class Interface - Programmer's Reference
Parts 20 - 28: Reserved for future use.
Parts 29 through 47 constitute an optional addendum to this CWA. They define the integration between the SNMP
standard and the set of status and statistical information exported by the Service Providers.
Part 29: XFS MIB Architecture and SNMP Extensions - Programmer’s Reference
Part 30: XFS MIB Device Specific Definitions - Printer Device Class
Part 31: XFS MIB Device Specific Definitions - Identification Card Device Class
Part 32: XFS MIB Device Specific Definitions - Cash Dispenser Device Class
Part 33: XFS MIB Device Specific Definitions - PIN Keypad Device Class
Part 34: XFS MIB Device Specific Definitions - Check Reader/Scanner Device Class
Part 35: XFS MIB Device Specific Definitions - Depository Device Class
Part 36: XFS MIB Device Specific Definitions - Text Terminal Unit Device Class
Part 37: XFS MIB Device Specific Definitions - Sensors and Indicators Unit Device Class
Part 38: XFS MIB Device Specific Definitions - Camera Device Class
Part 39: XFS MIB Device Specific Definitions - Alarm Device Class
Part 40: XFS MIB Device Specific Definitions - Card Embossing Unit Class
Part 41: XFS MIB Device Specific Definitions - Cash-In Module Device Class
Part 42: Reserved for future use.
Part 43: XFS MIB Device Specific Definitions - Vendor Dependent Mode Device Class
Part 44: XFS MIB Application Management
Part 45: XFS MIB Device Specific Definitions - Card Dispenser Device Class

5

---------------------- Page: 7 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

Part 46: XFS MIB Device Specific Definitions - Barcode Reader Device Class
Part 47: XFS MIB Device Specific Definitions - Item Processing Module Device Class
Part 48: XFS MIB Device Specific Definitions - Biometrics Device Class
Parts 49 - 60 are reserved for future use.
Part 61: Application Programming Interface (API) - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Service Provider Interface (SPI) - Programmer's Reference
Part 62: Printer and Scanning Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Programmer's Reference
Part 63: Identification Card Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Programmer's Reference
Part 64: Cash Dispenser Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 65: PIN Keypad Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 66: Check Reader/Scanner Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 67: Depository Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
Part 68: Text Terminal Unit Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Programmer's Reference
Part 69: Sensors and Indicators Unit Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 70: Vendor Dependent Mode Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 71: Camera Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
Part 72: Alarm Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
Part 73: Card Embossing Unit Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 74: Cash-In Module Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 75: Card Dispenser Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 76: Barcode Reader Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 77: Item Processing Module Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 78: Biometric Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
In addition to these Programmer's Reference specifications, the reader of this CWA is also referred to a
complementary document, called Release Notes. The Release Notes contain clarifications and explanations on the
CWA specifications, which are not requiring functional changes. The current version of the Release Notes is
available online from: https://www.cencenelec.eu/areas-of-work/cen-sectors/digital-society-cen/cwa-download-
area/.
The information in this document represents the Workshop's current views on the issues discussed as of the date of
publication. It is provided for informational purposes only and is subject to change without notice. CEN makes no
warranty, express or implied, with respect to this document.


6

---------------------- Page: 8 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

Revision History:
3.00 October 18, 2000 Initial Release.
3.10 November 29, 2007 For a description of changes from version 3.00 to version
3.10 see the CHK 3.10 Migration document.
3.20 March 2, 2011 For a description of changes from version 3.10 to version
3.20 see the CHK 3.20 Migration document.
3.30 March 19, 2015 For a description of changes from version 3.20 to version
3.30 see the CHK 3.30 Migration document.
3.40 December 06, 2019 For a description of changes from version 3.30 to version
3.40 see the CHK 3.40 Migration document.
3.50 November 18, 2022 For a description of changes from version 3.40 to version
3.50 see the CHK 3.50 Migration document.



7

---------------------- Page: 9 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

1. Introduction
1.1 Background to Release 3.50
The CEN/XFS Workshop aims to promote a clear and unambiguous specification defining a multi-vendor software
interface to financial peripheral devices. The XFS (eXtensions for Financial Services) specifications are developed
within the CEN (European Committee for Standardization/Information Society Standardization System) Workshop
environment. CEN Workshops aim to arrive at a European consensus on an issue that can be published as a CEN
Workshop Agreement (CWA).
The CEN/XFS Workshop encourages the participation of both banks and vendors in the deliberations required to
create an industry standard. The CEN/XFS Workshop achieves its goals by focused sub-groups working
electronically and meeting quarterly.
Release 3.50 of the XFS specification is based on a C API and is delivered with the continued promise for the
protection of technical investment for existing applications. This release of the specification extends the
functionality and capabilities of the existing devices covered by the specification:
• Addition of E2E security
• PIN Password Entry

1.2 XFS Service-Specific Programming
The service classes are defined by their service-specific commands and the associated data structures, error codes,
messages, etc. These commands are used to request functions that are specific to one or more classes of Service
Providers, but not all of them, and therefore are not included in the common API for basic or administration
functions.
When a service-specific command is common among two or more classes of Service Providers, the syntax of the
command is as similar as possible across all services, since a major objective of XFS is to standardize function
codes and structures for the broadest variety of services. For example, using the WFSExecute function, the
commands to read data from various services are as similar as possible to each other in their syntax and data
structures.
In general, the specific command set for a service class is defined as a superset of the specific capabilities likely to
be provided by the developers of the services of that class; thus any particular device will normally support only a
subset of the defined command set.
There are three cases in which a Service Provider may receive a service-specific command that it does not support:
The requested capability is defined for the class of Service Providers by the XFS specification, the particular vendor
implementation of that service does not support it, and the unsupported capability is not considered to be
fundamental to the service. In this case, the Service Provider returns a successful completion, but does no operation.
An example would be a request from an application to turn on a control indicator on a passbook printer; the Service
Provider recognizes the command, but since the passbook printer it is managing does not include that indicator, the
Service Provider does no operation and returns a successful completion to the application.
The requested capability is defined for the class of Service Providers by the XFS specification, the particular vendor
implementation of that service does not support it, and the unsupported capability is considered to be fundamental
to the service. In this case, a WFS_ERR_UNSUPP_COMMAND error for Execute commands or
WFS_ERR_UNSUPP_CATEGORY error for Info commands is returned to the calling application. An example
would be a request from an application to a cash dispenser to retract items where the dispenser hardware does not
have that capability; the Service Provider recognizes the command but, since the cash dispenser it is managing is
unable to fulfil the request, returns this error.

8

---------------------- Page: 10 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

The requested capability is not defined for the class of Service Providers by the XFS specification. In this case, a
WFS_ERR_INVALID_COMMAND error for Execute commands or WFS_ERR_INVALID_CATEGORY error
for Info commands is returned to the calling application.
This design allows implementation of applications that can be used with a range of services that provide differing
subsets of the functionalities that are defined for their service class. Applications may use the WFSGetInfo and
WFSAsyncGetInfo commands to inquire about the capabilities of the service they are about to use, and modify
their behavior accordingly, or they may use functions and then deal with error returns to make decisions as to how
to use the service.

9

---------------------- Page: 11 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

2. Check Readers and Scanners
This specification describes the XFS service class of check readers and scanners. Check image scanners are treated
as a special case of check readers, i.e. image-enabled instances of the latter. This class includes devices with a range
of features, from small hand-held read-only devices through which checks are manually swiped one at a time, to
desktop units which automatically feed the check one at a time; recording the MICR data and check image, and
endorse or encode the check. The specification of this service class includes definitions of the service-specific
commands that can be issued, using the WFSAsyncExecute, WFSExecute, WFSGetInfo and WFSAsyncGetInfo
functions.
In the U.S., checks are always encoded in magnetic ink for reading by Magnetic Ink Character Recognition
(MICR), and a single font is always used. In Europe some countries use MICR and some use Optical Character
Recognition (OCR) character sets, with different fonts, for their checks.
In all countries, typical fields found encoded on a check include the bank ID number and the account number. Part
of the processing done by the bank is to also encode the amount on the check, usually done by having an operator
enter the handwritten or typewritten face amount on a numeric keypad.
This service class is currently defined only for attended branch service.

10

---------------------- Page: 12 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

3. References
1. XFS Application Programming Interface (API)/Service Provider Interface (SPI), Programmer’s Reference
Revision 3.50

11

---------------------- Page: 13 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

4. Info Commands
4.1 WFS_INF_CHK_STATUS
Description This function is used to query the status of the device and the service.
Input Param None.
Output Param LPWFSCHKSTATUS lpStatus;
struct _wfs_chk_status
{
WORD  fwDevice;
WORD  fwMedia;
WORD  fwInk;
LPSTR  lpszExtra;
DWORD  dwGuidLights[WFS_CHK_GUIDLIGHTS_SIZE];
WORD  wDevicePosition;
USHORT usPowerSaveRecoveryTime;
WORD  wAntiFraudModule;
} WFSCHKSTATUS, *LPWFSCHKSTATUS;
fwDevice
Specifies the state of the check reader device as one of:
Value Meaning
WFS_CHK_DEVONLINE The device is online (i.e. powered on and
operable).
WFS_CHK_DEVOFFLINE The device is offline (e.g. the operator has
taken the device offline by turning a switch).
WFS_CHK_DEVPOWEROFF The device is powered off or physically not
connected.
WFS_CHK_DEVNODEVICE There is no device intended to be there; e.g.
this type of self service machine does not
contain such a device or it is internally not
configured.
WFS_CHK_DEVHWERROR The device is inoperable due to a hardware
error.
WFS_CHK_DEVUSERERROR The device is inoperable because a person is
preventing proper device operation.
WFS_CHK_DEVBUSY The device is busy and unable to process an
execute command at this time.
WFS_CHK_DEVFRAUDATTEMPT The device is present but is inoperable
because it has detected a fraud attempt.
WFS_CHK_DEVPOTENTIALFRAUD The device has detected a potential fraud
attempt and is capable of remaining in
service. In this case the application should
make the decision as to whether to take the
device offline.
fwMedia
Specifies the status of the media in the check reader as one of:
Value Meaning
WFS_CHK_MEDIANOTSUPP The capability to report the state of the check
media is not supported by the device.
WFS_CHK_MEDIANOTPRESENT No media is inserted in device.
WFS_CHK_MEDIAREQUIRED Insertion of media required.
WFS_CHK_MEDIAPRESENT Media inserted in device.
WFS_CHK_MEDIAJAMMED Media jam in device.
fwInk
Specifies the status of the ink in the check reader as one of:
Value Meaning
WFS_CHK_INKNOTSUPP Capability not supported by the device.

12

---------------------- Page: 14 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

WFS_CHK_INKFULL Ink supply in device is full.
WFS_CHK_INKLOW Ink supply in device is low.
WFS_CHK_INKOUT Ink supply in device is empty.
lpszExtra
Pointer to a list of vendor-specific, or any other extended, information. The information is
returned as a series of “key=value” strings so that it is easily extensible by Service Providers.
Each string is null-terminated, with the final string terminating with two null characters. An
empty list may be indicated by either a NULL pointer or a pointer to two consecutive null
characters.
dwGuidLights [.]
Specifies the state of the guidance light indicators. A number of guidance light types are defined
below. Vendor specific guidance lights are defined starting from the end of the array. The
maximum guidance light index is WFS_CHK_GUIDLIGHTS_MAX.
Specifies the state of the guidance light indicator as
WFS_CHK_GUIDANCE_NOT_AVAILABLE, WFS_CHK_GUIDANCE_OFF or a
combination of the following flags consisting of one type B, optionally one type C and optionally
one type D.
Value Meaning Type
WFS_CHK_GUIDANCE_NOT_AVAILABLE The status is not available. A
WFS_CHK_GUIDANCE_OFF The light is turned off. A
WFS_CHK_GUIDANCE_SLOW_FLASH The light is blinking slowly. B
WFS_CHK_GUIDANCE_MEDIUM_FLASH The light is blinking medium B
frequency.
WFS_CHK_GUIDANCE_QUICK_FLASH The light is blinking quickly. B
WFS_CHK_GUIDANCE_CONTINUOUS The light is turned on B
continuous (steady).
WFS_CHK_GUIDANCE_RED The light is red. C
WFS_CHK_GUIDANCE_GREEN The light is green. C
WFS_CHK_GUIDANCE_YELLOW The light is yellow. C
WFS_CHK_GUIDANCE_BLUE The light is blue. C
WFS_CHK_GUIDANCE_CYAN The light is cyan. C
WFS_CHK_GUIDANCE_MAGENTA The light is magenta. C
WFS_CHK_GUIDANCE_WHITE The light is white. C
WFS_CHK_GUIDANCE_ENTRY The light is in the entry state. D
WFS_CHK_GUIDANCE_EXIT The light is in the exit state. D
dwGuidLights [WFS_CHK_GUIDANCE_CHECKUNIT]
Specifies the state of the guidance light indicator on the check processing unit.
wDevicePosition
Specifies the device position. The device position value is independent of the fwDevice value, e.g.
when the device position is reported as WFS_CHK_DEVICENOTINPOSITION, fwDevice can
have any of the values defined above (including WFS_CHK_DEVONLINE or
WFS_CHK_DEVOFFLINE). If the device is not in its normal operating position (i.e.
WFS_CHK_DEVICEINPOSITION) then media may not be presented through the normal
customer interface. This value is one of the following values:
Value Meaning
WFS_CHK_DEVICEINPOSITION The device is in its normal operating
position, or is fixed in place and cannot be
moved.
WFS_CHK_DEVICENOTINPOSITION The device has been removed from its
normal operating position.
WFS_CHK_DEVICEPOSUNKNOWN Due to a hardware error or other condition,
the position of the device cannot be
determined.
WFS_CHK_DEVICEPOSNOTSUPP The physical device does not have the
capability of detecting the position.

13

---------------------- Page: 15 ----------------------
SIST CWA 16926-7:2023
CWA 16926-7:2022 (E)

usPowerSaveRecoveryTime
Specifies the actual number of seconds required by the device to resume its normal operational
state from the current power saving mode. This value is zero if either the power saving mode has
not been activated or no power save control is supported.
wAntiFraudModule
Specifies the state of the anti-fraud module as o
...

SLOVENSKI STANDARD
SIST-TP CWA 16926-7:2023
01-marec-2023
Specifikacija vmesnika za razširitev finančnih storitev (XFS), izdaja 3.50 - 7. del:
Vmesnik razreda naprav za bralnike/skenerje čekov - Referenca za programerje
Extensions for Financial Services (XFS) interface specification Release 3.50 - Part 7:
Check Reader/Scanner Device Class Interface - Programmer's Reference
Ta slovenski standard je istoveten z: CWA 16926-7:2022
ICS:
35.200 Vmesniška in povezovalna Interface and interconnection
oprema equipment
35.240.15 Identifikacijske kartice. Čipne Identification cards. Chip
kartice. Biometrija cards. Biometrics
35.240.40 Uporabniške rešitve IT v IT applications in banking
bančništvu
SIST-TP CWA 16926-7:2023 en,fr,de
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------
SIST-TP CWA 16926-7:2023

---------------------- Page: 2 ----------------------
SIST-TP CWA 16926-7:2023


CEN
CWA 16926-7

WORKSHOP
December 2022

AGREEMENT


ICS 35.200; 35.240.15; 35.240.40
English version


Extensions for Financial Services (XFS) interface
specification Release 3.50 - Part 7: Check Reader/Scanner
Device Class Interface - Programmer's Reference
This CEN Workshop Agreement has been drafted and approved by a Workshop of representatives of interested parties, the
constitution of which is indicated in the foreword of this Workshop Agreement.

The formal process followed by the Workshop in the development of this Workshop Agreement has been endorsed by the
National Members of CEN but neither the National Members of CEN nor the CEN-CENELEC Management Centre can be held
accountable for the technical content of this CEN Workshop Agreement or possible conflicts with standards or legislation.

This CEN Workshop Agreement can in no way be held as being an official standard developed by CEN and its Members.

This CEN Workshop Agreement is publicly available as a reference document from the CEN Members National Standard Bodies.

CEN members are the national standards bodies of Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France,
Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Republic of North
Macedonia, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, Türkiye and United Kingdom.



EUROPEAN COMMITTEE FOR STANDARDIZATION
COMITÉ EUROPÉEN DE NORMALISATION

EUROPÄISCHES KOMITEE FÜR NORMUNG

CEN-CENELEC Management Centre: Rue de la Science 23, B-1040 Brussels
© 2022 CEN All rights of exploitation in any form and by any means reserved worldwide for CEN national Members.


Ref. No.:CWA 16926-7:2022 E

---------------------- Page: 3 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)
Table of Contents
European Foreword . 4
1. Introduction . 8
1.1 Background to Release 3.50 . 8
1.2 XFS Service-Specific Programming . 8
2. Check Readers and Scanners . 10
3. References . 11
4. Info Commands . 12
4.1 WFS_INF_CHK_STATUS . 12
4.2 WFS_INF_CHK_CAPABILITIES . 15
4.3 WFS_INF_CHK_FORM_LIST . 18
4.4 WFS_INF_CHK_MEDIA_LIST . 19
4.5 WFS_INF_CHK_QUERY_FORM . 20
4.6 WFS_INF_CHK_QUERY_MEDIA . 22
4.7 WFS_INF_CHK_QUERY_FIELD . 24
5. Execute Commands . 26
5.1 WFS_CMD_CHK_PROCESS_FORM . 26
5.2 WFS_CMD_CHK_RESET . 29
5.3 WFS_CMD_CHK_SET_GUIDANCE_LIGHT . 30
5.4 WFS_CMD_CHK_POWER_SAVE_CONTROL . 32
5.5 WFS_CMD_CHK_SYNCHRONIZE_COMMAND . 33
6. Events . 34
6.1 WFS_EXEE_CHK_NOMEDIA . 34
6.2 WFS_EXEE_CHK_MEDIAINSERTED . 35
6.3 WFS_SRVE_CHK_MEDIAINSERTED . 36
6.4 WFS_EXEE_CHK_FIELDERROR . 37
6.5 WFS_EXEE_CHK_FIELDWARNING . 38
6.6 WFS_USRE_CHK_INKTHRESHOLD . 39
6.7 WFS_SRVE_CHK_MEDIADETECTED . 40
6.8 WFS_SRVE_CHK_DEVICEPOSITION . 41
6.9 WFS_SRVE_CHK_POWER_SAVE_CHANGE . 42
7. Forms Language Usage . 43
7.1 Definition Syntax . 44
7.2 XFS form/media definition files in multi-vendor environments . 45
7.3 Form and Media Measurements . 46
7.4 Form Definition . 47

2

---------------------- Page: 4 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)


7.5 Field Definition . 48
7.6 Media Definition . 51
8. C - Header file . 52

3

---------------------- Page: 5 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

European Foreword
This CEN Workshop Agreement has been developed in accordance with the CEN-CENELEC Guide 29
“CEN/CENELEC Workshop Agreements – The way to rapid consensus” and with the relevant provisions of
CEN/CENELEC Internal Regulations – Part 2. It was approved by a Workshop of representatives of interested
parties on 2022-11-08, the constitution of which was supported by CEN following several public calls for
participation, the first of which was made on 1998-06-24. However, this CEN Workshop Agreement does not
necessarily include all relevant stakeholders.

The final text of this CEN Workshop Agreement was provided to CEN for publication on 2022-11-18.

The following organizations and individuals developed and approved this CEN Workshop Agreement:

• AURIGA SPA
• CIMA SPA
• DIEBOLD NIXDORF SYSTEMS GMBH
• FIS BANKING SOLUTIONS UK LTD (OTS)
• FUJITSU TECHNOLOGY SOLUTIONS
• GLORY LTD
• GRG BANKING EQUIPMENT HK CO LTD
• HITACHI CHANNEL SOLUTIONS CORP
• HYOSUNG TNS INC
• JIANGSU GUOGUANG ELECTRONIC INFORMATION TECHNOLOGY
• KAL
• KEBA HANDOVER AUTOMATION GMBH
• NCR FSG
• NEXUS SOFTWARE
• OBERTHUR CASH PROTECTION
• OKI ELECTRIC INDUSTRY SHENZHEN
• SALZBURGER BANKEN SOFTWARE
• SECURE INNOVATION
• SIGMA SPA
It is possible that some elements of this CEN/CWA may be subject to patent rights. The CEN-CENELEC policy on
patent rights is set out in CEN-CENELEC Guide 8 “Guidelines for Implementation of the Common IPR Policy on
Patents (and other statutory intellectual property rights based on inventions)”. CEN shall not be held responsible for
identifying any or all such patent rights.

The Workshop participants have made every effort to ensure the reliability and accuracy of the technical and non-
technical content of CWA 16926-7, but this does not guarantee, either explicitly or implicitly, its correctness. Users
of CWA 16926-7 should be aware that neither the Workshop participants, nor CEN can be held liable for damages

4

---------------------- Page: 6 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

or losses of any kind whatsoever which may arise from its application. Users of CWA 16926-7 do so on their own
responsibility and at their own risk.
The CWA is published as a multi-part document, consisting of:
Part 1: Application Programming Interface (API) - Service Provider Interface (SPI) - Programmer's Reference
Part 2: Service Classes Definition - Programmer's Reference
Part 3: Printer and Scanning Device Class Interface - Programmer's Reference
Part 4: Identification Card Device Class Interface - Programmer's Reference
Part 5: Cash Dispenser Device Class Interface - Programmer's Reference
Part 6: PIN Keypad Device Class Interface - Programmer's Reference
Part 7: Check Reader/Scanner Device Class Interface - Programmer's Reference
Part 8: Depository Device Class Interface - Programmer's Reference
Part 9: Text Terminal Unit Device Class Interface - Programmer's Reference
Part 10: Sensors and Indicators Unit Device Class Interface - Programmer's Reference
Part 11: Vendor Dependent Mode Device Class Interface - Programmer's Reference
Part 12: Camera Device Class Interface - Programmer's Reference
Part 13: Alarm Device Class Interface - Programmer's Reference
Part 14: Card Embossing Unit Device Class Interface - Programmer's Reference
Part 15: Cash-In Module Device Class Interface - Programmer's Reference
Part 16: Card Dispenser Device Class Interface - Programmer's Reference
Part 17: Barcode Reader Device Class Interface - Programmer's Reference
Part 18: Item Processing Module Device Class Interface - Programmer's Reference
Part 19: Biometrics Device Class Interface - Programmer's Reference
Parts 20 - 28: Reserved for future use.
Parts 29 through 47 constitute an optional addendum to this CWA. They define the integration between the SNMP
standard and the set of status and statistical information exported by the Service Providers.
Part 29: XFS MIB Architecture and SNMP Extensions - Programmer’s Reference
Part 30: XFS MIB Device Specific Definitions - Printer Device Class
Part 31: XFS MIB Device Specific Definitions - Identification Card Device Class
Part 32: XFS MIB Device Specific Definitions - Cash Dispenser Device Class
Part 33: XFS MIB Device Specific Definitions - PIN Keypad Device Class
Part 34: XFS MIB Device Specific Definitions - Check Reader/Scanner Device Class
Part 35: XFS MIB Device Specific Definitions - Depository Device Class
Part 36: XFS MIB Device Specific Definitions - Text Terminal Unit Device Class
Part 37: XFS MIB Device Specific Definitions - Sensors and Indicators Unit Device Class
Part 38: XFS MIB Device Specific Definitions - Camera Device Class
Part 39: XFS MIB Device Specific Definitions - Alarm Device Class
Part 40: XFS MIB Device Specific Definitions - Card Embossing Unit Class
Part 41: XFS MIB Device Specific Definitions - Cash-In Module Device Class
Part 42: Reserved for future use.
Part 43: XFS MIB Device Specific Definitions - Vendor Dependent Mode Device Class
Part 44: XFS MIB Application Management
Part 45: XFS MIB Device Specific Definitions - Card Dispenser Device Class

5

---------------------- Page: 7 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

Part 46: XFS MIB Device Specific Definitions - Barcode Reader Device Class
Part 47: XFS MIB Device Specific Definitions - Item Processing Module Device Class
Part 48: XFS MIB Device Specific Definitions - Biometrics Device Class
Parts 49 - 60 are reserved for future use.
Part 61: Application Programming Interface (API) - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Service Provider Interface (SPI) - Programmer's Reference
Part 62: Printer and Scanning Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Programmer's Reference
Part 63: Identification Card Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Programmer's Reference
Part 64: Cash Dispenser Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 65: PIN Keypad Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 66: Check Reader/Scanner Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 67: Depository Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
Part 68: Text Terminal Unit Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version
3.50 (this CWA) - Programmer's Reference
Part 69: Sensors and Indicators Unit Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 70: Vendor Dependent Mode Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 71: Camera Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
Part 72: Alarm Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
Part 73: Card Embossing Unit Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 74: Cash-In Module Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 75: Card Dispenser Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 76: Barcode Reader Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50
(this CWA) - Programmer's Reference
Part 77: Item Processing Module Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to
Version 3.50 (this CWA) - Programmer's Reference
Part 78: Biometric Device Class Interface - Migration from Version 3.40 (CWA 16296:2020) to Version 3.50 (this
CWA) - Programmer's Reference
In addition to these Programmer's Reference specifications, the reader of this CWA is also referred to a
complementary document, called Release Notes. The Release Notes contain clarifications and explanations on the
CWA specifications, which are not requiring functional changes. The current version of the Release Notes is
available online from: https://www.cencenelec.eu/areas-of-work/cen-sectors/digital-society-cen/cwa-download-
area/.
The information in this document represents the Workshop's current views on the issues discussed as of the date of
publication. It is provided for informational purposes only and is subject to change without notice. CEN makes no
warranty, express or implied, with respect to this document.


6

---------------------- Page: 8 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

Revision History:
3.00 October 18, 2000 Initial Release.
3.10 November 29, 2007 For a description of changes from version 3.00 to version
3.10 see the CHK 3.10 Migration document.
3.20 March 2, 2011 For a description of changes from version 3.10 to version
3.20 see the CHK 3.20 Migration document.
3.30 March 19, 2015 For a description of changes from version 3.20 to version
3.30 see the CHK 3.30 Migration document.
3.40 December 06, 2019 For a description of changes from version 3.30 to version
3.40 see the CHK 3.40 Migration document.
3.50 November 18, 2022 For a description of changes from version 3.40 to version
3.50 see the CHK 3.50 Migration document.



7

---------------------- Page: 9 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

1. Introduction
1.1 Background to Release 3.50
The CEN/XFS Workshop aims to promote a clear and unambiguous specification defining a multi-vendor software
interface to financial peripheral devices. The XFS (eXtensions for Financial Services) specifications are developed
within the CEN (European Committee for Standardization/Information Society Standardization System) Workshop
environment. CEN Workshops aim to arrive at a European consensus on an issue that can be published as a CEN
Workshop Agreement (CWA).
The CEN/XFS Workshop encourages the participation of both banks and vendors in the deliberations required to
create an industry standard. The CEN/XFS Workshop achieves its goals by focused sub-groups working
electronically and meeting quarterly.
Release 3.50 of the XFS specification is based on a C API and is delivered with the continued promise for the
protection of technical investment for existing applications. This release of the specification extends the
functionality and capabilities of the existing devices covered by the specification:
• Addition of E2E security
• PIN Password Entry

1.2 XFS Service-Specific Programming
The service classes are defined by their service-specific commands and the associated data structures, error codes,
messages, etc. These commands are used to request functions that are specific to one or more classes of Service
Providers, but not all of them, and therefore are not included in the common API for basic or administration
functions.
When a service-specific command is common among two or more classes of Service Providers, the syntax of the
command is as similar as possible across all services, since a major objective of XFS is to standardize function
codes and structures for the broadest variety of services. For example, using the WFSExecute function, the
commands to read data from various services are as similar as possible to each other in their syntax and data
structures.
In general, the specific command set for a service class is defined as a superset of the specific capabilities likely to
be provided by the developers of the services of that class; thus any particular device will normally support only a
subset of the defined command set.
There are three cases in which a Service Provider may receive a service-specific command that it does not support:
The requested capability is defined for the class of Service Providers by the XFS specification, the particular vendor
implementation of that service does not support it, and the unsupported capability is not considered to be
fundamental to the service. In this case, the Service Provider returns a successful completion, but does no operation.
An example would be a request from an application to turn on a control indicator on a passbook printer; the Service
Provider recognizes the command, but since the passbook printer it is managing does not include that indicator, the
Service Provider does no operation and returns a successful completion to the application.
The requested capability is defined for the class of Service Providers by the XFS specification, the particular vendor
implementation of that service does not support it, and the unsupported capability is considered to be fundamental
to the service. In this case, a WFS_ERR_UNSUPP_COMMAND error for Execute commands or
WFS_ERR_UNSUPP_CATEGORY error for Info commands is returned to the calling application. An example
would be a request from an application to a cash dispenser to retract items where the dispenser hardware does not
have that capability; the Service Provider recognizes the command but, since the cash dispenser it is managing is
unable to fulfil the request, returns this error.

8

---------------------- Page: 10 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

The requested capability is not defined for the class of Service Providers by the XFS specification. In this case, a
WFS_ERR_INVALID_COMMAND error for Execute commands or WFS_ERR_INVALID_CATEGORY error
for Info commands is returned to the calling application.
This design allows implementation of applications that can be used with a range of services that provide differing
subsets of the functionalities that are defined for their service class. Applications may use the WFSGetInfo and
WFSAsyncGetInfo commands to inquire about the capabilities of the service they are about to use, and modify
their behavior accordingly, or they may use functions and then deal with error returns to make decisions as to how
to use the service.

9

---------------------- Page: 11 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

2. Check Readers and Scanners
This specification describes the XFS service class of check readers and scanners. Check image scanners are treated
as a special case of check readers, i.e. image-enabled instances of the latter. This class includes devices with a range
of features, from small hand-held read-only devices through which checks are manually swiped one at a time, to
desktop units which automatically feed the check one at a time; recording the MICR data and check image, and
endorse or encode the check. The specification of this service class includes definitions of the service-specific
commands that can be issued, using the WFSAsyncExecute, WFSExecute, WFSGetInfo and WFSAsyncGetInfo
functions.
In the U.S., checks are always encoded in magnetic ink for reading by Magnetic Ink Character Recognition
(MICR), and a single font is always used. In Europe some countries use MICR and some use Optical Character
Recognition (OCR) character sets, with different fonts, for their checks.
In all countries, typical fields found encoded on a check include the bank ID number and the account number. Part
of the processing done by the bank is to also encode the amount on the check, usually done by having an operator
enter the handwritten or typewritten face amount on a numeric keypad.
This service class is currently defined only for attended branch service.

10

---------------------- Page: 12 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

3. References
1. XFS Application Programming Interface (API)/Service Provider Interface (SPI), Programmer’s Reference
Revision 3.50

11

---------------------- Page: 13 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

4. Info Commands
4.1 WFS_INF_CHK_STATUS
Description This function is used to query the status of the device and the service.
Input Param None.
Output Param LPWFSCHKSTATUS lpStatus;
struct _wfs_chk_status
{
WORD  fwDevice;
WORD  fwMedia;
WORD  fwInk;
LPSTR  lpszExtra;
DWORD  dwGuidLights[WFS_CHK_GUIDLIGHTS_SIZE];
WORD  wDevicePosition;
USHORT usPowerSaveRecoveryTime;
WORD  wAntiFraudModule;
} WFSCHKSTATUS, *LPWFSCHKSTATUS;
fwDevice
Specifies the state of the check reader device as one of:
Value Meaning
WFS_CHK_DEVONLINE The device is online (i.e. powered on and
operable).
WFS_CHK_DEVOFFLINE The device is offline (e.g. the operator has
taken the device offline by turning a switch).
WFS_CHK_DEVPOWEROFF The device is powered off or physically not
connected.
WFS_CHK_DEVNODEVICE There is no device intended to be there; e.g.
this type of self service machine does not
contain such a device or it is internally not
configured.
WFS_CHK_DEVHWERROR The device is inoperable due to a hardware
error.
WFS_CHK_DEVUSERERROR The device is inoperable because a person is
preventing proper device operation.
WFS_CHK_DEVBUSY The device is busy and unable to process an
execute command at this time.
WFS_CHK_DEVFRAUDATTEMPT The device is present but is inoperable
because it has detected a fraud attempt.
WFS_CHK_DEVPOTENTIALFRAUD The device has detected a potential fraud
attempt and is capable of remaining in
service. In this case the application should
make the decision as to whether to take the
device offline.
fwMedia
Specifies the status of the media in the check reader as one of:
Value Meaning
WFS_CHK_MEDIANOTSUPP The capability to report the state of the check
media is not supported by the device.
WFS_CHK_MEDIANOTPRESENT No media is inserted in device.
WFS_CHK_MEDIAREQUIRED Insertion of media required.
WFS_CHK_MEDIAPRESENT Media inserted in device.
WFS_CHK_MEDIAJAMMED Media jam in device.
fwInk
Specifies the status of the ink in the check reader as one of:
Value Meaning
WFS_CHK_INKNOTSUPP Capability not supported by the device.

12

---------------------- Page: 14 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

WFS_CHK_INKFULL Ink supply in device is full.
WFS_CHK_INKLOW Ink supply in device is low.
WFS_CHK_INKOUT Ink supply in device is empty.
lpszExtra
Pointer to a list of vendor-specific, or any other extended, information. The information is
returned as a series of “key=value” strings so that it is easily extensible by Service Providers.
Each string is null-terminated, with the final string terminating with two null characters. An
empty list may be indicated by either a NULL pointer or a pointer to two consecutive null
characters.
dwGuidLights [.]
Specifies the state of the guidance light indicators. A number of guidance light types are defined
below. Vendor specific guidance lights are defined starting from the end of the array. The
maximum guidance light index is WFS_CHK_GUIDLIGHTS_MAX.
Specifies the state of the guidance light indicator as
WFS_CHK_GUIDANCE_NOT_AVAILABLE, WFS_CHK_GUIDANCE_OFF or a
combination of the following flags consisting of one type B, optionally one type C and optionally
one type D.
Value Meaning Type
WFS_CHK_GUIDANCE_NOT_AVAILABLE The status is not available. A
WFS_CHK_GUIDANCE_OFF The light is turned off. A
WFS_CHK_GUIDANCE_SLOW_FLASH The light is blinking slowly. B
WFS_CHK_GUIDANCE_MEDIUM_FLASH The light is blinking medium B
frequency.
WFS_CHK_GUIDANCE_QUICK_FLASH The light is blinking quickly. B
WFS_CHK_GUIDANCE_CONTINUOUS The light is turned on B
continuous (steady).
WFS_CHK_GUIDANCE_RED The light is red. C
WFS_CHK_GUIDANCE_GREEN The light is green. C
WFS_CHK_GUIDANCE_YELLOW The light is yellow. C
WFS_CHK_GUIDANCE_BLUE The light is blue. C
WFS_CHK_GUIDANCE_CYAN The light is cyan. C
WFS_CHK_GUIDANCE_MAGENTA The light is magenta. C
WFS_CHK_GUIDANCE_WHITE The light is white. C
WFS_CHK_GUIDANCE_ENTRY The light is in the entry state. D
WFS_CHK_GUIDANCE_EXIT The light is in the exit state. D
dwGuidLights [WFS_CHK_GUIDANCE_CHECKUNIT]
Specifies the state of the guidance light indicator on the check processing unit.
wDevicePosition
Specifies the device position. The device position value is independent of the fwDevice value, e.g.
when the device position is reported as WFS_CHK_DEVICENOTINPOSITION, fwDevice can
have any of the values defined above (including WFS_CHK_DEVONLINE or
WFS_CHK_DEVOFFLINE). If the device is not in its normal operating position (i.e.
WFS_CHK_DEVICEINPOSITION) then media may not be presented through the normal
customer interface. This value is one of the following values:
Value Meaning
WFS_CHK_DEVICEINPOSITION The device is in its normal operating
position, or is fixed in place and cannot be
moved.
WFS_CHK_DEVICENOTINPOSITION The device has been removed from its
normal operating position.
WFS_CHK_DEVICEPOSUNKNOWN Due to a hardware error or other condition,
the position of the device cannot be
determined.
WFS_CHK_DEVICEPOSNOTSUPP The physical device does not have the
capability of detecting the position.

13

---------------------- Page: 15 ----------------------
SIST-TP CWA 16926-7:2023
CWA 16926-7:2022 (E)

usPowerSaveRecoveryTime
Specifies the actual number of seconds required by the device to resume its normal operational
state from the current power saving mode. This value is zero if either the power saving mode has
not been activated or no power save control is supported.
wAntiFraudModule
Specifi
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.