On This Page
Fields for a Sale Request
This table describes the required and optional fields for specifying
a sale request.
Field names are listed in the table as they appear in batch file templates.
An asterisk after a field name indicates that the field is required for an authorization request.
When you create a batch file based on a template, remove any asterisks from field names.
Column | Field Name | Description | Required? | Data Type | Length |
|---|---|---|---|---|---|
A | merchantReferenceCode * | Merchant-generated order reference or tracking number. | Required | String | 50 |
B | purchaseTotals_currency* | Currency used for the order. | Required | String | 5 |
C | purchaseTotals_grandTotalAmount* | Grand total for the order.
You must include either this field or item_#_unitPrice in your request.
If you use TSYS Acquiring Solutions as your payment processor,
you can set this field to 0 to check whether the card is lost or stolen. | Required | String | 15 |
D | billTo_firstName* | Customer’s first name. The value should be the same as the one that appears on the card. | Required | String | 60 |
E | billTo_lastName* | Customer’s last name. The value should be the same as the one that appears on the card. | Required | String | 60 |
F | billTo_customerID | Your identifier for the customer. | Optional | String | 50 |
G | billTo_email* | Customer’s email address, including the full domain name. For example: jdoe@example.com | Required | String | 255 |
H | billTo_street1* | First line of the billing street address. | Required | String | 60 |
I | billTo_street2 | Second line of the billing street address. Used for additional address information. For example: Attention: Accounts Payable | Required | String | 60 |
J | billTo_city* | City of the billing address. | Required | String | 50 |
K | billTo_state* | State or province of the billing address. Use the two-character codes. | Required | String | 2 |
L | billTo_country* | Country of the billing address. Use the two-character ISO codes. | Required | String | 2 |
M | billTo_postalCode* | Postal code for the billing address. The postal code must consist of 5 to 9 digits. For a 9-digit postal code, use this format:
| Required | String | 10 |
N | card_accountNumber* | Customer’s credit card number. | Required | String (Numbers Only) | 20 |
O | billTo_phoneNumber | Customer’s phone number. | Required | String | 15 |
P | card_expirationMonth* | Two-digit month in which the credit card expires. Format: MM. Possible values: 01 through 12. The leading 0 is required. | Required | String | 2 |
Q | card_expirationYear* | Four-digit year in which the credit card expires. Format: YYYY. | Required | String | 4 |
R | card_cardType* | Type of card to authorize. This field is required if the card type is JCB (007), and optional for all other card types.
| Required | String | 3 |
S | card_cvIndicator | Card verification indicator used to indicate if a card verification value was sent. Accepted by FDMS Nashville . Possible values:
| Optional | String (Numbers Only) | 4 |
T | card_cvNumber | Card verification number. | Optional | String (Numbers Only) | 2 |
U | ccAuthService_commerceIndicator | Transaction channel type. Possible values:
| Optional | String | 13 |
V | comments | Optional comments you have about the authorization. These comments will not be shown to the customer. | Optional | String | 255 |
W | merchantDefinedData_field1 | Four fields that you can use to store information. NOTE: If you are creating a profile based on an authorization, the merchant-defined data fields do not get transferred to the new profile. | Optional | String | 64 |
X | merchantDefinedData_field2 | Four fields that you can use to store information. NOTE: If you are creating a profile based on an authorization, the merchant-defined data fields do not get transferred to the new profile. | Optional | String | 64 |
Y | merchantDefinedData_field3 | Four fields that you can use to store information. NOTE: If you are creating a profile based on an authorization, the merchant-defined data fields do not get transferred to the new profile. | Optional | String | 64 |
Z | merchantDefinedData_field4 | Four fields that you can use to store information. NOTE: If you are creating a profile based on an authorization, the merchant-defined data fields do not get transferred to the new profile. | Optional | String | 64 |
AA | shipTo_firstName | First name of the person receiving the shipment. | Optional | String | 60 |
AB | shipTo_lastName | Last name of the person receiving the shipment. | Optional | String | 60 |
AC | shipTo_street1 | First line of the address to which to ship the product. | Optional | String | 60 |
AD | shipTo_street2 | Second line of the address to which to ship the product. | Optional | String | 60 |
AE | shipTo_city | City to which to ship the product. | Optional | String | 50 |
AF | shipTo_state | State or province to which to ship the product. Use the two-character codes. | Optional | String | 2 |
AG | shipTo_country | Country to which to ship the product. Use the two-character ISO codes. | Optional | String | 2 |
AH | shipTo_postalCode | Postal code for the shipping address. The postal code must consist of 5 to 9 digits. For a 9-digit postal code, use this format:
| Optional | String | 10 |