MerchantE API Docs

Account Updater File Formats

Fixed-width file format specifications for Account Updater request and response files.

CRITICAL: Exact Field Lengths Required
All fields must be exact length, padded with trailing spaces. Incorrect field lengths will cause file processing errors.

Request File Format

Request files must contain: Header (H1) + Detail Records (D1/D2) + Trailer (T1). Line endings separate records.

Header Record (H1)

Total: 40 characters + line ending

PosFieldLenFormatValue
1-2Record Type2AN"H1"
3-8Version ID6AN"100000"
9-40Merchant ID32ANME Merchant # (pad spaces)
Example:
H1100000941000057778

Detail Record (D1) - Full Card Numbers

Total: 74 characters + line ending

PosFieldLenFormatDescription
1-2Record Type2AN"D1"
3-6Account Type4AN"VISA", "MC ", "DISC"
7-38Account Number32ANCard number (pad)
39-42Expiration4NYYMM
43-74Discretionary32ANOptional (pad)
Example:
D1VISA4111111111111111 1101

Detail Record (D2) - Card Store ID

Total: 74 characters + line ending

Same as D1 but:

- Record Type: "D2"

- Account Number: Card Store ID (exactly 32 chars, no padding needed)

- Expiration: YYMM or spaces (ME retrieves from stored card data)

Example:
D2VISA258316d09edc34c7b49c11324f37e7ef1101

Trailer Record (T1)

Total: 8 characters + line ending

PosFieldLenFormatDescription
1-2Record Type2AN"T1"
3-8Record Count6NDetail count (zero-pad)
Example:
T1000004

Response File Format

Response files contain: Header (H1) + Detail Records (D1/D2) + Trailer (T1). Available 4 calendar days from posting.

Header Record (H1)

Total: 40 characters + line ending

PosFieldLenFormatValue
1-2Record Type2AN"H1"
3-8Version ID6AN"100000"
9-40Merchant ID32ANME Merchant # (pad spaces)

Response Detail (D1) - Full Card Numbers

Total: 124 characters + line ending

PosFieldLenFormatDescription
1-2Record Type2AN"D1"
3-6Old Account Type4ANOriginal card type (VISA/MC/DISC)
7-38Old Account Number32ANOriginal card #
39-42Old Expiration Date4NOriginal YYMM
43-46New Account Type4ANNew type or spaces
47-78New Account Number32ANNew # or spaces
79-82New Expiration Date4NNew YYMM or spaces
83-90Response Code8ANUpdate status (see response codes)
91-92Response Source2AN01=MES, 02=VAU, 03=ABU, 04=DAU
93-124Discretionary Data32ANFrom request (echoed back)

Response Detail (D2) - Card Store ID

Total: 124 characters + line ending

Same structure as D1 but:

- Record Type: "D2"

- Old Account Number: Card Store ID (32 chars)

- New Account Number: TRUNCATED card# (first6+xxxxxx+last4) or spaces

Example truncated format: `411111xxxxxx1111 `

**Note:** Full card data is automatically updated in token storage.

Response Trailer (T1)

Total: 8 characters + line ending

PosFieldLenFormatDescription
1-2Record Type2AN"T1"
3-8Record Count6NDetail count (zero-pad)

Response Codes

Response codes indicate the status of each account update request.

Update Codes (Changes Made)

CodeDescription
NEWACCTAccount number update - new card number issued
NEWEXPExpiration date update - new expiration date
OVERRIDECorrection to a previous response

No Update Codes

CodeDescription
GOODMatch found, no change needed
CLOSEDAccount closed, no new number assigned
CALLContact customer advisory

Error / Non-Match Codes

CodeDescription
NPBINNon-participating BIN
NOMATCHParticipating BIN, no match found
ACCTERRNon-V/MC account number, Bad account number, or Bad check digit
EXPERRBad expiration date
MERCHERRUnregistered merchant

Response Source Codes

Source Codes

CodeSourceDescription
01MESMerchantE System
02VAUVisa Account Updater
03ABUMasterCard Automatic Billing Updater
04DAUDiscover Network Account Updater