ISO8583 package (referred to as 8583 package) is an international standard package format, up to 128 field domains, each domain has a unified regulation, and has a minimum and growing. The 8583 package is a bitmap, used to determine the field of field domains of the package. The bitmap is the soul of the 8583 package. It is the key to packing the definition field domain, and understanding the properties of each field domain, 1, the bitmap is as follows: Bitmap location: 1 format: set Long Type: B16 (Binary 16 Bit, 16 * 8 = 128bit) Description: If the first bit of the bitmap is set to '1', it means using an extended bitmap (128 domain), otherwise it means only the basic bitmap ( 64 domains). If a data field is used, the corresponding bit is set to '1', such as using a 41 domain, you need to set the 41 bit of the bitmap to '1'.
Selection conditions: If you use 65 to 128 domain, you need to set the first bit of the domain to '1' 2. The definition of each domain is as follows: typedef struct iso8583 {int bit_flag; / * Domain data type 0 - String, 1 - - Int, 2 - binary * / char * data_name; / * Domain name * / int layth; / * Data domain length * / int LENGTH_IN_BYTE; / * The actual length (if it is long) * / int variable_flag; / * Whether Long Sign 0: No 2: 2 Bits Growth, 3: 3 Bits "/ INT Dattyp; / * 0 - String, 1 - Int, 2 - Binary * / Char * DATA; / * Store specific value * / int attribute; / * reserved * /} ISO8583; ISO8583 TBL8583 [128] = {/ * fld 1 * / {0, "bit map, extended", 8, 0, 0, 2, null, 0}, / * FLD 2 * / {0, "Primary Account Number", 22, 0, 2, 0, NULL, 0}, / * FLD 3 * / {0, "Processing Code", 6, 0, 0, 0, NULL , 0}, / * FLD 4 * / {0, "Amount, Transaction", 12, 0, 0, 1, NULL, 0}, / * FLD 5 * / {0, "NO USE", 12, 0, 0, 0, NULL, 0}, / * fld 6 * / {0, "NO USE", 12, 0, 0, 0, NULL, 0}, / * FLD 7 * / {0, "Transaction Date and Time ", 10, 0, 0, 0, null, 0}, / * fld 8 * / {0," NO USE ", 8, 0, 0, 0, NULL, 0}, / * FLD 9 * / {0 , "NO USE", 8, 0, 0, 0, NULL, 0}, / * FLD 10 * / {0, "NO Use", 8, 0, 0, 0, NULL, 0}, / * FLD 11 * / {0, "System TRACE AUDIT NUMBER", 6, 0, 0, 1, NULL, 0}, / * fl D 12 * / {0, "Time, Local Transaction", 6, 0, 0, 0, NULL, 0}, / * FLD 13 * / {0, "Date, Local Transaction", 4, 0, 0, 0 , NULL, 0}, / * FLD 14 * / {0, "Date, Expiration", 4, 0, 0, 0, NULL, 0}, / * FLD 15 * / {0, "Date, Settlement", 4 , 0, 0, 0, NULL, 0}, / * FLD 16 * / {0, "NO Use", 4, 0, 0, 0, NULL, 0}, / * fld 17 * / {0, "DATE , Capture, 4, 0, 0, 0, NULL, 0}, / * FLD 18 * / {0, "Merchant's Type", 4, 0, 0, 0, NULL, 0}, / * FLD 19 * / {0, "NO USE", 3, 0, 0, 0, NULL, 0}, / * FLD 20 * / {0, "NO USE", 3, 0, 0, 0, NULL, 0}, / * FLD 21 * / {0, "
No use ", 3, 0, 0, 0, null, 0}, / * fld 22 * / {0," Point of Service Entry Mode ", 3, 0, 0, 0, NULL, 0}, / * fld 23 * / {0, "NO USE", 3, 0, 0, 0, NULL, 0}, / * FLD 24 * / {0, "NO USE", 3, 0, 0, 0, NULL, 0} , / * FLD 25 * / {0, "Point of Service Condition Code", 2, 0, 0, 0, NULL, 0}, / * FLD 26 * / {0, "NO USE", 2, 0, 0 , 0, NULL, 0}, / * FLD 27 * / {0, "NO USE", 1, 0, 0, 0, NULL, 0}, / * FLD 28 * / {0, "Field27", 6, 0, 0, 0, NULL, 0}, / * fld 29 * / {0, "NO USE", 8, 0, 1, 0, NULL, 0}, / * FLD 30 * / {0, "NO USE ", 8, 0, 1, 0, null, 0}, / * fld 31 * / {0," NO USE ", 8, 0, 1, 0, NULL, 0}, / * FLD 32 * / {0 "AcquiRer Institution ID. Code", 11, 0, 2, 0, NULL, 0}, / * FLD 33 * / {0, "Forwarding Institution ID. Code", 11, 0, 2, 0, NULL, 0 }, / * FLD 34 * / {0, "No USE", 28, 0, 2, 0, NULL, 0}, / * FLD 35 * / {0, "Track 2 Data", 37, 0, 2, 0, NULL, 0}, / * FLD 36 * / {0, "Track 3 Data", 104, 0, 3, 0, NULL, 0}, / * fld 37 * / {0, "Retrieval Reference Number", 12, 0, 0, 0, NULL, 0}, / * fld 38 * / {0, "Auth. Identification Response", 6, 0, 0, 0, NULL, 0 }, / * Fld 39 * / {0, "response code", 2, 0, 0, 0, null, 0}, / * fld 40 * / {0, "NO USE", 3, 0, 0, 0 , NULL, 0}, / * FLD 41 * / {0, "Card Acceptor Terminal ID.", 8, 0, 0, 0, NULL, 0}, / * fld 42 * / {0, "Card Acceptor Identification Code ", 15, 0, 0, 0, NULL, 0}, / * fld 43 * / {0," Card Acceptor Name Location ", 40, 0, 0, 0, NULL, 0}, / * FLD 44 * / {0, "Additional Response Data", 25, 0, 2, 0, NULL, 0}, / * fld 45 * / {0, "NOSE", 76, 0, 2, 0, NULL, 0}, / * FLD 46 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 47 * / {0, "Field47"
, 999, 0, 3, 0, null, 0}, / * fld 48 * / {0, "Additional Data --- Private", 999, 0, 3, 0, NULL, 0}, / * FLD 49 * / {0, "Currency Code, Transaction", 3, 0, 0, 0, NULL, 0}, / * fld 50 * / {0, "Currency Code, Settlement", 3, 0, 0, 0, NULL, 0}, / * fld 51 * / {0, "NO USE", 3, 0, 0, 0, NULL, 0}, / * FLD 52 * / {0, "Personal Identification Number Data", 8, 0, 0, 2, NULL, 0}, / * fld 53 * / {0, "Security Related Control Information", 16, 0, 0, 0, NULL, 0}, / * FLD 54 * / {0, "Additional Amounts ", 120, 0, 3, 0, null, 0}, / * FLD 55 * / {0," NO USE ", 999, 0, 3, 0, NULL, 0}, / * fld 56 * / {0 , "NO USE", 999, 0, 3, 0, NULL, 0}, / * fld 57 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 58 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * fld 59 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 60 * / {0, "NO USE", 5, 0, 3, 0, NULL, 0}, / * FLD 61 * / {0, "NO USE", 999, 0, 3, 0, NULL , 0}, / * FLD 62 * / {0, "NO USE", 11, 0, 3, 0, NULL, 0}, / * FLD 63 * / {0, "NO USE", 11, 0, 3 , 0, NULL, 0}, / * FLD 64 * / {0, "Message Authentication Code Field", 8, 0, 0, 2, NUL L, 0}, / * fld 65 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 66 * / {0, "NO USE", 1, 0, 0, 0, NULL, 0}, / * FLD 67 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 68 * / {0, "NO USE", 999, 0, 3, 0, null, 0}, / * fld 69 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * fld 70 * / {0, " System Management Information Code ", 3, 0, 0, 0, NULL, 0}, / * FLD 71 * / {0," NO USE ", 999, 0, 3, 0, NULL, 0}, / * FLD 72 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 73 * / {0, "NO Use", 6, 0, 0, 0, NULL, 0}, / * FLD 74 * / {0, "Number of Credits"
, 10, 0, 0, 0, NULL, 0}, / * FLD 75 * / {0, "Reversal Number of Credits", 10, 0, 0, 0, NULL, 0}, / * FLD 76 * / { 0, "Number of Debits", 10, 0, 0, 0, NULL, 0}, / * FLD 77 * / {0, "Reversal Number of Debits", 10, 0, 0, 0, NULL, 0}, / * FLD 78 * / {0, "Number of Transfer", 10, 0, 0, 0, NULL, 0}, / * FLD 79 * / {0, "Reversal Number of Transfer", 10, 0, 0, 0, NULL, 0}, / * FLD 80 * / {0, "Number of Inquirs", 10, 0, 0, 0, NULL, 0}, / * FLD 81 * / {0, "Authorization Number", 10 , 0, 0, 0, NULL, 0}, / * FLD 82 * / {0, "NO USE", 12, 0, 0, 0, NULL, 0}, / * FLD 83 * / {0, "CREDITS , Transcation Feeamount ", 12, 0, 0, 0, NULL, 0}, / * FLD 84 * / {0," NO USE ", 12, 0, 0, 0, NULL, 0}, / * FLD 85 * / {0, "Debits, Transcation Feeamount", 12, 0, 0, 0, NULL, 0}, / * fld 86 * / {0, "Amount of Credits", 16, 0, 0, 0, NULL, 0 }, / * FLD 87 * / {0, "Reversal Amount of Credits", 16, 0, 0, 0, NULL, 0}, / * fld 88 * / {0, "Amount of Debits", 16, 0, 0, 0, NULL, 0}, / * fld 89 * / {0, "Reversal Amount of debits", 16, 0, 0, 0, null, 0}, / * fld 90 * / {0, "Original Dat A elements ", 42, 0, 0, 0, null, 0}, / * fld 91 * / {0," File Update Code ", 1, 0, 0, 0, NULL, 0}, / * FLD 92 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * fld 93 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 94 * / {0, "Service Indicator", 7, 0, 0, 0, NULL, 0}, / * FLD 95 * / {0, "Replacement Amounts", 42, 0, 0, 0, NULL, 0}, / * FLD 96 * / {0, "NO USE", 8, 0, 0, 0, NULL, 0}, / * fld 97 * / {0, "Amount of Net Settlement", 16, 0, 0, 0, NULL, 0}, / * fld 98 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 99 * / {0, "Settlement Institution ID"
, 11, 0, 2, 0, NULL, 0}, / * FLD 100 * / {0, "Recveing Institution ID", 11, 0, 2, 0, NULL, 0}, / * FLD 101 * / {0 , "FileName", 17, 0, 2, 0, NULL, 0}, / * FLD 102 * / {0, "Account Identification1", 28, 0, 2, 0, NULL, 0}, / * FLD 103 * / {0, "Account Identification2", 28, 0, 2, 0, NULL, 0}, / * FLD 104 * / {0, "NO Use", 999, 0, 3, 0, NULL, 0}, / * FLD 105 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 106 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 107 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * fld 108 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 109 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 110 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * fld 111 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 112 * / {0, "NO USE ", 999, 0, 3, 0, null, 0}, / * fld 113 * / {0," NO USE ", 999, 0, 3, 0, NULL, 0}, / * FLD 114 * / {0 , "No USE", 999, 0, 3, 0, NULL, 0}, / * FLD 115 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 116 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * fld 117 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 118 * / {0, "NO US E ", 999, 0, 3, 0, null, 0}, / * fld 119 * / {0," NO USE ", 999, 0, 3, 0, null, 0}, / * fld 120 * / { 0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * fld 121 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 122 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * fld 123 * / {0, "New Pin Data", 8, 0, 3, 2, NULL, 0 }, / * FLD 124 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 125 * / {0, "NO USE", 999, 0, 3, 0 , NULL, 0}, / * FLD 126 * / {0, "NO USE", 999, 0, 3, 0, NULL, 0}, / * FLD 127 * / {0, "NO USE", 999, 0 , 3, 0, NULL, 0}, / * fld 128 * / {0, "
Message Authentication Code Field ", 8, 0, 0, 2, NULL, 0},}; 3, becoming long, fixed length domain Description If the second domain: domain name is the primary account, the data type is String length 22 (is long The length must not exceed this) is a 2-bit varying long area because it is 2-bit long, and the actual length of the data is added before the package is packaged. If it is 19 bits, it is represented as: 19 data value (ie the first two " Bit is the length), such as the third domain: the domain name is the processing code, the data type is String length 6. It is a fixed long area to fill 6 bits. Addition A: ISO8583 Description 1, information type (Message Type) defined bit Location: - Format: Type: N4 Description: The first part of the packet, defines the type of packet. The data type is set by the packet, and the following requirements should be followed: The packet start section must be the information type; I can give a refusal answer. 0100 Authorized Trading 0110 Authorized Trading Answer 0200 Financial Transaction 0210 Financial Transaction Reply 0240 Query Trading 0250 Query Transaction Reply 0400 Raise Transaction 0410 Raise Transaction Reply 0800 Management Transaction 0810 Management Transaction Reply 2 , Bit Map - Basic Bitmap and Extended Bit Chart Location: 1 Format: Setting: B16 Description: If the first bit of the bitmap is set to '1', it means using the extended bitmap, otherwise Represents only the basic bitmap. For example, use a data field, the corresponding bit is set to '1', such as using a 41 domain, you need to set the 41 bit of the bitmap to '1'. Selection conditions: With 65 to 128 domain, set the domain to '1' 3, bit02 primary account (primary account number) bitmap location: 02 Format: Growth, LLVAR type: n..22 Description: Unique confirmation a user transaction Basic account. Because the bank electronic service system involves multiple application systems, the account length is up to 22 digits, so the 19th length of the original standard is changed to 22 bits. Bit03 processing code bitmap location: 03 format: set Long Type: N6 Description: Used to describe the code that affects the client account. Processing code and information code can only define a type of transaction. Processing code consists of three parts: Location Description 1-2 Trading Action Code 3-4 Pay the account type, used for debit classes, such as query, charge, transaction transaction. 5-6 income account type, used for charge, transfer, etc., where: FF: Pay account TT: Income account * Depending on the host 5, Bit04 transaction amount (Amount, Transaction) Bitmap location: 04 Format: Type: N12 Description: Account people require transaction amounts, without any processing and transaction costs. The amount of the amount and the currency code should be able to indicate the minimum unit of the corresponding currency. ISO4217 related currency code definitions. Such as "000000000100" is used to represent the US dollar, indicating 1.00 yuan;
For trading such as queries, the transaction amount should be "00000000000000". 6, BIT06 Trading Date and Time Transmission Date and Time Bitmap Location: 07 Format: Performance, MMDDHMMSS Type: N10 Description: Local Trading Date and Time 7, Bit11 System Tracking No. (Systems Trace Audit Number) Bitmap Location: 11 Format : Type: N6 Description: Terminal transaction tracking number. The transaction initiates the terminal filled out, and "Trading Date, Time", the information type, etc., can only define the only transaction of a terminal. That is to say, on the same day, the system tracking number of the same type of transaction should be different. The system tracking number cannot be modified during the transaction process. Use this domain to match the return of requests and notification classes. The application system uses this domain to check if the received license, financial, automatic, settlement, management, and network management, such as the response package of the network management, etc. Is its request package response. The system tracking number is not used to match the automatic key transaction, nor does it be used to match the previous pre-authorized transactions when pre-authorized consumption. Non-90 domain. For the bank electronic service system, the system tracking number is the transaction number. 8, BIT12 Local Trading Time (Time, Local Transaction) Bitmap Location: 12 Format: Pixabay, HHMMSS Type: N6 Description: The time taken on the terminal. Local trading hours cannot change during transaction processing. The local trading time cannot be changed when automatic rush is forwarded. 9, BIT13 Local Trading Date (Date, Local Transaction) Bitmap Location: 13 Format: Type: MMDD Type: N4 Description: The time taken on the terminal. The local trading time cannot be changed, and the local trading time cannot be changed when the transaction is stored, and the local trading time cannot be changed. 10, Bit14 Validity (DATE, Expiration) Bitmap Location: 14 Format: Setting: YYMM Type: N4 Description: The validity period of the card, the monthly month difference due to the card class write magnetic format, the validity period of the number of orders may not increase the card The authorization agency extracts the validity period of the card from the two tracks. Such as cards, no track, and the number of orders should request the validity of the handcuffs. Select conditions: 100, 200, 400 and other trading, if there is no 2, 3 track, must have this domain. 11, Bit15 settlement date (Date, Settlement) Bitmap location: 15 Format: Performance, MMDD Type: N4 Description: Bank electronic service system and host settlement time, format monthly day. The transaction that occurs before the date of checkout, participate in the day settlement. At the time of settlement, the checkout date is also used to calculate processing, transaction costs. 12, Bit17 Get Date (Date, Capture) Bitmap Location: 17 Format: Performance, MMDD Type: N4 Description: Get the accounting date of the transaction from the host. Usually used for hosts and merchants clearing. 13, Bit18 Merchant Type (Merchant's Type) Bitmap Location: 18 Format: Type: N4 Description: Define the code merchant type of the merchant product and service type for finance, authorized transactions, used to specify the type of service point.
It mainly has the following uses: the maximum time to determine the pre-authorization transaction; control the legal limit; to control the transaction authorization, control network operation rules; fraud testing; for merchant classification reports; transaction cost processing. According to ISO8583 standard, the corresponding national standard should be used. Merchant type code table: Merchant type code industry Type Description 4215 Postal Service 4511 Civil Aviation 4722 Travel 4782 Parade 4789 Other Transportation Service 4614 Telecom Service 5542 Gas Station 5812 Restaurant 5999 Shopping 6010 Financial Institution - Artificial Cash Payment 6011 Financial Institution - Automatic Cash Payment 6012 Financial Institutions - All kinds of services 7011 hotels, hotel 7299 All kinds of personal services: Laundry, beauty, 7399 all kinds of business services: parking, car rental, advertising, other services 7699 all kinds of repair services: repair, car wash, trailer 7996 entertainment : Movies, Theater, Sports, Games 8099 Medical Services 8111 Legal Services 8999 Various Professional Services: Accounting, Education, Decoration, Engineering Selection Conditions: Delivery Terminal Lifting Transactions Be sure to have this domain. 14, bit22 Service Point Input Mode (Point-of-Service Entry Mode) Bitmap Location: 22 Format: Type: N3 Description: Define the input mode of the PIN and PAN on the service terminal. The service point input mode includes the following two aspects: Location Description 1-2 In the service terminal PAN validity period input mode 3-3 Input mode of input mode PAN on the service terminal PAN is encoded as follows: PAN input mode Description 00 I don't know 01 Handmade 02 Magnetic Card 03 Barcode Scanner (BAR) 04 Optical Symbol Reader (OCR) 05 Integrated Circuit Card (IC Card) PIN Input Method Coding As follows: PIN Input Method Description 0 I don't know 1 terminal can receive the PIN 2 terminal Can not receive PIN Selection Condition: The transaction initiated by the service point terminal must have this domain. 15, bit25 Service Condition Condition Code Location: 25 Format: Type: N2 Description: Define the service point type usage of the transaction occurred: The following is the service point condition code supported by Cyberbank. Service Point Condition Code Service Point Terminal Type 2 ATM (ATM) 10 Bank Terminal (10) 14POS 20 Phone Bank 16, Bit32 Labor IdiTification Data Code: 32 Format: LLVAR Type: n .. 11 Description: In financial transactions, this domain represents the identification code response packet of the banking mechanism that the transaction occurred must be the same as the request packet. 17, BIT33 forward agency identification code bitmap location: 33 Format: LLVAR type: n..11 Description: In financial transactions this domain indicates the identification code of the bank organization where the account is located in the network management transaction 800 / In 810, the domain contains code of the transaction initiator. Answer packets must be the same as the request packet. 18, BIT35 Diapass Data (TRACK 2 DATA) Bitmap Location: 35 Format: LLVAR Type: Z..37 Description: Written on the card diaphragm. The data composition follows ISO7811-1985 standards, and the data contains domain separators, but does not include card barators, end values, LRCs, etc. Whether the two magneur detection card is compliant with international standards.
To support the international exchange receipt line, the separation of the secondary magnetic track should be changed to "=". In addition to any modification of the two-track data, such as modifying the check word, validity period, service code, etc. of the PAN. 19, BIT36 Triass Data (Track 3 DATA) Bitmap Location: 36 Format: LLLVAR Type: Z ... 104 Description: Written on the card three magnetrics. Data should be composed to follow the ISO4909 standard, including domain separators in the data, but does not include card barata, end, and LRC, etc. Note: The length will be described as a 3-digit number. 20, Bit37 Retrieve RETRIEVAL Reference Number Bitmap Location: 37 Format: Performance Type: AN12 Description: Retrieving Search 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽The search index number does not require printing on the bill of cardholders. Its main purpose is to define a data item between the collection line and the authorization line to track and retrieve transactions. Authorization agencies can print search index marks on the customer's statement. The search index number is allocated by the collection line. Selection conditions: Can be included in the transaction request of the subscriber mechanism. If there is in the transaction request, it should be returned in response data. 21, BITHORIZATION Identification Bitmap Location: 38 Format: Type: AN6 Description: The returned code returned by the transaction authorization agency. The authorization code is used to authorize the credit card on the service point terminal; the authorization agency is selected by the network operation, and the present domain can be selected. 22, Bit39 Return Code (Response Code) Bitmap Location: 39 Format: Setting: AN2 Description: Define the encoding of its processing results to a transaction. Return code is used to illustrate the processing status of the licensing authority to the financial (authorized) transaction; also to indicate the principal of the automatic key transaction; it is also used to indicate that the target host has received file modification, settlement, management, network management and other transaction requests. . The return code should be as accurate as possible, and the issues and status encountered should be described as much as possible. Network switched hosts, and collecting single line hosts may charge different transaction processing costs in different return codes, and perform different processing procedures. 23, BIT41 Care Card Terminal Location Location: 41 Format: Type: ANS8 Description: Defined to define a service terminal identification code in the subscriber unit, serve the terminal logo in the same merchant The code should be unique. 24, BIT42 Card ACEPTOR Identification Code Bitmap Location: 42 Format: Type: ANS15 Description: Defines the encoding of the trading unit (merchant) in the local and network. 25. Bit43 Card Acceptor Location Bitmap Location: 43 Format: Type: ANS40 Description: Country, province, province, province. City, etc. Selection conditions: If the external card network is used, you must include this domain. 26, Bit44 Additional Return Data (Additional ResponseData) Bitmap Location: 44 Format: LLVAR Type: ANS..25 Description: Other information returned by the authorization agency in the financial (authorized) transaction.
27, BIT48 Additional Data - Private Data-Private Bitmap Location: 48 Format: LLLVAR Type: ANS ... 999 Description: Bank Electronic Service System Using this domain to return bulk queries to return data in its format Output format: CURRENCY CODE (Transaction) Bitmap Location: 49 Format: Type: AN3 Description: Press ISO4217 Defined Trading Currency Code, used to express "Field04). Money species. The transaction currency code refers to the trading type used by the transaction in the subscriber unit. 29, Bit50 settlement currency code (CURRENCY CODE, SETLEMENT) Bitmap Location: 50 Format: Settlement Type: An3 Description: Press ISO4217 The settlement currency code defined by ISO4217, used to represent settlement amount, settlement processing fee, settlement transaction fee, etc. Money species. The settlement currency code refers to the type of currency used during the settlement and liquidation process. 30, Bit52 User Password (PIN) Data (PIN DATA) Bitmap Location: 52 Format: Setting: B16 Description: The user is traded on the service terminal to identify some of the number of user legitimacy. PIN Press the ANSIX9.8 standard with the branch host key to form a ciphertext block. Selection conditions: This domain is required if the password is entered on the terminal. 31, BIT53 Password Related Control Information: 53 Format: Type: AN16 Description: This domain provides additional information about password blocks, used to point out for PIN Key for PIN, for Mac Calculated Mac Key. The domain format is shown in the table below: 0-1 Format code 2N "20" 2-3pin encryption algorithm 2N "01": DES 4-5 Cipheet block format 2N "01": ANSI 6PIN key index 1n'1 'or '2' 7MAC Key index 1n'1 'or' 2 '8-11MAC Check Data 4B 12-15 Filled 4N in the BOC credit card network PIN and MAC each use two keys ---' 1 'number and' 2 The 'key, the transaction calculates the PIN and MAC can only be used in one key, and the KEY index number used is required to fill in this domain. Conditions: If there is a PIN domain or MAC domain, you must have this domain. 32, Bit54 Additional Amount (Additional Amounts) Bitmap Location: 54 Format: LLLVAR Type: ANS ... 120 Description: This domain is returned by the authorized row host to the subscriber balance to the receipt terminal to display or print the order on.
Up to 6 balances in this domain return, each balance return format is as follows: Location Description 0-1 Processing code 3-4 or 5-6-bit defined account type 2-3 amount type: 01- Account amount 02- Available amount 03- Has a amount of 04- Cut amount 40- Available withdrawal limit 56- The amount of money code 4-6 amounts of money code 7'd'-debit amount, 'C'-credit amount 8-19 balances Six The balance must be returned, and the available balance must be returned, and the available balance is displayed on the ATM, POS. 33, BIT64 Information Confirmation (MAC) bitmap position: 64 Format: Setting: B16 Description: The last domain of the packet is used to verify the source of information The legality, and whether the data in the packet is not tampered with. The calculation of the Mac is ANSIX.99, (the last eight-byte is not full of eight people left rosity, right-completed?) In order to improve efficiency, between the sender and the recipient, only the following important domains participate in the MAC computing . If there is the following data field in the packet, they will participate in the computation of the MAC. Bit Domain Name 2 Basic Account 3 Processing Code 4 Transaction Code 11 System Tracking Number 12 Local Trading Time 13 Local Trading Date 32 Labor Code 38 Authorization Code 39 Return Code 41 Label Terminal Code 49 Trading Many Code 95 Replacement Condition: Condition: Use only 1-64 domains of data to use this domain. 34, BIT70 Management Information Code Bitmap Location: 70 Format: Type: N3 Description: Used to define and maintain the internal communication network status of the bank electronic service system and the application work status. Network management information code is used to manage the date "Cutoff", "Sign On / Sign Off", "KEY Exchange", etc. Supports the following network management information code NMIC network management information code action 001 check-in (SIGN ON) 002 Signing (Key Exchange) 201 Checkout Date Switch (CUTOFF) 202 Checkout Date Switch Complete 301 Test (Transaction Number) Bitmap Location: 74 Format: Type: N10 Description: Cyberbank software will receive the following one processing code Add the number of credit transactions. Trading code trading service 00 credit, shopping and service 01 credit, cash with 02 credit, adjustment (customer adjustment) 36, Bit75 credit automatic score transaction pen number (Credits, Reversal Number) bitmap location: 75 format: fixed Long Type: N10 Description: Loan Received Single Rights Automatic Raising, "Chargeback", etc. The total number of transactions such as Cyberbank software adds credit automatic transaction written transaction code trading services 20 credits when receiving the following processing code Return 21 credit, deposit 22 credit, adjustment (customer modification) 37, Bit76 debit transaction pen number (DEBITS, NUMBER) bitmap location: 76 Format: Type: N10 Description: Rebit of financial transactions The transaction number Cyberbank software increases the number of debit transactions when receiving the following processing code.
Trading code transaction service 00 debit, shopping and service 01 debit, cash withdrawal 02 debit, adjustment (customer adjustment) 38, BIT77 debit automatic rush transaction pen number (Reversal Number) bitmap location: 77 format: fixed Long Type: N10 Description: Reserved Separates Automatic Raising, "Chargeback", etc. The total number of transactions such as Cyberbank software increases the number of debit reactive transactions when receiving the following, and reflected in the clearing book. Trading code trading service 20 debit (!!!), return 21 debit, deposit 22 debit, adjustment (customer revision) 39, Bit78 transfer transaction pen number (Number) bitmap location: 78 Format: Type of fixed length : N10 Description: The total number of transactions in the transfer. The system will increase the number of transfer transactions when receiving financial transactions such as processing code. Trading Code Transaction Service 40 Customer Related Account Transmission 40, Bit79 Transfer Automatic Raising Transaction Screen (Transfers, Reversal Number) Bitmap Location: 79 Format: Type: N10 Description: The total number of automatic transaction transactions. The system increasing the number of transfers automatic transactions when receiving an automatic transaction of the following processing code. Trading Code Transaction Services 40 Certificate of Transfers 41, Bit80 Query Transaction Writing Number (Inquiries, Number) Bitmap Location: 80 Format: Performance Type: N10 Description: Successful query trading number. The system software increases the number of query transactions when receiving the following processing code. Trading Code Trading Services 30 Query available 42, Bit81 Authorized Transaction Penmapped Location: 81 Format: Setting: N10 Description: Successful Authorized Transaction Total System Licensing Transactions When receiving an authorized transaction Pick up one. 43, BIT83 credit payment amount (Credits, Transaction FeEamount) Bitmap Location: 83 Format: Setting type: N12 Description: Net trading fee, such as the transaction amount is positive. 44, BIT85 Debit Transaction Amount (DEBITS, Transaction FeEamount) Bitmap Location: 85 Format: Performance Type: N12 Description: Net trading fee, such as the transaction amount is negative. 45, BIT86 credit transaction amount (Credits, Amount) bitmap location: 86 Format: Type: N16 Description: Loan the total transaction amount of financial transactions without any fees. The system increasing the credit transaction amount when receiving the following processing code and reflects in the clearing bill. Trading code trading service 20 credit, return 21 credit, deposit 22 credit, adjustment (customer modification) 46, Bit87 credit automatic ration amount (Credits, Reversal Amount) Bitmap location: 87 Format: Type: N16 Description: The total amount of credit card automatic transaction does not contain any fees. 47, BIT88 Debits, Amount) Bitmap Location: 88 Format: Type: N16 Description: Rebit of the total transaction amount of financial transactions, does not contain any fees. The system increasing the debit transaction amount when receiving the following processing code, and reflects in the clear bill.
Trading code trading service 00 debit, shopping and service 01 debit, cash withdrawal 02 debit, adjustment (customer adjustment) 48, Bit89 debit automatic rush transaction amount (Reversal Amount) bitmap location: 89 format: fixed length Type: N16 Description: The total amount of the debit is automatically scored, does not contain any fees. 49, Bit90 Original Data Elements Bitmap Location: 90 Format: Type: N42 Description: Store some of the data for the original transaction, for modifying or automatic impartial. The data consists of the following five parts: Location Description 1-4 Information Type Codes Set to Original Transaction Information Type Code 5-10 System Tracking Number The original trading system Tracking number 11-20 Trading Date and time transaction Date and time 21- 31 Original transaction of the original transaction of the original transaction is less than 11 institutional code, left supplement '0' 32-42 Original agency formerly transaction listing mechanism less than 11 institution code, left to make '0' 50, Bit91 file modified encoding (File Update Code) Bitmap Location: 91 Format: Type: AN1 Description: Use this domain to indicate how a file is maintained. Cyberbank supports the following modifications: 1 Add Record 2 Change Record 3 Delete Record 5 Query 7 Add File Selection Conditions: 51, Bit94 Service Indicator (Service Indicator) Bitmap Location: 94 Format: Type: AN7 Description: Indicator Modify the service. Selection conditions: 52, Bit95 replacement amount (Replacement Amounts) Bitmap Location: 95 Format: Type: N42 !!! Description: Customer modification or part cancels the completed transaction, the last actual transaction amount, the original transaction of the transaction The amount is stored in 90 domains. Sub-elementamountAttribute transaction actual amount N12 settlement actual amount N12 actual transaction fee X N8 actual settlement fee X N8 53, Bit97 net settlement amount (NET settlement Amount) Bitmap location: 97 Format: Performance Type: x N16 Description: This domain is the net set amount. 502 transactions are used to send the net settlement amount of the day: "C0000000020000000", indicating the loan (' '?) 200,000.00 yuan. "D0000000020000000", indicating the debit ('-'?) 200,000 yuan. 54, Bit99 Settlement Identification Bitmap Location: 99 Format: LLVAR Type: N..11 Description: This domain stores a mechanism code for receiving liquidation information. Returns Packet This domain must be consistent with the request packet. 55, RECEIVING INSTITION Identification bitmap location: 100 format: LLVAR type: n..11 Description: Financial transaction This domain storage license agency code. Net management transactions, 800/820 transactions, this domain storage request destination mechanism code. Returns Packet This domain must be consistent with the request packet.
56, Bit101 File Name (FileName) Bitmap Location: 101 Format: LLVAR Type: ANS..17 Description: The file name set by the sender setting. 57, Bit102 Account 1 (Account Identification1) Bitmap Location: 102 Format: LLVAR Type: ANS..28 Description: A specific customer account. Account 1 is used to describe accounts affected by trading of debit, transfer, payment, etc. Selection conditions: Use when transferring. 58, Bit103 Account 2 (Account IdentiM) Bitmap Location: 103 Format: LLVAR Type: ANS..28 Description: Supplementary information of the transaction, such as the second currency, interest rate code, start date, etc. Definitions 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Position length Description 00-2122 Account 22-276 If this domain exists, press this institution code as routing information. Selection conditions: When the agency is transferred. 60, BIT123 New Pin Data Bitmap Location: 123 Format: LLLVAR Type: B ... 16 Description: Store new passwords when you change your password transaction. Format Reference 52 Domain Selection Condition: This domain must be available when you change your password transaction. 61, BIT128 Information Confirmation Code (MAC) Bitmap Location: 128 Format: Type: B16 Description: The last domain of the packet is used to verify the legality of the source source, and whether the data in the packet is not tampered with. The calculation of the MAC Ansix.99 is increasing efficiency, between the sender and the recipient, only the following important domains participate in the computation of the MAC. If there is the following data field in the packet, they will participate in the computation of the MAC. Bit Domain Name 2 Basic Account 3 Processing Code 4 Transaction Code 11 System Tracking Number 12 Local Trading Time 13 Local Trading Date 32 Labor Code 38 Authorization Code 39 Return Code 41 Label Terminal Code 49 Trading Many Code 95 Replacement Condition: Condition: This domain needs to use 65-128 data packets.
typedefstruct {longsync_counter; charkeytype;} AB8583_Security_Ctrl_Info; typedef struct {charlength [4]; struct {characcount_type [3]; charamount_type [3]; charcurrency_code [4]; doubleamount;} ledger_balance_amount; struct {characcount_type [3]; charamount_type [3] ; charcurrency_code [4]; doubleamount;} available_balance_amount;} AB8583_Balance_Amount; typedef struct {charencryption_key_used; charmac_key_used; charmessage_effect; charno_of_unlogged_txns;} AB8583_Message_Indicator; typedef struct {charauth_function_code; charauth_mode; charauth_id_response_code [7]; charservice_business_code [5]; charinvoice_number [11]; } AB8583_Auth_Operation_Code; typedef struct {charorg_message_type [5]; charorg_system_trace_number [7]; charorg_transaction_date_time [11]; charorg_acqr_inst_id_code [12]; charora_forw_inst_id_code [12];} AB8583_Original_Data_Elements; typedef struct {doubleactual_amount_of_transaction; doubleactual_amount_of_settlement; doubleactual_amount_of_transaction_fee; doublea ctual_amount_of_settlement_fee;} AB8583_Replacement_Amounts; BIT DATA_NAME TYPE typedef struct {charmessage_type [5]; / *** MESSAGE_TYPE_IDENTIFICATION N4 0100 class authorization request message (authorization, authorization revoked, balance inquiry) 0110-based authorization response message (authorization, authorization revoked, balance inquiry) 0200 financial request message (withdrawal, deposit, consumption, refund) 0210 financial response message (withdrawal, deposit, consumption, refund) 0420 rushing Zheng class report (withdrawal, deposit, consumption, refund, authorization) 0430 rush Classic Answering Message (withdrawal, deposit, consumption, refund, authorization) 0524 check account report message (ATM settlement account, POS settle account) 0534 check message (ATM settlement book, POS settlement) 0800 Network Service Management Class Request Message (Reset Key) 0810 Network Service Management Class Answer message (Reset Key) 0820 Network Service Management Report Message (Status Settings, Broadcast Notifications, Application Reset Key) 0830 Network Service Management Class Acknowledge Message (status setting, broadcast notification, application reset key) **** / charPrimary_account_number [20]; / **** 2 primary_account_number n ... 19 (llvar) CharProcessing_code [7]; 3 Processing_code N6 DOUBLEAMOUNT_OF_TRANSACTIONS 4 Amount_of_Transactions N12 DoubleAmount_of_settlement;
5 AMOUNT_OF_SETTLEMENT N12 chartransmission_date_and_time [11]; 7 TRANSMISSION_DATE_AND_TIME N10 longsystem_trace_audit_number; 11 SYSTEM_TRACE_AUDIT_NUMBER N6 chartime_of_local_transaction [7]; 12 TIME_OF_LOCAL_TRANSACTION N6 chardate_of_local_transaction [5]; 13 DATE_OF_LOCAL_TRANSACTION N4 chardate_of_settlement [5]; 15 DATE_OF_SETTLEMENT N4 chardate_of_capture [5]; 17 DATE_OF_CAPTURE N4 charbusiness_type [ 4]; 18 BUSINESS_TYPE AN3 charpoint_of_service_entry_mode [4]; 22 POINT_OF_SERVICE_ENTRY_MODE N3 charpoint_of_service_PIN_capture_code [3]; 26 POINT_OF_SERVICE_PIN_CAPTURE_CODE N2 doublefee_of_transaction; 28 FEE_OF_TRANSACTION N8 doublefee_of_settlement; 29 FEE_OF_SETTLEMENT X N8 characquiring_institution_id_code [12]; 32 ACQUIRING_INSTITUTION_IDENTIFICATION_CODE N..11 (LLVAR) charforwarding_institution_id_code [ 12]; 33 forwarding_institution_identification_code n..11 (LLVAR) Chartrack_2_data [38]; 35 TRACK_2_DATA Z ... 37 (LLVAR) Chartrack_3_Data [105]; 36 TRACK_3_DATA Z ... 104 (LLLVAR) LongRetriev al_reference_number; 37 RETRIEVAL_REFERENCE_NUMBER AN12 charauth_id_response [7]; 38 AUTHORIZATION_IDENTIFICATION_RESPONSE AN6 charresponse_code [3]; 39 RESPONSE_CODE AN2 charcard_acceptor_terminal_id [9]; 41 CARD_ACCEPTOR_TERMINAL_IDENTIFICATION ANS8 first two defined as follows: 51 ATM banking terminal 52 POS 53 merchants POS charcard_acceptor_id_code [16]; 42 CARD_ACCEPTOR_IDENTIFICATION_CODE ANS15 charcard_acceptor_name_location [41]; 43 CARD_ACCEPTOR_NAME_LOCATION ANS40 charadditional_response_data [26]; 44 ADDITIONAL_RESPONSE_DATA ANS..25 (LLVAR) charbroadcasted_message [1000]; 48 BROADCASTED_MESSAGE ANS ... 999 charcurrency_code_of_transaction [4]; 49 CURRENCY_CODE_OF_TRANSACTION AN3 charcurrency_code_of_settlement [4]; 50 currency_code_of_settlement an3 charpin [8];
52 PIN_DATA B64 AB8583_Security_Ctrl_Infosecurity_ctrl_info; 53 SECURITY_RELATED_CONTROL_INformATION N16 SYNC_COUNTER N8 key synchronization counter RESERVED N7 KEY_TYPE N1 1 PIN encryption is used between the switching center and decryption mechanism member row 2 MAC for switching center and between the member row calculating means 3 for PIN encryption between the rows and the terminal members decryption AB8583_Balance_Amountbalance_amount; 54 BALANCE_AMOUNT AN43 LENGTH N3 (040) LEDGER_BALANCE_AMOUNT ACCOUNT_TYPE N2 (CC = 30, SC = 10) AMOUNT_TYPE N2 (01) CURRENCY_CODE AN3 (156) AMOUNT X N12 AVAILABLE_BALANCE_AMOUNT ACCOUNT_TYPE N2 ( CC = 30, SC = 10) AMOUNT_TYPE N2 (01) CURRENCY_CODE AN3 (156) AMOUNT X N12 charsecond_account_number [20]; 55 SECOND_ACCOUNT_NUMBER N ... 19 (LLVAR) AB8583_Message_Indicatormessage_indicator; 60 MESSAGE_INDICATOR N ... 005 (LLLVAR) ENCRYPTION_KEY_USED N1 PIN Encrypted / Decryption The key logo used is as follows: 0 does not encrypt 1 old key 2 new key mac_key_used n1 0 does not encrypt 1 old key 2 new key Message_Effect N1 0 Message for production environment 1 message Test Environment 2 ATM withdrawal Trading Sign 3 Reserved 4 Bank POS Tape Trading Sign 5 Bank POS Deposit Trading Sign 6 Commercial POS Consumer Transaction Operation Sign NO_OF_UNLOGGED_TXNS N2 AB8583_AUTH_OPERATION_CODEAUTH_OPERATION_CODE; 61 Authorization_operation_code n ... 022 (lllvar) Revoke authorization AUTHORIZATION_FUNCTION_CODE N1 0 1 2 consumption authorized withdrawals 3 4 5 refund query AUTHORIZATION_MODE N1 0 1 without authorization for authorization AUTH_ID_RESPONSE_CODE N6 SERVICE_BUSINESS_CODE N4 INVOICE_NUMBER N10 charauthorizing_agent_institution_id_code [12]; 62 AUTHORIZING_AGENT_INSTITUTION_IDENTIFICATION_CODE N ... 011 (LLLVAR) chardestination_institution_id_code [12] ; 63 DESTINATION_INSTITUTION_IDENTIFICATION_CODE N ... 011 (LLLVAR) 64 charsettlement_code; 66 SETTLEMENT_CODE N1 charnetwork_management_information_code [4]; 70 NETWORK_MANAGEMENT_INformATION_CODE N3 chardate_of_action [7]; 73 DATE_OF_ACTION N6 longnumber_of_credits; 74 NUMBER_OF_CREDITS N10 longreversal_number_of_credits; 75 REVERSAL_NUMBER_OF_CREDITS N10 longnumber_of_debits;