ISO 8583 compare
iso8583_compareDecodes two ISO 8583 messages (ISO 8583:1987 (message type indicator, primary and secondary bitmaps, data elements 2–128)), each in its own dialect, and compares them by data element on the decoded values, so messages in different dialects can be compared. Each element is same, different, only in A or only in B; when both carry DE 55 the EMV tags inside are compared too. Notes when B's MTI is the response to A's. May contain card data; mask hides it. Use test keys and test data only.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message_a": "303130307224068020C09200313634373631373339303031303130303130303030303030303030303030303032353530313133303134333031353030303132333238313230353130303130303337343736313733393030313031303031303D32383132323031313233343536373830303030305445524D303030314D45524348414E54303030303030313938361A2B3C4D5E6F70813039319F26088E19ED4B98AE5A419F2701809F100706011203A000009F37049BADBCAB9F36020027950500000400009A032611309C01009F02060000000025505F2A020986820239009F1A0200769F3303E0F0C85A084761739001010010",
"message_b": "30313130722000000E8082003136343736313733393030313031303031303030303030303030303030303030323535303131333031343330313630303031323336333334313430303031323341314232433330305445524D30303031393836303136910A3D6E8A01B2C3D4E500008A023030"
},
"name": "iso8583_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | Mask the PAN (first 6 and last 4 digits shown), track data and cardholder name in the output. | |
| header_a | No | Length header before the MTI: none, 2-byte binary, or 4 ASCII digits. | none |
| header_b | No | Length header before the MTI: none, 2-byte binary, or 4 ASCII digits. | none |
| dialect_a | No | ascii: MTI and numeric fields as ASCII digits, binary bitmap. asciihex: as ascii with the bitmap as 16 ASCII hex characters. bcd: MTI and numeric fields packed BCD, binary bitmap (ISO 8583:1987 binary). | ascii |
| dialect_b | No | ascii: MTI and numeric fields as ASCII digits, binary bitmap. asciihex: as ascii with the bitmap as 16 ASCII hex characters. bcd: MTI and numeric fields packed BCD, binary bitmap (ISO 8583:1987 binary). | ascii |
| message_a | Yes | First message, hex. | |
| message_b | Yes | Second message, hex. |