# 3D Secure Standalone

This function is used to process a request via the 3D Secure process without authorizing the payment. This will return the result of the 3D Secure process as well as the 3D Secure data that can then be used to process a payment via the Authorization or Sale/Purchase endpoint.

Integration Methods:
- Host Direct

See the Integration Methods and URLs Section sections of the Development Quick Start guide for details regarding each processing option.

Endpoint: POST /3dsecure/standalone
Version: 1.7.60
Security: AccessToken

## Header parameters:

  - `InterfaceVersion` (string, required)
    Refers to the version of the program or application that is sending requests to Shift4. The following special characters are not allowed&colon;  $ % &colon; ^ - ~  , ? “ ” ‘ ’ { } [ ] \ + =
    Example: "2.1"

  - `InterfaceName` (string, required)
    Refers to the name of the program or application that is sending requests to Shift4. This should be the name of the program that you purchased or created. The following special characters are not allowed&colon;  $ % &colon; ^ - ~ `  , ? “ ” ‘ ’ { } [ ] \ + =
    Example: "ForwardPOS"

  - `CompanyName` (string, required)
    Refers to the vendor or partner that designed and certified the interface. The information you use in this field should match what Shift4 has on file or what was agreed upon in your Integration Plan. The following special characters are not allowed&colon;  $ % &colon; ^ - ~ `  , ? “ ” ‘ ’ { } [ ] \ + =
    Example: "PAWS"

  - `AccessToken` (string, required)
    A security credential used to authenticate API requests and all i4Go® authorizeClient/preauthorizeClient requests. An Access Token is the alias for the merchant account and interface being used. The Access Token is required in all requests except an Access Token Exchange request, which generates an Access Token using an authToken and clientGuid.
    Example: "EA79FB05-3AA7-4500-AF9A-73F986FF2C1D"

## Request fields (application/json):

  - `body` (object, required) — one of:
    - Card Number:
      - `dateTime` (string, required)
        The date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh:mm).

Must be sent as the local date/time of the merchant. For example, a request processed at a merchant in the Pacific time zone at 9:18am on April 15th 2021 would be sent as 2021-04-15T09:18:23.283-07:00
        Example: "2022-05-04T09:18:23.283-07:00"
      - `amount` (object, required)
        Object containing information regarding the amount being requested. The total field within the object is required and specifies the amount being requested.

Note: For merchants that are configured to allow multiple currencies, the amount fields can specify up to three decimal places. However, the number of decimal places can not exceed the number allowed for the specified currency. See the [Currency Codes](/guides/appendices/currency-codes) section for details.
        Example: {"total":160}
      - `amount.total` (number, required)
        The amount being charged for a particular transaction. If other amount fields are sent, they must be included in the total amount. Amount cannot be zero.
        Example: 160
      - `transaction` (object, required)
        Example: {"invoice":"730518","notes":"Transaction notes are added here"}
      - `transaction.invoice` (string, required)
        10-digit invoice number assigned by the interface to identify a transaction. An invoice number serves as a unique key that identifies a transaction within a batch in Shift4's Gateway.

Note: For US and Canadian processing: Although the invoice number is sent as a JSON string it is a numeric value. No alpha characters are allowed.

For processing outside of the US and Canada alpha characters are allowed.
        Example: "730518"
      - `transaction.notes` (string)
        A free-form notes field that supports the use of HTML tags.  This can be used for reference in [Lighthouse Transaction Manager](https://ltm.shift4test.com/) and is not sent to the authorization host. Escaped quotation marks should not be sent in the Notes field.
        Example: "Transaction notes are added here"
      - `transaction.vendorReference` (string)
        Optional field for information that can be searched in the merchant portal.
      - `transaction.s4RiskId` (string)
        Unique transaction identification number generated by Shift4 to identify a specific risk transaction and a field that can be searched in LTM.


Conditional: must be sent if [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) was completed prior to processing the transaction.
      - `card` (object, required)
        Example: {"number":"4012000098765439","expirationDate":1225,"present":"N"}
      - `card.number` (string, required)
        The payment card number entered in an initial authorization/sale request. This field will always be masked when returned in a response.
        Example: "4012000098765439"
      - `card.expirationDate` (integer, required)
        Conditional: Send only when card data is manually entered or when using a token. This field should not be specified when using an encrypted device.

Card expiration date in MMYY format. This value should only be populated in the initial sale/authorization request.
        Example: 1225
      - `card.present` (string)
        Conditional: Send in the initial authorization/sale request

Indicates whether a card was present (‘Y’) or not (‘N’) at the time a transaction took place. This should be set appropriately in the initial authorization/sale request.  In subsequent requests, this field should be left blank or should not be sent.

Note: Subsequent request here does not apply to the secondary request for card on file type transactions or reuse of the same card. An example of a subsequent request would be a capture after an authorization. You would not include card.present in the capture, which is the subsequent request. Another example is when performing an incremental authorization where you perform an authorization, followed by an incremental authorization then a capture. The second authorization (incremental) and the capture are the subsequent requests where you would not include card.present.
        Enum: "Y", "N"
      - `card.securityCode` (object)
        Conditional: Send when processing a 3D Secure transaction in the US. This object should be sent for initial card on file request but is not required for subsequent merchant initiated  charges.
      - `card.securityCode.indicator` (string, required)
        This field indicates the presence of a CSC.

Value|Description
-----|-----------
0    | CSC not provided by user.
1    | CSC provided.
2    | CSC illegible.
9    | CSC not on card, or card did not have a CSC.
        Enum: "0", "1", "2", "9"
      - `card.securityCode.value` (string, required)
        The three- or four-digit Card Security Code found on a payment card. This value should only be sent in an initial sale/authorization request. It should not be stored by the interface. When sending card.securityCode.value, card.securityCode.indicator must also be sent.
      - `customer` (object, required)
        Example: {"firstName":"John","lastName":"Smith","addressLine1":"65 Easy St","city":"Las Vegas","postalCode":"65144","emailAddress":"firstname.lastname@email.com","ipAddress":"63.57.84.101"}
      - `customer.firstName` (string, required)
        Specifies a consumer’s first name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
        Example: "John"
      - `customer.lastName` (string, required)
        Specifies a consumer’s last name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
        Example: "Smith"
      - `customer.emailAddress` (string, required)
        Customer email address.
        Example: "firstname.lastname@email.com"
      - `customer.ipAddress` (string, required)
        Public source IP Address where the request originates, not the IP Address of the web server.
        Example: "63.57.84.101"
      - `customer.phoneNumber` (string)
        Customer phone number
      - `customer.phoneCountry` (string)
        Country calling code of the phone number. 

Required when sending customer.phoneNumber.
      - `customer.addressLine1` (string)
        Cardholder’s street address exactly as it appears on their billing statement. This field is used in AVS.

Recommended for increasing the possibility of frictionless flow
        Example: "65 Easy St"
      - `customer.addressLine2` (string)
        Customer address line 2.
      - `customer.city` (string)
        Customer address city.

Recommended for increasing the possibility of frictionless flow
        Example: "Las Vegas"
      - `customer.region` (string)
        A level 2 country subdivision code according to ISO-3166-2.

Recommended for increasing the possibility of frictionless flow
      - `customer.postalCode` (string)
        Cardholder’s ZIP/postal code from their billing statement. This field is used in AVS. Do not include special characters.

Note: This field only allows alphanumeric characters (a-z, A-Z, 0-9). Special characters including - are not allowed. If you are sending in zip+4 you must not include the dash so 89134-1234 would be sent as 891341234

Recommended for increasing the possibility of frictionless flow
        Example: "65144"
      - `customer.country` (string)
        2 character ISO Country Code. See the [ISO](https://www.iso.org/obp/ui/#search/code/) website for details.

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping` (object)
        Conditional: must be sent if threeDSecure.addressMatch is 'false'
      - `customer.shipping.addressLine1` (string)
        Shipping street address - Line 1

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping.addressLine2` (string)
        Shipping street address - Line 2
      - `customer.shipping.city` (string)
        Shipping address - City

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping.country` (string)
        Shipping address - 2 character ISO Country Code.

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping.postalCode` (string)
        Shipping address - Postal Code

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping.region` (string)
        Shipping address - A level 2 country subdivision code according to ISO-3166-2.

Recommended for increasing the possibility of frictionless flow
      - `currencyCode` (string, required)
        Transaction currency code. See the [Currency Codes](/guides/appendices/currency-codes) section for details.

Note: This is currently supported when processing for a merchant outside of the US and Canada. If processing for a US or Canadian merchant then this field will be ignored and the transaction will process in the merchant's configured currency.
        Example: "EUR"
      - `threeDSecure` (object, required)
        Example: {"initiate":"03","browser":{"acceptHeader":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","javaEnabled":true,"javascriptEnabled":true,"language":"en-GB","colorDepth":"48","screenWidth":1920,"screenHeight":1080,"tz":-480},"headerContent":"userAgent header","challengeWindowSize":"05","transType":"01","channel":"02"}
      - `threeDSecure.initiate` (string, required)
        Indicates whether to initiate the 3D Secure authentication process

Value| Description
-----|------------
01   | Force 3D Secure authentication
03   | Initiate 3D Secure according to the 3D Secure Adviser result
        Enum: "01", "03"
      - `threeDSecure.browser` (object, required)
        Example: {"acceptHeader":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","javaEnabled":true,"javascriptEnabled":true,"language":"en-GB","colorDepth":"48","screenWidth":1920,"screenHeight":1080,"tz":-480}
      - `threeDSecure.browser.acceptHeader` (string, required)
        Exact content of the HTTP accept headers.
        Example: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
      - `threeDSecure.browser.javaEnabled` (boolean, required)
        Indicates whether the cardholder's browser has the ability to execute Java.

Value | Description
------|------------
true  | Cardholder's browser does have the ability to execute Java.
false | Cardholder's browser does not have the ability to execute Java.
        Example: true
      - `threeDSecure.browser.javascriptEnabled` (boolean, required)
        Indicates whether the cardholder's browser has the ability to execute Javascript.

Value | Description
------|------------
true  | Cardholder's browser does have the ability to execute Javascript.
false | Cardholder's browser does not have the ability to execute Javascript.
        Example: true
      - `threeDSecure.browser.language` (string, required)
        Value representing the browser language as defined in IETF BCP47.
        Example: "en-GB"
      - `threeDSecure.browser.colorDepth` (string, required)
        Value representing the bit depth of the colour palette for displaying images, in bits per pixel. Accepted values are:

Value| Description
-----|------------
1    | 1 bit
4    | 4 bits
8    | 8 bits
15   | 15 bits
16   | 16 bits
24   | 24 bits
32   | 32 bits
48   | 48 bits
        Enum: "1", "4", "8", "15", "16", "24", "32", "48"
      - `threeDSecure.browser.screenWidth` (integer, required)
        Total height of the Cardholder's screen in pixels.
        Example: 1920
      - `threeDSecure.browser.screenHeight` (integer, required)
        Total height of the Cardholder's screen in pixels.
        Example: 1080
      - `threeDSecure.browser.tz` (integer, required)
        Time difference between UTC time and the Cardholder browser local time, in minutes.
        Example: -480
      - `threeDSecure.headerContent` (string, required)
        Exact content of the HTTP user-agent header.
        Example: "userAgent header"
      - `threeDSecure.challengeWindowSize` (string, required)
        Dimensions of the challenge window that will be displayed to the cardholder. The issuer replies with content that is formatted to appropriately render in this window to provide the best possible user experience. Preconfigured window sizes are given in “width x height” in pixels.

Value| Description
-----|------------
01   | 250 x 400
02   | 390 x 400
03   | 500 x 600
04   | 600 x 400
05   | Full screen
        Enum: "01", "02", "03", "04", "05"
      - `threeDSecure.transType` (string, required)
        Identifies the type of transaction being authenticated. 
The values are derived from ISO 8583.

Value| Description
-----|------------
01   | Goods / Service purchase
03   | Check Acceptance
10   | Account Funding
11   | Quasi-Cash Transaction
28   | Prepaid activation and Loan
        Enum: "01", "03", "10", "11", "28"
      - `threeDSecure.channel` (string, required)
        Indicates the type of channel interface being used to initiate the transaction.

Value| Description
-----|------------
01   | App-based (APP)
02   | Browser (BRW)
03   | 3DS Requestor Initiated (3RI)
        Enum: "01", "02", "03"
      - `threeDSecure.addressMatch` (boolean)
        Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are identical.

Value | Description
------|------------
true  | Shipping Address matches Billing Address
false | Shipping Address does not match Billing Address
      - `threeDSecure.reqChallengeInd` (string)
        Indicates whether a challenge is requested for this transaction. For example: For payment authentication, a merchant may have concerns about the transaction, and request a challenge.

Value| Description
-----|------------
01   | No preference
02   | No challenge requested
03   | Challenge requested by merchant
04   | Challenge requested: Mandate
05   | No Challenge Requested, transactional risk analysis is already performed
06   | No Challenge Requested, Data share only
07   | No Challenge Requested, SCA is already performed
08   | No challenge requested (utilise whitelist exemption if no challenge required)
09   | Challenge requested (whitelist prompt requested if challenge required)"
        Enum: "01", "02", "03", "04", "05", "06", "07", "08", "09"
      - `completionUrl` (string, required)
        Contains the merchant URL to which the browser should be  redirected after the challenge session.
        Example: "https://merchant.com/completion"
      - `risk` (object)
        Conditional: must be sent if [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) was completed prior to processing the transaction.
      - `risk.tranId` (string)
        The risk tranId value received in the [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) response.

Conditional: must be sent if [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) was completed prior to processing the transaction.
      - `risk.assessment` (string)
        The risk assessment value received in the [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) response.

Conditional: must be sent if [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess)  was completed prior to processing the transaction.
        Enum: "A", "D", "R", "E"
      - `apiOptions` (array)
        API Options modify the request being made. See the [API Options](/guides/appendices/api-options.md) section for more information.
        Example: ["ALLOWPARTIALAUTH"]
    - GTV Token:
      - `dateTime` (string, required)
        The date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh:mm).

Must be sent as the local date/time of the merchant. For example, a request processed at a merchant in the Pacific time zone at 9:18am on April 15th 2021 would be sent as 2021-04-15T09:18:23.283-07:00
        Example: "2022-05-04T09:18:23.283-07:00"
      - `amount` (object, required)
        Object containing information regarding the amount being requested. The total field within the object is required and specifies the amount being requested.

Note: For merchants that are configured to allow multiple currencies, the amount fields can specify up to three decimal places. However, the number of decimal places can not exceed the number allowed for the specified currency. See the [Currency Codes](/guides/appendices/currency-codes) section for details.
        Example: {"total":160}
      - `amount.total` (number, required)
        The amount being charged for a particular transaction. If other amount fields are sent, they must be included in the total amount. Amount cannot be zero.
        Example: 160
      - `transaction` (object, required)
        Example: {"invoice":"730518","notes":"Transaction notes are added here"}
      - `transaction.invoice` (string, required)
        10-digit invoice number assigned by the interface to identify a transaction. An invoice number serves as a unique key that identifies a transaction within a batch in Shift4's Gateway.

Note: For US and Canadian processing: Although the invoice number is sent as a JSON string it is a numeric value. No alpha characters are allowed.

For processing outside of the US and Canada alpha characters are allowed.
        Example: "730518"
      - `transaction.notes` (string)
        A free-form notes field that supports the use of HTML tags.  This can be used for reference in [Lighthouse Transaction Manager](https://ltm.shift4test.com/) and is not sent to the authorization host. Escaped quotation marks should not be sent in the Notes field.
        Example: "Transaction notes are added here"
      - `transaction.vendorReference` (string)
        Optional field for information that can be searched in the merchant portal.
      - `transaction.s4RiskId` (string)
        Unique transaction identification number generated by Shift4 to identify a specific risk transaction and a field that can be searched in LTM.


Conditional: must be sent if [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) was completed prior to processing the transaction.
      - `card` (object, required)
        Example: {"token":{"value":"8048471746471119"},"expirationDate":1225,"present":"N"}
      - `card.token` (object, required)
        Example: {"value":"8048471746471119"}
      - `card.token.value` (string, required)
        This field is used to specify a card token. Whenever CHD is sent in a request, a card token will be returned in this field. Your interface should be designed to store this card token for future use. The latest card token received should be used in any subsequent request that references the same card data.
        Example: "8048471746471119"
      - `card.expirationDate` (integer)
        Conditional: Send only when card data is manually entered or when using a token. This field should not be specified when using an encrypted device.

Card expiration date in MMYY format. This value should only be populated in the initial sale/authorization request.
        Example: 1225
      - `card.present` (string)
        Conditional: Send in the initial authorization/sale request

Indicates whether a card was present (‘Y’) or not (‘N’) at the time a transaction took place. This should be set appropriately in the initial authorization/sale request.  In subsequent requests, this field should be left blank or should not be sent.

Note: Subsequent request here does not apply to the secondary request for card on file type transactions or reuse of the same card. An example of a subsequent request would be a capture after an authorization. You would not include card.present in the capture, which is the subsequent request. Another example is when performing an incremental authorization where you perform an authorization, followed by an incremental authorization then a capture. The second authorization (incremental) and the capture are the subsequent requests where you would not include card.present.
        Enum: same as `card.present` in "Card Number" (2 values)
      - `customer` (object, required)
        Example: {"firstName":"John","lastName":"Smith","addressLine1":"65 Easy St","city":"Las Vegas","postalCode":"65144","emailAddress":"firstname.lastname@email.com","ipAddress":"63.57.84.101"}
      - `customer.firstName` (string, required)
        Specifies a consumer’s first name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
        Example: "John"
      - `customer.lastName` (string, required)
        Specifies a consumer’s last name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
        Example: "Smith"
      - `customer.emailAddress` (string, required)
        Customer email address.
        Example: "firstname.lastname@email.com"
      - `customer.ipAddress` (string, required)
        Public source IP Address where the request originates, not the IP Address of the web server.
        Example: "63.57.84.101"
      - `customer.phoneNumber` (string)
        Customer phone number
      - `customer.phoneCountry` (string)
        Country calling code of the phone number. 

Required when sending customer.phoneNumber.
      - `customer.addressLine1` (string)
        Cardholder’s street address exactly as it appears on their billing statement. This field is used in AVS.

Recommended for increasing the possibility of frictionless flow
        Example: "65 Easy St"
      - `customer.addressLine2` (string)
        Customer address line 2.
      - `customer.city` (string)
        Customer address city.

Recommended for increasing the possibility of frictionless flow
        Example: "Las Vegas"
      - `customer.region` (string)
        A level 2 country subdivision code according to ISO-3166-2.

Recommended for increasing the possibility of frictionless flow
      - `customer.postalCode` (string)
        Cardholder’s ZIP/postal code from their billing statement. This field is used in AVS. Do not include special characters.

Note: This field only allows alphanumeric characters (a-z, A-Z, 0-9). Special characters including - are not allowed. If you are sending in zip+4 you must not include the dash so 89134-1234 would be sent as 891341234

Recommended for increasing the possibility of frictionless flow
        Example: "65144"
      - `customer.country` (string)
        2 character ISO Country Code. See the [ISO](https://www.iso.org/obp/ui/#search/code/) website for details.

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping` (object)
        Conditional: must be sent if threeDSecure.addressMatch is 'false'
      - `customer.shipping.addressLine1` (string)
        Shipping street address - Line 1

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping.addressLine2` (string)
        Shipping street address - Line 2
      - `customer.shipping.city` (string)
        Shipping address - City

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping.country` (string)
        Shipping address - 2 character ISO Country Code.

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping.postalCode` (string)
        Shipping address - Postal Code

Recommended for increasing the possibility of frictionless flow
      - `customer.shipping.region` (string)
        Shipping address - A level 2 country subdivision code according to ISO-3166-2.

Recommended for increasing the possibility of frictionless flow
      - `currencyCode` (string, required)
        Transaction currency code. See the [Currency Codes](/guides/appendices/currency-codes) section for details.

Note: This is currently supported when processing for a merchant outside of the US and Canada. If processing for a US or Canadian merchant then this field will be ignored and the transaction will process in the merchant's configured currency.
        Example: "EUR"
      - `threeDSecure` (object, required)
        Example: {"initiate":"03","browser":{"acceptHeader":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","javaEnabled":true,"javascriptEnabled":true,"language":"en-GB","colorDepth":"48","screenWidth":1920,"screenHeight":1080,"tz":-480},"headerContent":"userAgent header","challengeWindowSize":"05","transType":"01","channel":"02"}
      - `threeDSecure.initiate` (string, required)
        Indicates whether to initiate the 3D Secure authentication process

Value| Description
-----|------------
01   | Force 3D Secure authentication
03   | Initiate 3D Secure according to the 3D Secure Adviser result
        Enum: same as `threeDSecure.initiate` in "Card Number" (2 values)
      - `threeDSecure.browser` (object, required)
        Example: {"acceptHeader":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","javaEnabled":true,"javascriptEnabled":true,"language":"en-GB","colorDepth":"48","screenWidth":1920,"screenHeight":1080,"tz":-480}
      - `threeDSecure.browser.acceptHeader` (string, required)
        Exact content of the HTTP accept headers.
        Example: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
      - `threeDSecure.browser.javaEnabled` (boolean, required)
        Indicates whether the cardholder's browser has the ability to execute Java.

Value | Description
------|------------
true  | Cardholder's browser does have the ability to execute Java.
false | Cardholder's browser does not have the ability to execute Java.
        Example: true
      - `threeDSecure.browser.javascriptEnabled` (boolean, required)
        Indicates whether the cardholder's browser has the ability to execute Javascript.

Value | Description
------|------------
true  | Cardholder's browser does have the ability to execute Javascript.
false | Cardholder's browser does not have the ability to execute Javascript.
        Example: true
      - `threeDSecure.browser.language` (string, required)
        Value representing the browser language as defined in IETF BCP47.
        Example: "en-GB"
      - `threeDSecure.browser.colorDepth` (string, required)
        Value representing the bit depth of the colour palette for displaying images, in bits per pixel. Accepted values are:

Value| Description
-----|------------
1    | 1 bit
4    | 4 bits
8    | 8 bits
15   | 15 bits
16   | 16 bits
24   | 24 bits
32   | 32 bits
48   | 48 bits
        Enum: same as `threeDSecure.browser.colorDepth` in "Card Number" (8 values)
      - `threeDSecure.browser.screenWidth` (integer, required)
        Total height of the Cardholder's screen in pixels.
        Example: 1920
      - `threeDSecure.browser.screenHeight` (integer, required)
        Total height of the Cardholder's screen in pixels.
        Example: 1080
      - `threeDSecure.browser.tz` (integer, required)
        Time difference between UTC time and the Cardholder browser local time, in minutes.
        Example: -480
      - `threeDSecure.headerContent` (string, required)
        Exact content of the HTTP user-agent header.
        Example: "userAgent header"
      - `threeDSecure.challengeWindowSize` (string, required)
        Dimensions of the challenge window that will be displayed to the cardholder. The issuer replies with content that is formatted to appropriately render in this window to provide the best possible user experience. Preconfigured window sizes are given in “width x height” in pixels.

Value| Description
-----|------------
01   | 250 x 400
02   | 390 x 400
03   | 500 x 600
04   | 600 x 400
05   | Full screen
        Enum: same as `threeDSecure.challengeWindowSize` in "Card Number" (5 values)
      - `threeDSecure.transType` (string, required)
        Identifies the type of transaction being authenticated. 
The values are derived from ISO 8583.

Value| Description
-----|------------
01   | Goods / Service purchase
03   | Check Acceptance
10   | Account Funding
11   | Quasi-Cash Transaction
28   | Prepaid activation and Loan
        Enum: same as `threeDSecure.transType` in "Card Number" (5 values)
      - `threeDSecure.channel` (string, required)
        Indicates the type of channel interface being used to initiate the transaction.

Value| Description
-----|------------
01   | App-based (APP)
02   | Browser (BRW)
03   | 3DS Requestor Initiated (3RI)
        Enum: same as `threeDSecure.channel` in "Card Number" (3 values)
      - `threeDSecure.addressMatch` (boolean)
        Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are identical.

Value | Description
------|------------
true  | Shipping Address matches Billing Address
false | Shipping Address does not match Billing Address
      - `threeDSecure.reqChallengeInd` (string)
        Indicates whether a challenge is requested for this transaction. For example: For payment authentication, a merchant may have concerns about the transaction, and request a challenge.

Value| Description
-----|------------
01   | No preference
02   | No challenge requested
03   | Challenge requested by merchant
04   | Challenge requested: Mandate
05   | No Challenge Requested, transactional risk analysis is already performed
06   | No Challenge Requested, Data share only
07   | No Challenge Requested, SCA is already performed
08   | No challenge requested (utilise whitelist exemption if no challenge required)
09   | Challenge requested (whitelist prompt requested if challenge required)"
        Enum: same as `threeDSecure.reqChallengeInd` in "Card Number" (9 values)
      - `completionUrl` (string, required)
        Contains the merchant URL to which the browser should be  redirected after the challenge session.
        Example: "https://merchant.com/completion"
      - `risk` (object)
        Conditional: must be sent if [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) was completed prior to processing the transaction.
      - `risk.tranId` (string)
        The risk tranId value received in the [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) response.

Conditional: must be sent if [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) was completed prior to processing the transaction.
      - `risk.assessment` (string)
        The risk assessment value received in the [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess) response.

Conditional: must be sent if [Risk Assessment](/apis/payments-platform-rest/openapi/risk/riskassess)  was completed prior to processing the transaction.
        Enum: same as `risk.assessment` in "Card Number" (4 values)
      - `apiOptions` (array)
        API Options modify the request being made. See the [API Options](/guides/appendices/api-options.md) section for more information.
        Example: ["ALLOWPARTIALAUTH"]

## Response 200 fields (application/json):

  - `body` (object) — one of:
    - Request Complete:
      - `result` (array)
        Example: {"dateTime":"2022-05-04T09:20:04.487-07:00","amount":{"tax":15,"total":160},"currencyCode":"EUR","card":{"entryMode":"M","number":"XXXXXXXXXXXX1119","present":"N","securityCode":{"result":"M","valid":"Y"},"token":{"value":"8048471746471119"},"type":"VS"},"customer":{"firstName":"John","lastName":"Smith","addressLine1":"65 Easy St","city":"Las Vegas","postalCode":"65144","emailAddress":"firstname.lastname@email.com","ipAddress":"63.57.84.101"},"merchant":{"mid":15877,"name":"Merchant XYZ"},"threeDSecure":{"trxId":"a7bbd49a-ffe6-49b2-8a92-541f0a3b053d","cryptogram":"AAAAAAAA/COBt84dnIEcwAA3gAAGhgEDoLABAAhAgAABAAAALnNCLw==","programProtocol":"2","directoryServerTranId":"07e54000-2721-4df9-aa51-04fa0e079aa8","ecommIndicator":"5"},"server":{"name":"TM01CE"},"transaction":{"authSource":"A","avs":{"postalCodeVerified":"N","result":"A","streetVerified":"Y","valid":"Y"},"invoice":"730518","responseCode":"A","retrievalReference":"402F9H0230S0"},"receipt":[{"key":"CardEntryMode","printName":"ENTRY METHOD","printValue":"KEYED"},{"key":"MaskedPAN","printValue":"XXXXXXXXXXXX1119"},{"key":"SignatureRequired","printValue":"Y"},{"key":"TransactionResponse","printName":"Response","printValue":"APPROVED"}]}
      - `result.dateTime` (string, required)
        The date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh:mm).

Must be sent as the local date/time of the merchant. For example, a request processed at a merchant in the Pacific time zone at 9:18am on April 15th 2021 would be sent as 2021-04-15T09:18:23.283-07:00
      - `result.amount` (object, required)
        Object containing information regarding the amount being requested. The total field within the object is required and specifies the amount being requested. All other fields are for informational purposes and must also be included in the total field. For example, a purchase of $100 with a $20 tip and $8 tax would be 128.00 in the total field, 20.00 in the tip field and 8.00 in the tax field.

Note: For merchants that are configured to allow multiple currencies, the amount  fields can specify up to three decimal places. However, the number of decimal  places can not exceed the number allowed for the specified currency. See the [Currency Codes](/guides/appendices/currency-codes) section for details.
      - `result.amount.total` (number, required)
        The amount being charged for a particular transaction. If other amount fields are sent, they must be included in the total amount. Amount cannot be zero.
      - `result.amount.tax` (number, required)
        The amount of sales tax charged for a transaction. The tax amount is used by businesses to track tax expenses for accounting purposes. Identifying the tax amount also helps consumers understand the total amount that they were billed.  This field is part of Level 2 card data.
      - `result.amount.taxIndicator` (string)
        Value|Description
-----|-----------
Y    | Tax is included
N    | Tax is not included
        Enum: same as `card.present` in "Card Number" (2 values)
      - `result.amount.cashback` (number)
        Specifies the cashback amount in a transaction. When using a UTG-controlled PIN pad with the ALLOWCASHBACK API Option, this field will return the cashback amount requested by the consumer. The interface can also send the desired cashback amount in a request by adding it to the amount.total and including it in the amount.cashback field. This will bypass prompting the consumer for a cashback amount.
      - `result.amount.surcharge` (number)
        Conditional: Send in the request if a surcharge was applied to the transaction.

In a sale or authorization transaction, the surcharge field specifies a fee amount that a consumer is charged in addition to the transaction amount. The fee amount is also added into amount.total. For example, if the transaction request had amount.total = 100 and the surcharge.percentage was 1.5% the transaction would include amount.total = 101.50 and amount.surcharge = 1.50
      - `result.amount.tip` (number)
        Conditional: Send in the request if a tip is included.

The tip amount of the transaction.
      - `result.currencyCode` (string, required)
        Transaction currency code. See the [Currency Codes](/guides/appendices/currency-codes) section for details.

Note: This is currently supported when processing for a merchant outside of the US and Canada. If processing for a US or Canadian merchant then this field will be ignored and the transaction will process in the merchant's configured currency.
      - `result.card` (object)
      - `result.card.entryMode` (string)
        Conditional: The Card Entry Mode should be sent in an initial request; in subsequent requests, it should be left blank or not sent. When using a Universal Transaction Gateway® (UTG®)-controlled PIN pad, this field should be left blank or not sent in a request; the UTG will capture the card entry mode and return it in the response. When P2PE data is being sent from a non-UTG controlled device, this field is not needed

The method used to capture a payment card in an authorization/sale request. 

Value|Description
-----|-----------
1    | Track 1 Only or Dual Track (Track 1 & 2)
2    | Track 2 Only
C    | EMV Contactless via card or mobile wallet
E    | EMV Chip
M    | Manual Entry
Q    | QR Code
R    | Contactless MSD
        Enum: "1", "2", "C", "E", "M", "Q", "R"
      - `result.card.expirationDate` (integer)
        Conditional: Requires API Option "RETURNEXPDATE".

Card expiration date in MMYY format. This value will only be populated if "RETURNEXPDATE" is included in the apiOptions array.
      - `result.card.levelResult` (string)
        Classifies the type of card used in an authorization/sale request. This field is returned in a response if the data is provided by the processor. See [Card Level Results]/guides/appendices/card-level-results) for a complete list of values.
      - `result.card.number` (string)
        The card number field will always be masked when returned in a response.
      - `result.card.present` (string)
        Conditional: Send in the initial authorization/sale request

Indicates whether a card was present (‘Y’) or not (‘N’) at the time a transaction took place. This should be set appropriately in the initial authorization/sale request.  In subsequent requests, this field should be left blank or should not be sent.

Note: Subsequent request here does not apply to the secondary request for card on file type transactions or reuse of the same card. An example of a subsequent request would be a capture after an authorization. You would not include card.present in the capture, which is the subsequent request. Another example is when performing an incremental authorization where you perform an authorization, followed by an incremental authorization then a capture. The second authorization (incremental) and the capture are the subsequent requests where you would not include card.present.
        Enum: same as `card.present` in "Card Number" (2 values)
      - `result.card.type` (string)
        An abbreviation used to specify the type of card that was used when processing a transaction.

Value| Description
-----|------------
AX   | American Express
AP   | Alipay
BC   | Backed Card       
CI   | Citgo        
DB   | Debit card
GC   | Gift Card
JC   | JCB
MC   | Mastercard
NS   | Discover/JCB/Novus
PL   | Private Label
SC   | Sears Canada
VS   | Visa
WP   | WeChat Pay
YC   | IT’S YOUR CARD
        Enum: "AX", "AP", "BC", "CI", "DB", "GC", "JC", "MC", "NS", "PL", "SC", "VS", "WP", "YC"
      - `result.card.balance` (object)
      - `result.card.balance.amount` (number)
        The balance remaining on the card.  Depending on which processor is being used, the balance may be returned for a gift card, debit card, EBT card, or other stored value card.
      - `result.card.securityCode` (object)
        Conditional: Returned if card.securityCode was sent in the request.
      - `result.card.securityCode.result` (string)
        Conditional: Returned if card.securityCode.indicator and card.securityCode.value are sent in the request.

The result of a CSC check. This field will be used by Shift4 to determine the value sent in the card.securityCode.valid field (based on the merchant’s list of accepted verification results as configured with Shift4).

Value|Description
-----|------------
M    | CSC matched.
N    | CSC did not match.
P    | CSC not processed.
S    | CSC should have been present.
U    | Issuer unable to process.
Y    | CVC1 incorrect.
1    | CSC Unavailable - processor / card type does not support this parameter.
2    | An unrecognised result code was returned by the processor.
3    | No result code was returned by the processor.
        Enum: "M", "N", "P", "S", "U", "Y", "1", "2", "3"
      - `result.card.securityCode.valid` (string)
        Conditional: Returned if card.securityCode.indicator and card.securityCode.value are sent in the request.

A simplified CSC check result based on the value in the card.securityCode.result field and the merchant’s accepted verification results as configured with Shift4. The value returned will be ‘Y’ if CSC verification passed or ‘N’ if CSC verification did not pass.
      - `result.card.token` (object)
      - `result.card.token.value` (string)
        This field is used to specify a card token. Whenever CHD is sent in a request, a card token will be returned in this field. Your interface should be designed to store this card token for future use. The latest card token received should be used in any subsequent request that references the same card data.
      - `result.card.debitType` (string)
        Specifies the type of debit card that was used when processing a transaction.

Only returned if card.type = DB
        Enum: "girocard", "eftpos", "Interac", "Visa Interlink", "Visa US Common Debit", "Maestro Int'l", "Maestro US Common Debit", "Amex US Common Debit", "Discover US Common Debit", "DNA Debit", "UnionPay"
      - `result.customer` (object)
      - `result.customer.firstName` (string)
        Specifies a consumer’s first name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
      - `result.customer.lastName` (string)
        Specifies a consumer’s last name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
      - `result.customer.phoneNumber` (string)
        Customer phone number
      - `result.customer.emailAddress` (string)
        Customer email address.
      - `result.customer.addressLine1` (string)
        Cardholder’s street address exactly as it appears on their billing statement. This field is used in AVS.
      - `result.customer.city` (string)
        Customer address city.
      - `result.customer.region` (string)
        A level 2 country subdivision code according to ISO-3166-2.
      - `result.customer.postalCode` (string)
        Cardholder’s ZIP/postal code from their billing statement. This field is used in AVS. Do not include special characters.

Note: This field only allows alphanumeric characters (a-z, A-Z, 0-9). Special characters including - are not allowed. If you are sending in zip+4 you must not include the dash so 89134-1234 would be sent as 891341234
      - `result.customer.country` (string)
        2 character ISO Country Code. See the [ISO](https://www.iso.org/obp/ui/#search/code/) website for details.
      - `result.customer.ipAddress` (string)
        Public source IP Address where the request originates, not the IP Address of the web server.
      - `result.customer.shipping` (object)
        Conditional: must be sent if threeDSecure.addressMatch is 'false'
      - `result.customer.shipping.addressLine1` (string)
        Shipping street address - Line 1

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.addressLine2` (string)
        Shipping street address - Line 2
      - `result.customer.shipping.city` (string)
        Shipping address - City

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.country` (string)
        Shipping address - 2 character ISO Country Code.

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.postalCode` (string)
        Shipping address - Postal Code

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.region` (string)
        Shipping address - A level 2 country subdivision code according to ISO-3166-2.

Recommended for increasing the possibility of frictionless flow
      - `result.merchant` (object)
      - `result.merchant.mid` (number)
        The merchant ID associated with the merchant account.
      - `result.merchant.name` (string)
        The merchant’s business name as configured with Shift4.
      - `result.transaction` (object)
      - `result.transaction.authSource` (string)
        In a response, a code returned by the processor to indicate which host issued the response.

Value  | Description       
-------|----------------------------
E      | Engine (Online)
O      | Offline
A      | APM (Online)
F      | Payment Platform (Online)
        Enum: "E", "O", "A", "F"
      - `result.transaction.hostResponse` (object)
        Returns the response code detailing why the transaction was declined. 

Notes:
  - For Visa, the response codes are categorized, detailing how declined transactions may be re-attempted for approval. To avoid fees, merchants are responsible for preventing additional attempts based on  the information returned.
  - Support for this field is dependent on the processor. Our demo environment does not return this field in the response.
      - `result.transaction.hostResponse.reasonCode` (string)
        Returns a response code from the host.

Value |Category|Description
------|--------|-----------
04    |      1 | Pick Up Card
07    |      1 | Pick Up Card, Special Condition
12    |      1 | Invalid Transaction
15    |      1 | No Such Issuer
41    |      1 | Lost Card
43    |      1 | Stolen Card
46    |      1 | Closed Account        
57    |      1 | Trans. not Permitted to Cardholder
R0    |      1 | Stop Payment Order
R1    |      1 | Revocation of Auth Order
R3    |      1 | Revocation of all Authorization 
03    |      2 | Invalid Merchant
19    |      2 | Re-enter Transaction
51    |      2 | Not sufficient funds
59    |      2 | Suspected Fraud
61    |      2 | Exceeds approval amount limit
62    |      2 | Restricted Card (card invalid in region or country)
65    |      2 | Exceeds withdrawal frequency limit
75    |      2 | Allowable number of PIN-entry tried exceeded
78    |      2 | Blocked, first used
86    |      2 | Cannot Verify PIN
91    |      2 | Issuer or switch inoperative
93    |      2 | Transaction cannot be completed - violation of law 
96    |      2 | System malfunction
N3    |      2 | Cash service not available
N4    |      2 | Cash request exceeds issuer of approved limit
14    |      3 | Invalid Account
54    |      3 | Expired card or expiration date missing
55    |      3 | PIN incorrect or missing
70    |      3 | PIN data required
82    |      3 | Negative Online CAM, dCVV, iCVV, or CVV results
1A    |      3 | Additional customer authentication required
N7    |      3 | Decline for CVV2 Failure
05    |      4 | Do not honor
06    |      4 | General error 
08    |      4 | Honor MasterCard with ID
13    |      4 | Invalid amount 
21    |      4 | Invalid amount
30    |      4 | Format error
39    |      4 | No credit account
52    |      4 | No checking account
53    |      4 | No savings account
58    |      4 | Transaction not permitted-Terminal
63    |      4 | Security violation 
66    |      4 | Card Acceptor call Acquirer’s security dept
67    |      4 | Hard capture (requires ATM pick-up)
68    |      4 | Response received too late
71    |      4 | PIN Not Changed
76    |      4 | Unsolicited reversal
77    |      4 | Invalid Data including AVS failures.
79    |      4 | Already reversed at switch
80    |      4 | No Financial impact
81    |      4 | Cryptographic error 
92    |      4 | Unable to route transaction
94    |      4 | Duplicate Transaction
B1    |      4 | Surcharge amount not permitted on debit cards or EBTfoodstamps
B2    |      4 | Surcharge amount not supported by debit network issuer 
CV    |      4 | Card Type VerificationError
EA    |      4 | Acct Length Err
EB    |      4 | Check Digit Err
EC    |      4 | CID Format Error
HV    |      4 | Hierarchy Verification Error
N0    |      4 | Force STIP
P5    |      4 | PIN Change/Unblock failed
P6    |      4 | New PIN not accepted
Z3    |      4 | Unable to go online; offline-declined
\-38  |      4 | The transaction has been denied by the Gateway because 3D secure Authentication failed. Reason: {}Note: The “Reason” part is optional and may appear according to detected reason. |
D2    |      4 | Decline Retry Later

All other, generic declines may be classified as a Category 4 response code.
      - `result.transaction.hostResponse.reasonDescription` (string)
        Returns a description from the host.
      - `result.transaction.hostResponse.reattemptPermission` (string)
        Returns one of the following values:

Value                                   |Description
----------------------------------------|-----------
Reattempt not permitted                 | Returned when the reasonCode returned is classified as a Category 1 response code.
Reattempt permitted 15 times in 30 days | Returned when the reasonCode returned is classified as a Category 2 or Category 3 response code.
Reattempts permitted                    | Returned when the reasonCode returned is classified as a Category 4 response code.
      - `result.transaction.invoice` (string)
        10-digit invoice number assigned by the interface to identify a transaction. An invoice number serves as a unique key that identifies a transaction within a batch in Shift4's Gateway.

Note: For US and Canadian processing: Although the invoice number is sent as a JSON string it is a numeric value. No alpha characters are allowed.

For processing outside of the US and Canada alpha characters are allowed.
      - `result.transaction.responseCode` (string)
        Code indicating the Shift4 host response.        

Value  | Description   | Details
-------|---------------|--------
A      | Approved      | The 3D Secure process was approved.
D      | Declined      | The 3D Secure process was declined.
        Enum: "A", "C", "D", "e", "f", "P", "R", "S"
      - `result.transaction.retrievalReference` (string)
        Reference retrieval number assigned by the authorizing agency. This value is printed on some receipts.
      - `result.transaction.avs` (object)
      - `result.transaction.avs.postalCodeVerified` (string)
        Identifies whether the ZIP/postal code was verified (‘Y’) or not (‘N’) in an AVS check with a processor.
        Enum: same as `card.present` in "Card Number" (2 values)
      - `result.transaction.avs.result` (string)
        Identifies the response code returned from an Address Verification System (AVS) check with a processor.

Value|Description
-----|-----------
A    | Street address matched, but ZIP/postal code did not match.
E    | Error (AVS data is invalid or not allowed).
G    | Card issuer does not participate in AVS.
N    | No street address and no ZIP/postal code match.
R    | Card issuer system is unavailable.
S    | AVS service not supported.
U    | Street address information unavailable.
W    | Street address did not match, but ZIP/postal code matched.
X    | Street address and 9-digit ZIP/postal code matched.
Y    | Street address and 5-digit ZIP code matched.
Z    | Only the ZIP/postal code matched.
1    | Cardholder name and ZIP match
2    | Cardholder name, address, and ZIP match
3    | Cardholder name, address match
4    | Cardholder name matches
5    | Cardholder name incorrect, ZIP matches
6    | Cardholder name incorrect; address and ZIP match
7    | Cardholder name incorrect; address matches
8    | Cardholder name, address, and ZIP do not match
        Enum: "A", "E", "G", "N", "R", "S", "U", "W", "X", "Y", "Z", "1", "2", "3", "4", "5", "6", "7", "8"
      - `result.transaction.avs.streetVerified` (string)
        Identifies whether the street number was verified (‘Y’) or not (‘N’) in an AVS check with a processor.
        Enum: same as `card.present` in "Card Number" (2 values)
      - `result.transaction.avs.valid` (string)
        Simplified AVS result based on the merchant’s list of accepted responses as configured with Shift4: (‘Y’) if accepted or (‘N’) if not accepted.
        Enum: same as `card.present` in "Card Number" (2 values)
      - `result.threeDSecure` (object)
      - `result.threeDSecure.trxId` (string)
        The assigned 3D Secure transaction ID
      - `result.threeDSecure.cardholderInfo` (string)
        Provides additional information to the customer in particular cases when 3D secure Authentication failed.
      - `result.threeDSecure.cryptogram` (string)
        Ecommerce Cryptogram information
      - `result.threeDSecure.programProtocol` (string)
        Indicates the 3D Secure protocol version. 

Required when processing for merchants in the United States. For merchants outside of the United States use the threeDSecure.version field instead.

 |Value| Description
 |-----|----------------------------|
 | 1   | EMV 3-D Secure Version 2.1 |
 | 2   | EMV 3-D Secure Version 2.2 |
 | 3   | EMV 3-D Secure Version 2.3 |
 | 4   | EMV 3-D Secure Version 2.4 |
 | 5   | EMV 3-D Secure Version 2.5 |
 | 6   | EMV 3-D Secure Version 2.6 |
 | 7   | EMV 3-D Secure Version 2.7 |
 | 8   | EMV 3-D Secure Version 2.8 |
 | 9   | EMV 3-D Secure Version 2.9 |
        Enum: "1", "2", "3", "4", "5", "6", "7", "8", "9"
      - `result.threeDSecure.directoryServerTranId` (string)
        The Directory Server Transaction ID is generated by the EMV 3DS Mastercard Directory Server during the authentication transaction and passed back to the merchant with the authentication results. This field allows the merchant to pass the Directory Server Transaction ID during authorization in order to link authentication and authorization data for Mastercard Identity Check.
      - `result.threeDSecure.ecommIndicator` (string)
        E-commerce Indicator as provided by the application generating the cryptogram.

Value| Description
-----|------------
5    | Secure electronic commerce transaction
6    | Authentication attempted, non-authenticated security transaction
7    | Non-authenticated Security Transaction
        Enum: "5", "6", "7"
      - `result.threeDSecure.securityLevelIndicator` (string)
        This field contains the electronic commerce indicators representing the security level and cardholder authentication associated with the transaction. This field must be present in all Auth Request messages for electronic commerce transactions.

First 2 positions:

Value| Description
-----|------------
21   | Channel encryption; cardholder certificate not used (preferred value for Mastercard SecureCode, Identity Check, and all eCommerce)
22   | Masterpass-generated transaction
24   | Digital Secure Remote Payment (DSRP) with UCAF Data
91   | No security protocol; cardholder certificate not used

Third position:

Value| Description
-----|------------
0    | UCAF Data collection is not supported by the merchant; or the merchant supports SecureCode or Identity Check but has chosen not to undertake it on this transaction; or authentication failed and merchant desires to proceed with the transaction.
1    | UCAF data collection is supported by the merchant and UCAF data must be present and contain an attempt AAV
2    | UCAF data collection is supported by the merchant and UCAF data must be present and contain a fully authenticated AAV
3    | UCAF data collection is supported by the merchant and UCAF (Mastercard assigned Static Accountholder Authentication Value) data must be present. Note that the UCAF Data is required for Static AAV transactions. This value identifies participation in one of the following programs: Maestro Recurring Payments Program, Mastercard Utility Payment Program, Maestro Static AAV for Masterpass
4    | Merchant has chosen to share authentication data within authorization; UCAF data collection not supported
      - `result.receipt` (array)
        Array of receipt key/value pairs that should be printed on the receipt.
      - `result.receipt.key` (string)
        The identifier the interface vendor can use to programmatically determine where to print a specific value.
        Example: "ApplicationIdentifier"
      - `result.receipt.printName` (string)
        The label that relates to the printValue field. When present in the response, this must be printed to the left of the printValue.
        Example: "AID"
      - `result.receipt.printValue` (string)
        The value that relates to the printName field. This must be printed to the right of the printName.
        Example: "AID"
      - `result.server` (object)
      - `result.server.name` (string)
        The name of the server that processed the request.
      - `result.universalToken` (object)
      - `result.universalToken.value` (string)
        An identifier for a card or payment account across all Shift4 merchants.
      - `result.cardBrandToken` (object)
      - `result.cardBrandToken.assuranceLevel` (string)
        This is a response field defined by the token service provider. This Visa, Discover, or Mastercard value indicates the assigned confidence level of the token-to-PAN/cardholder binding.
      - `result.cardBrandToken.panLast4` (string)
        This is a response field that contains 4 characters that represent the last 4 digits of the actual cardholder PAN.
      - `result.cardBrandToken.acctRangeStatus` (string)
        This is a response field contains a one-character value that indicates the Visa regulatory status of the actual card number for which the token represents.

Value| Description
-----|------------
space| Blank/no value
R    | Regulated
N    | Non-Regulated
    - Device Fingerprint:
      - `result` (array)
        Example: {"dateTime":"2022-05-04T09:20:04.487-07:00","amount":{"tax":15,"total":160},"currencyCode":"EUR","card":{"entryMode":"M","number":"XXXXXXXXXXXX1119","present":"N","type":"VS","token":{"value":"8048471746471119"}},"customer":{"firstName":"John","lastName":"Smith","addressLine1":"65 Easy St","city":"Las Vegas","postalCode":"65144","emailAddress":"firstname.lastname@email.com","ipAddress":"63.57.84.101"},"merchant":{"mid":15877,"name":"Merchant XYZ"},"transaction":{"authSource":"A","invoice":"730518","responseCode":"H","retrievalReference":"402F9H0230S0"},"redirectUrl":"https://issuer.com/fingerprint","threeDSecure":{"trxId":"a7bbd49a-ffe6-49b2-8a92-541f0a3b053d"},"server":{"name":"TM01CE"}}
      - `result.dateTime` (string, required)
        The date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh:mm).

Must be sent as the local date/time of the merchant. For example, a request processed at a merchant in the Pacific time zone at 9:18am on April 15th 2021 would be sent as 2021-04-15T09:18:23.283-07:00
      - `result.amount` (object, required)
        Object containing information regarding the amount being requested. The total field within the object is required and specifies the amount being requested. All other fields are for informational purposes and must also be included in the total field. For example, a purchase of $100 with a $20 tip and $8 tax would be 128.00 in the total field, 20.00 in the tip field and 8.00 in the tax field.

Note: For merchants that are configured to allow multiple currencies, the amount  fields can specify up to three decimal places. However, the number of decimal  places can not exceed the number allowed for the specified currency. See the [Currency Codes](/guides/appendices/currency-codes) section for details.
      - `result.amount.total` (number, required)
        The amount being charged for a particular transaction. If other amount fields are sent, they must be included in the total amount. Amount cannot be zero.
      - `result.amount.tax` (number, required)
        The amount of sales tax charged for a transaction. The tax amount is used by businesses to track tax expenses for accounting purposes. Identifying the tax amount also helps consumers understand the total amount that they were billed.  This field is part of Level 2 card data.
      - `result.amount.taxIndicator` (string)
        Value|Description
-----|-----------
Y    | Tax is included
N    | Tax is not included
        Enum: same as `card.present` in "Card Number" (2 values)
      - `result.amount.cashback` (number)
        Specifies the cashback amount in a transaction. When using a UTG-controlled PIN pad with the ALLOWCASHBACK API Option, this field will return the cashback amount requested by the consumer. The interface can also send the desired cashback amount in a request by adding it to the amount.total and including it in the amount.cashback field. This will bypass prompting the consumer for a cashback amount.
      - `result.amount.surcharge` (number)
        Conditional: Send in the request if a surcharge was applied to the transaction.

In a sale or authorization transaction, the surcharge field specifies a fee amount that a consumer is charged in addition to the transaction amount. The fee amount is also added into amount.total. For example, if the transaction request had amount.total = 100 and the surcharge.percentage was 1.5% the transaction would include amount.total = 101.50 and amount.surcharge = 1.50
      - `result.amount.tip` (number)
        Conditional: Send in the request if a tip is included.

The tip amount of the transaction.
      - `result.currencyCode` (string, required)
        Transaction currency code. See the [Currency Codes](/guides/appendices/currency-codes) section for details.

Note: This is currently supported when processing for a merchant outside of the US and Canada. If processing for a US or Canadian merchant then this field will be ignored and the transaction will process in the merchant's configured currency.
      - `result.threeDSecure` (object, required)
      - `result.threeDSecure.trxId` (string, required)
        The assigned 3D Secure transaction ID
      - `result.redirectUrl` (string, required)
        URL to redirect the browser to the 3D Secure transaction response indicates a Device Fingerprint or 3D Secure challenge is required.
      - `result.card` (object)
      - `result.card.entryMode` (string)
        Conditional: The Card Entry Mode should be sent in an initial request; in subsequent requests, it should be left blank or not sent. When using a Universal Transaction Gateway® (UTG®)-controlled PIN pad, this field should be left blank or not sent in a request; the UTG will capture the card entry mode and return it in the response. When P2PE data is being sent from a non-UTG controlled device, this field is not needed

The method used to capture a payment card in an authorization/sale request. 

Value|Description
-----|-----------
1    | Track 1 Only or Dual Track (Track 1 & 2)
2    | Track 2 Only
C    | EMV Contactless via card or mobile wallet
E    | EMV Chip
M    | Manual Entry
Q    | QR Code
R    | Contactless MSD
        Enum: same as `result.card.entryMode` in "Request Complete" (7 values)
      - `result.card.number` (string)
        The card number field will always be masked when returned in a response.
      - `result.card.expirationDate` (integer)
        Conditional: Requires API Option "RETURNEXPDATE".

Card expiration date in MMYY format. This value will only be populated if "RETURNEXPDATE" is included in the apiOptions array.
      - `result.card.present` (string)
        Conditional: Send in the initial authorization/sale request

Indicates whether a card was present (‘Y’) or not (‘N’) at the time a transaction took place. This should be set appropriately in the initial authorization/sale request.  In subsequent requests, this field should be left blank or should not be sent.

Note: Subsequent request here does not apply to the secondary request for card on file type transactions or reuse of the same card. An example of a subsequent request would be a capture after an authorization. You would not include card.present in the capture, which is the subsequent request. Another example is when performing an incremental authorization where you perform an authorization, followed by an incremental authorization then a capture. The second authorization (incremental) and the capture are the subsequent requests where you would not include card.present.
        Enum: same as `card.present` in "Card Number" (2 values)
      - `result.card.type` (string)
        An abbreviation used to specify the type of card that was used when processing a transaction.

Value| Description
-----|------------
AX   | American Express
AP   | Alipay
BC   | Backed Card       
CI   | Citgo        
DB   | Debit card
GC   | Gift Card
JC   | JCB
MC   | Mastercard
NS   | Discover/JCB/Novus
PL   | Private Label
SC   | Sears Canada
VS   | Visa
WP   | WeChat Pay
YC   | IT’S YOUR CARD
        Enum: same as `result.card.type` in "Request Complete" (14 values)
      - `result.card.token` (object)
      - `result.card.token.value` (string)
        This field is used to specify a card token. Whenever CHD is sent in a request, a card token will be returned in this field. Your interface should be designed to store this card token for future use. The latest card token received should be used in any subsequent request that references the same card data.
      - `result.customer` (object)
      - `result.customer.firstName` (string)
        Specifies a consumer’s first name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
      - `result.customer.lastName` (string)
        Specifies a consumer’s last name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
      - `result.customer.phoneNumber` (string)
        Customer phone number
      - `result.customer.emailAddress` (string)
        Customer email address.
      - `result.customer.addressLine1` (string)
        Cardholder’s street address exactly as it appears on their billing statement. This field is used in AVS.
      - `result.customer.city` (string)
        Customer address city.
      - `result.customer.region` (string)
        A level 2 country subdivision code according to ISO-3166-2.
      - `result.customer.postalCode` (string)
        Cardholder’s ZIP/postal code from their billing statement. This field is used in AVS. Do not include special characters.

Note: This field only allows alphanumeric characters (a-z, A-Z, 0-9). Special characters including - are not allowed. If you are sending in zip+4 you must not include the dash so 89134-1234 would be sent as 891341234
      - `result.customer.country` (string)
        2 character ISO Country Code. See the [ISO](https://www.iso.org/obp/ui/#search/code/) website for details.
      - `result.customer.ipAddress` (string)
        Public source IP Address where the request originates, not the IP Address of the web server.
      - `result.customer.shipping` (object)
        Conditional: must be sent if threeDSecure.addressMatch is 'false'
      - `result.customer.shipping.addressLine1` (string)
        Shipping street address - Line 1

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.addressLine2` (string)
        Shipping street address - Line 2
      - `result.customer.shipping.city` (string)
        Shipping address - City

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.country` (string)
        Shipping address - 2 character ISO Country Code.

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.postalCode` (string)
        Shipping address - Postal Code

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.region` (string)
        Shipping address - A level 2 country subdivision code according to ISO-3166-2.

Recommended for increasing the possibility of frictionless flow
      - `result.merchant` (object)
      - `result.merchant.mid` (number)
        The merchant ID associated with the merchant account.
      - `result.merchant.name` (string)
        The merchant’s business name as configured with Shift4.
      - `result.transaction` (object)
      - `result.transaction.authSource` (string)
        In a response, a code returned by the processor to indicate which host issued the response.

Value  | Description       
-------|----------------------------
E      | Engine (Online)
O      | Offline
A      | APM (Online)
F      | Payment Platform (Online)
        Enum: same as `result.transaction.authSource` in "Request Complete" (4 values)
      - `result.transaction.invoice` (string)
        10-digit invoice number assigned by the interface to identify a transaction. An invoice number serves as a unique key that identifies a transaction within a batch in Shift4's Gateway.

Note: For US and Canadian processing: Although the invoice number is sent as a JSON string it is a numeric value. No alpha characters are allowed.

For processing outside of the US and Canada alpha characters are allowed.
      - `result.transaction.responseCode` (string)
        Response code indicating that the 3D Secure transaction requires device fingerprinting.

Value  |Description
-------|-----------
H      | Device fingerprinting required. Issuer fingerprint URL returned in the redirectURL field. See [Handling Device Fingerprint Response](/guides/advanced-concepts/3d-secure#handling-device-fingerprint-response) for details on how to handle the Device Fingerprint process.
        Enum: "H"
      - `result.transaction.retrievalReference` (string)
        Reference retrieval number assigned by the authorizing agency. This value is printed on some receipts.
      - `result.server` (object)
      - `result.server.name` (string)
        The name of the server that processed the request.
    - 3D Secure Challenge:
      - `result` (array)
        Example: {"dateTime":"2022-05-04T09:20:04.487-07:00","amount":{"tax":15,"total":160},"currencyCode":"EUR","card":{"entryMode":"M","number":"XXXXXXXXXXXX1119","present":"N","type":"VS","token":{"value":"8048471746471119"}},"customer":{"firstName":"John","lastName":"Smith","addressLine1":"65 Easy St","city":"Las Vegas","postalCode":"65144","emailAddress":"firstname.lastname@email.com","ipAddress":"63.57.84.101"},"merchant":{"mid":15877,"name":"Merchant XYZ"},"transaction":{"authSource":"A","invoice":"730518","responseCode":"G","retrievalReference":"402F9H0230S0"},"redirectUrl":"https://issuer.com/challenge","server":{"name":"TM01CE"}}
      - `result.dateTime` (string, required)
        The date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh:mm).

Must be sent as the local date/time of the merchant. For example, a request processed at a merchant in the Pacific time zone at 9:18am on April 15th 2021 would be sent as 2021-04-15T09:18:23.283-07:00
      - `result.amount` (object, required)
        Object containing information regarding the amount being requested. The total field within the object is required and specifies the amount being requested. All other fields are for informational purposes and must also be included in the total field. For example, a purchase of $100 with a $20 tip and $8 tax would be 128.00 in the total field, 20.00 in the tip field and 8.00 in the tax field.

Note: For merchants that are configured to allow multiple currencies, the amount  fields can specify up to three decimal places. However, the number of decimal  places can not exceed the number allowed for the specified currency. See the [Currency Codes](/guides/appendices/currency-codes) section for details.
      - `result.amount.total` (number, required)
        The amount being charged for a particular transaction. If other amount fields are sent, they must be included in the total amount. Amount cannot be zero.
      - `result.amount.tax` (number, required)
        The amount of sales tax charged for a transaction. The tax amount is used by businesses to track tax expenses for accounting purposes. Identifying the tax amount also helps consumers understand the total amount that they were billed.  This field is part of Level 2 card data.
      - `result.amount.taxIndicator` (string)
        Value|Description
-----|-----------
Y    | Tax is included
N    | Tax is not included
        Enum: same as `card.present` in "Card Number" (2 values)
      - `result.amount.cashback` (number)
        Specifies the cashback amount in a transaction. When using a UTG-controlled PIN pad with the ALLOWCASHBACK API Option, this field will return the cashback amount requested by the consumer. The interface can also send the desired cashback amount in a request by adding it to the amount.total and including it in the amount.cashback field. This will bypass prompting the consumer for a cashback amount.
      - `result.amount.surcharge` (number)
        Conditional: Send in the request if a surcharge was applied to the transaction.

In a sale or authorization transaction, the surcharge field specifies a fee amount that a consumer is charged in addition to the transaction amount. The fee amount is also added into amount.total. For example, if the transaction request had amount.total = 100 and the surcharge.percentage was 1.5% the transaction would include amount.total = 101.50 and amount.surcharge = 1.50
      - `result.amount.tip` (number)
        Conditional: Send in the request if a tip is included.

The tip amount of the transaction.
      - `result.currencyCode` (string, required)
        Transaction currency code. See the [Currency Codes](/guides/appendices/currency-codes) section for details.

Note: This is currently supported when processing for a merchant outside of the US and Canada. If processing for a US or Canadian merchant then this field will be ignored and the transaction will process in the merchant's configured currency.
      - `result.threeDSecure` (object, required)
      - `result.threeDSecure.trxId` (string, required)
        The assigned 3D Secure transaction ID
      - `result.redirectUrl` (string, required)
        URL to redirect the browser to the 3D Secure transaction response indicates a Device Fingerprint or 3D Secure challenge is required.
      - `result.card` (object)
      - `result.card.entryMode` (string)
        Conditional: The Card Entry Mode should be sent in an initial request; in subsequent requests, it should be left blank or not sent. When using a Universal Transaction Gateway® (UTG®)-controlled PIN pad, this field should be left blank or not sent in a request; the UTG will capture the card entry mode and return it in the response. When P2PE data is being sent from a non-UTG controlled device, this field is not needed

The method used to capture a payment card in an authorization/sale request. 

Value|Description
-----|-----------
1    | Track 1 Only or Dual Track (Track 1 & 2)
2    | Track 2 Only
C    | EMV Contactless via card or mobile wallet
E    | EMV Chip
M    | Manual Entry
Q    | QR Code
R    | Contactless MSD
        Enum: same as `result.card.entryMode` in "Request Complete" (7 values)
      - `result.card.number` (string)
        The card number field will always be masked when returned in a response.
      - `result.card.expirationDate` (integer)
        Conditional: Requires API Option "RETURNEXPDATE".

Card expiration date in MMYY format. This value will only be populated if "RETURNEXPDATE" is included in the apiOptions array.
      - `result.card.present` (string)
        Conditional: Send in the initial authorization/sale request

Indicates whether a card was present (‘Y’) or not (‘N’) at the time a transaction took place. This should be set appropriately in the initial authorization/sale request.  In subsequent requests, this field should be left blank or should not be sent.

Note: Subsequent request here does not apply to the secondary request for card on file type transactions or reuse of the same card. An example of a subsequent request would be a capture after an authorization. You would not include card.present in the capture, which is the subsequent request. Another example is when performing an incremental authorization where you perform an authorization, followed by an incremental authorization then a capture. The second authorization (incremental) and the capture are the subsequent requests where you would not include card.present.
        Enum: same as `card.present` in "Card Number" (2 values)
      - `result.card.type` (string)
        An abbreviation used to specify the type of card that was used when processing a transaction.

Value| Description
-----|------------
AX   | American Express
AP   | Alipay
BC   | Backed Card       
CI   | Citgo        
DB   | Debit card
GC   | Gift Card
JC   | JCB
MC   | Mastercard
NS   | Discover/JCB/Novus
PL   | Private Label
SC   | Sears Canada
VS   | Visa
WP   | WeChat Pay
YC   | IT’S YOUR CARD
        Enum: same as `result.card.type` in "Request Complete" (14 values)
      - `result.card.token` (object)
      - `result.card.token.value` (string)
        This field is used to specify a card token. Whenever CHD is sent in a request, a card token will be returned in this field. Your interface should be designed to store this card token for future use. The latest card token received should be used in any subsequent request that references the same card data.
      - `result.customer` (object)
      - `result.customer.firstName` (string)
        Specifies a consumer’s first name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
      - `result.customer.lastName` (string)
        Specifies a consumer’s last name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the response, unless the API Option [USECARDNAME](/guides/appendices/api-options#usecardname) is included in the request and a Commerce Engine or UTG-controlled PIN pad is in use. If the interface does not send the customer object, the consumer's name will be returned in the customer object if the name is present in the card's EMV or track data.
      - `result.customer.phoneNumber` (string)
        Customer phone number
      - `result.customer.emailAddress` (string)
        Customer email address.
      - `result.customer.addressLine1` (string)
        Cardholder’s street address exactly as it appears on their billing statement. This field is used in AVS.
      - `result.customer.city` (string)
        Customer address city.
      - `result.customer.region` (string)
        A level 2 country subdivision code according to ISO-3166-2.
      - `result.customer.postalCode` (string)
        Cardholder’s ZIP/postal code from their billing statement. This field is used in AVS. Do not include special characters.

Note: This field only allows alphanumeric characters (a-z, A-Z, 0-9). Special characters including - are not allowed. If you are sending in zip+4 you must not include the dash so 89134-1234 would be sent as 891341234
      - `result.customer.country` (string)
        2 character ISO Country Code. See the [ISO](https://www.iso.org/obp/ui/#search/code/) website for details.
      - `result.customer.ipAddress` (string)
        Public source IP Address where the request originates, not the IP Address of the web server.
      - `result.customer.shipping` (object)
        Conditional: must be sent if threeDSecure.addressMatch is 'false'
      - `result.customer.shipping.addressLine1` (string)
        Shipping street address - Line 1

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.addressLine2` (string)
        Shipping street address - Line 2
      - `result.customer.shipping.city` (string)
        Shipping address - City

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.country` (string)
        Shipping address - 2 character ISO Country Code.

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.postalCode` (string)
        Shipping address - Postal Code

Recommended for increasing the possibility of frictionless flow
      - `result.customer.shipping.region` (string)
        Shipping address - A level 2 country subdivision code according to ISO-3166-2.

Recommended for increasing the possibility of frictionless flow
      - `result.merchant` (object)
      - `result.merchant.mid` (number)
        The merchant ID associated with the merchant account.
      - `result.merchant.name` (string)
        The merchant’s business name as configured with Shift4.
      - `result.transaction` (object)
      - `result.transaction.authSource` (string)
        In a response, a code returned by the processor to indicate which host issued the response.

Value  | Description       
-------|----------------------------
E      | Engine (Online)
O      | Offline
A      | APM (Online)
F      | Payment Platform (Online)
        Enum: same as `result.transaction.authSource` in "Request Complete" (4 values)
      - `result.transaction.invoice` (string)
        10-digit invoice number assigned by the interface to identify a transaction. An invoice number serves as a unique key that identifies a transaction within a batch in Shift4's Gateway.

Note: For US and Canadian processing: Although the invoice number is sent as a JSON string it is a numeric value. No alpha characters are allowed.

For processing outside of the US and Canada alpha characters are allowed.
      - `result.transaction.responseCode` (string)
        Response code indicating that the 3D Secure transaction requires a challenge.

Value  |Description
-------|-----------
G      | 3D Secure challenge required. Issuer challenge URL returned in the redirectURL field.
        Enum: "G"
      - `result.transaction.retrievalReference` (string)
        Reference retrieval number assigned by the authorizing agency. This value is printed on some receipts.
      - `result.server` (object)
      - `result.server.name` (string)
        The name of the server that processed the request.

## Response 400 fields (application/json):

  - `result` (array)
    Example: [{"dateTime":"2022-05-04T09:20:04.487-07:00","error":{"primaryCode":9842,"secondaryCode":0,"shortText":"NOT IN CARDRANGE","longText":"Card type not recognized"},"server":{"name":"U2API01CE"},"transaction":{"invoice":"730518"}}]

  - `result.dateTime` (string)
    The date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh:mm).

Must be sent as the local date/time of the merchant. For example, a request processed at a merchant in the Pacific time zone at 9:18am on April 15th 2021 would be sent as 2021-04-15T09:18:23.283-07:00

  - `result.error` (object)

  - `result.error.code` (integer)
    Code indicating the type of error that occurred. Refer to the [Error Codes](/guides/appendices/error-codes) section of this document for more details.

Note: This is currently only supported for European merchant processing.

  - `result.error.severity` (string)
    Severity level of the error.

| Severity | Description                                                       |
| -------- | ----------------------------------------------------------------  |
| Info     | Action not required - Data input/formatting is incorrect          |
| Error    | Action may be required - Communication, timeout or network issue  |
| Alert    | Action required - System issue                                    |
    Enum: "Info", "Error", "Alert"

  - `result.error.shortText` (string)
    Abbreviated error message that is always returned if an error condition exists

  - `result.error.longText` (string)
    Extended error message that is returned if an error condition exists.

  - `result.error.primaryCode` (integer)
    Code indicating the type of error that occurred. Refer to the [Error Codes](/guides/appendices/error-codes) section of this document for more details.

  - `result.error.secondaryCode` (integer)
    This code supplements the code specified in the error.primaryCode field to provide additional information about the error that occurred.

  - `result.server` (object)

  - `result.server.name` (string)
    The name of the server that processed the request.

  - `result.transaction` (object)

  - `result.transaction.invoice` (string)
    10-digit invoice number assigned by the interface to identify a transaction. An invoice number serves as a unique key that identifies a transaction within a batch in Shift4's Gateway.

Note: For US and Canadian processing: Although the invoice number is sent as a JSON string it is a numeric value. No alpha characters are allowed.

For processing outside of the US and Canada alpha characters are allowed.

  - `result.transaction.hostResponse` (object)
    Returns the response code from the host

  - `result.transaction.hostResponse.reasonCode` (string)
    Returns a response code from the host.

| Value | Description                                                                         |
| ----- | ----------------------------------------------------------------------------------- |
| \-69  | Transaction has been declined. Invalid 3ds\_version parameter.                      |
| \-68  | Authentication process timed out. Please try again.                                 |
| \-66  | Invalid combination of 3ds values                                                   |
| \-65  | Merhant is not allowed for this exemption                                           |
| \-64  | Exemption is not allowed for this transaction amount                                |
| \-63  | Merchant is not enrolled to 3D-secure service.                                      |
| \-50  | An error occurred during the 3D secure process                                      |
| \-39  | You need to be registered with the 3D Adviser service to complete the request       |
| \-37  | Transaction has been denied. Malformed or missing parameter.                        |
| \-36  | The selected processor does not support some of the parameters.                     |
| \-35  | Merchant is not registered.                                                         |
| \-33  | You need to be registered with the routing service to complete the routing request. |
| \-32  | You are not registered with the selected Processor.                                 |
| \-30  | Transaction Failed due to error in 3D secure process.                               |
| \-20  | Authentication error. Please contact support.                                       |
| \-17  | Selected service is unavailable                                                     |
| \-16  | Selected service is unavailable                                                     |
| \-15  | Selected service is unavailable                                                     |
| \-13  | Merchant is not enrolled in the 3D Secure Adviser service.                          |
| \-12  | Transaction has been declined due to security restrictions.                         |
| \-11  | Rejected. Format Error                                                              |
| \-10  | System error. Please contact support.                                               |
| \-9   | Parameter(s) malformed                                                              |
| \-8   | Parameter(s) malformed                                                              |
| \-7   | Please contact support.                                                             |
| 1     | Transaction not allowed                                                             |
| 2     | Transaction not allowed                                                             |
| 3     | Transaction not allowed                                                             |
| 4     | Transaction not allowed                                                             |
| 7     | The transaction was declined by the gateway and will not be processed.              |
| 9     | The transaction has been denied.                                                    |
| 11    | The queried transaction is currently being processed. Please try again.             |
| 13    | The transaction has been denied.                                                    |
| 15    | The transaction has been denied.

  - `result.transaction.hostResponse.reasonDescription` (string)
    Returns a description from the host.

## Response 504 fields (application/json):

  - `result` (array)

  - `result.error` (object)

  - `result.lighthouse` (object)

  - `result.lighthouse.data` (string)
    Base64 encoded JSON formatted data that will be returned from Lighthouse to be passed back to SkyTab. This data will contain variable information.

  - `result.server` (object)


