# Cash Disbursement

Initiates a cash disbursement request. Use this endpoint to request a specified amount to be returned to the cardholder in cash. Upon successful request, the disbursement is processed against the associated card account and the funds are made available to the cardholder.
**Integration Methods:**
- Host Direct

See the [Integration Methods](/guides/quickstart#integration-methods) and [URLs Section](/guides/quickstart#urls) sections of the Development Quick Start guide for details regarding each processing option.
See the [JSON Body Schemas](/guides/quickstart#json-body-schemas) for more details on the various JSON body formats.

Endpoint: POST /transactions/cashdisbursement
Version: 1.7.68
Security: AccessToken

## Security:

  - `AccessToken` (unknown)
    apiKey in header 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:  $ % : ^ - ~ < > , ? “ ” ‘ ’ { } [ ] \ + =

  - `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:  $ % : ^ - ~ ` < > , ? “ ” ‘ ’ { } [ ] \ + =

  - `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:  $ % : ^ - ~ ` < > , ? “ ” ‘ ’ { } [ ] \ + =

  - `AccessToken` (string, required)
    A security credential used to authenticate API requests and all [i4Go®](https://s4-myportal.s3.amazonaws.com/downloads/documentation/i4go/i4go%20technical%20reference%20guide.pdf) 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](/apis/payments-platform-rest/openapi/credentials/accesstokenexchange) request, which generates an Access Token using an `authToken` and `clientGuid`.

## Request fields (application/json):

  - `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: 2024-05-21T09: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. 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.

  - `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

  - `amount.tax` (number)
    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.
    Example: 15

  - `clerk` (object, required)

  - `clerk.numericId` (integer, required)
    A number used to identify the point-of-sale (POS) or property management system (PMS) clerk or user. The value cannot be 0. An interface must be able to dynamically populate this field (not use a hardcoded value), unless the interface will be used exclusively for e-commerce.
    Example: 1576

  - `transaction` (object, required)

  - `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: 0510093358

  - `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.businessDate` (string)
    Desired business date of a transaction. Include when overriding the existing business date of a transaction. The overriding date may be earlier or later than the existing date. (yyyy-mm-dd)
    Example: 2021-04-15

  - `transaction.pin` (object)
    **Conditional: Include in the request for PIN debit and EMV Online PIN transactions. This object does not apply to Commerce Engine or UTG controlled devices.**

  - `transaction.pin.block` (string)
    Encrypted PIN data received from a POS-controlled PIN pad (not controlled by the UTG).
    Example: 1234567890123456

  - `transaction.pin.ksn` (string)
    Key serial number (KSN) received from a POS-controlled PIN pad (not controlled by the UTG). This field is a hexadecimal field that should be padded with leading ‘F’s.
    Example: FFFF4950010293927772

  - `transaction.vendorReference` (string)
    Optional field for information that can be searched in the merchant portal.
    Example: 12382-01

  - `device` (object, required)

  - `device.manufacturer` (string, required)
    Specifies the company which manufactured the device.
    Enum: "Ingenico", "Innowi", "PAX", "Verifone", "Castles", "Miura"

  - `device.model` (string, required)
    **Conditional: Required when using a non-UTG-controlled device.**
Specifies the model of the device.
    Example: A800

  - `device.serialNumber` (string, required)
    Specifies the serial number of the device.
    Example: 1170301234

  - `device.capability` (object, required)
    **Conditional: Required when using a non-UTG-controlled device.**

  - `device.capability.contactlessEMV` (string)
    Specifies whether or not the device supports contactless EMV.  If this input method can be supported by the device, but the input method is currently disabled for all transactions on the device, then the value 'N' should be sent.
    Enum: "Y", "N"

  - `device.capability.contactlessMSR` (string)
    Specifies whether or not the device supports contactless magstripe.  If this input method can be supported by the device, but the input method is currently disabled for all transactions on the device, then the value 'N' should be sent.
    Enum: "Y", "N"

  - `device.capability.EMV` (string)
    Specifies whether or not the device supports EMV.  If this input method can be supported by the device, but the input method is currently disabled for all transactions on the device, then the value 'N' should be sent.
    Enum: "Y", "N"

  - `device.capability.manualEntry` (string)
    Specifies whether or not the device supports manual entry.  If this input method can be supported by the device, but the input method is currently disabled for all transactions on the device, then the value 'N' should be sent.
    Enum: "Y", "N"

  - `device.capability.magstripe` (string)
    Specifies whether or not the device supports magstripe.  If this input method can be supported by the device, but the input method is currently disabled for all transactions on the device, then the value 'N' should be sent.
    Enum: "Y", "N"

  - `device.capability.PIN` (string)
    Specifies whether or not the device supports PIN entry (for debit or EMV). If this input method can be supported by the device, but the input method is currently disabled for all transactions on the device, then the value 'N' should be sent.
    Enum: "Y", "N"

  - `device.capability.quickChip` (string)
    Specifies whether or not the device supports quick chip.  If this input method can be supported by the device, but the input method is currently disabled for all transactions on the device, then the value 'N' should be sent.
    Enum: "Y", "N"

  - `device.capability.signature` (string)
    Specifies whether or not the device supports signature capture.  If this input method can be supported by the device, but the input method is currently disabled for all transactions on the device, then the value 'N' should be sent.
    Enum: "Y", "N"

  - `p2pe` (object, required)
    See [P2PE Format 05 TDES DUKPT](/guides/core-concepts/p2pe-format#tdes-dukpt---format-05) for more information.

  - `p2pe.format` (string, required)
    Classifies the type of payment device being used for P2PE.
| Value | Description |
|  --- | --- |
| 05 | [Shift4 TDES DUKPT format](/guides/core-concepts/p2pe-format#tdes-dukpt---format-05) |
    Enum: "05"

  - `p2pe.ksn` (string, required)
    The key serial number which was used to encrypt the P2PE data.
    Example: 6299495001100E200041

  - `emv` (object, required)
    **Conditional: Required when processing an EMV transaction without using a UTG.**

  - `emv.emptyCandidateList` (string)
    When EMV is attempted but fallback occurs due to an empty candidate list, this field should be sent as 'Y' and `emv.fallback` should also be sent as 'Y'.  If this field is not sent, a value of 'N' is assumed.
    Enum: "Y", "N"

  - `emv.tlvData` (string, required)
    This field will contain all EMV tags in standard TLV format including the P2PE encrypted tags (5A and 57).  The P2PE encrypted tags (5A and 57) will have the entire TLV string encrypted and the encrypted data will be in a TLV format using the same tag. For example, tag 5A would look like the following:
- Encrypted: 5A103737DA95D8062F647A0FF747CC496570
- Decrypted: 5A084761739001010010
    Example: 4F07A0000000041010500A4D61737465724361726457203CCEB572BE7DD0A38E62E6BD70E3DAACE9B46BD3BF65E188E7D8D68D2178DE1A5A10B1794BAC083B08F0A1444F189A5493255F201A546573742F43617264203039202020202020202020202020…

  - `card` (object)

  - `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"

  - `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.type` (string)
    An abbreviation used to specify the type of card that will be used when processing a transaction.  If an interface sends a value that is not listed here, that value will be ignored.
| Value | Description |
|  --- | --- |
| CC | When using a UTG-controlled device, this value will force a card to process as credit. |
| DB | When using a UTG-controlled device, this value will force a card to process as debit.  When using a non-UTG-controlled PIN pad, this value must be sent when processing a debit transaction. |
| GC | Gift Card |
| HF | HSA/FSA Card |
| PL | Private Label |
| YC | IT’S YOUR CARD |
    Enum: "CC", "DB", "GC", "HF", "PL", "YC"

  - `receiptColumns` (integer)
    Send this field if you want Shift4 to format the receipt text instead of returning individual fields. The value sent will correlate to the column width of the formatted receipt that we return. (This also allows the receipt text to wrap to fit the paper size of the printed receipt.) See the [Printing Receipts](/guides/core-concepts/printing-receipts) section of this document for more information on formatted receipts.
    Example: 40

  - `currencyCode` (string)
    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: USD

  - `apiOptions` (array)
    API Options modify the request being made. See the [API Options](/guides/appendices/api-options) section for more information.
    Example: ["RETURNEXPDATE","ALLOWPARTIALAUTH"]

  - `statementSuffix` (string)
    Custom description that will be appended to the merchant name on the customer's statement. For most card brands, the merchant DBA name can be a maximum of 25 characters. Sending this value will cause the merchant name to be truncated to 9 characters. Shift4 will add an asterisk between the merchant name and the `statementSuffix` value.
For example, for a merchant named `Joe's Warehouse Emporium` that processes a transaction with `statementSuffix` value of `KDNYZUHQ1`, the merchant statement will show as `Joe's War*KDNYZUHQ1`.
**Note: The value that displays on customer statements from card issuers is beyond Shift4's control. We will submit the transaction data as described above, however issuers may modify or truncate that data as they see fit. To best accommodate different issuer limitations, we will truncate the merchant name to the minimum possible value (9 characters) in order to attempt to leave the most room for the statementSuffix to populate on issuer statements.**
    Example: KDNYZUHQ1

  - `emv` (object)
    **Conditional: Required when processing an EMV fallback transaction.**

  - `emv.fallback` (string)
    When EMV is attempted but fallback occurs for any reason, this field should be sent as 'Y'.  If this field is not sent, a value of 'N' is assumed.
    Enum: "Y", "N"

## Response 200:

  - `200` (unknown)
    Transaction was processed

## Response 200 fields (application/json):

  - `result` (array)

  - `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
    Example: 2024-05-21T09:18:23.283-07:00

  - `result.amount` (object)
    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.
    Example: 160

  - `result.amount.tax` (number)
    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.
    Example: 15

  - `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.
    Example: 1230

  - `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.
    Example: 2C

  - `result.card.number` (string)
    The card number field will always be masked when returned in a response.
    Example: XXXXXXXXXXXX1119

  - `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: "Y", "N"

  - `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.
    Example: 24.33

  - `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.
    Example: Y

  - `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.
    Example: 8048471746471119

  - `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 returned whenever the customer name is supplied in the request or if the track/EMV data contains the cardholder name.
    Example: John

  - `result.customer.lastName` (string)
    Specifies a consumer’s last name. This field is returned whenever the customer name is supplied in the request or if the track/EMV data contains the cardholder name.
    Example: Smith

  - `result.clerk` (object)

  - `result.clerk.numericId` (integer)
    A number used to identify the point-of-sale (POS) or property management system (PMS) clerk or user. The value cannot be 0. An interface must be able to dynamically populate this field (not use a hardcoded value), unless the interface will be used exclusively for e-commerce.
    Example: 1576

  - `result.device` (object)

  - `result.device.terminalId` (string)
    To prompt a specific UTG-controlled PIN pad in a request, the API Terminal ID configured in UTG TuneUp must be specified in this field.
    Example: 1742

  - `result.emv` (object)
    Returned when processing a full EMV or EMV fallback transaction.

  - `result.emv.fallback` (string)
    When EMV is attempted but fallback occurs for any reason, this field should be sent as 'Y'.  If this field is not sent, a value of 'N' is assumed.
    Enum: "Y", "N"

  - `result.emv.tlvData` (string)
    This field will contain the EMV response tags in standard TLV format.
    Example: 910A0102030405060708090A

  - `result.merchant` (object)

  - `result.merchant.mid` (number)
    The merchant ID associated with the merchant account.
    Example: 15877

  - `result.merchant.name` (string)
    The merchant’s business name as configured with Shift4.
    Example: Merchant XYZ

  - `result.receipt` (array)
    Array of receipt key/value pairs that should be printed on the receipt.
    Example: [{"key":"ApplicationIdentifier","printName":"AID","printValue":"A0000000031010"},{"key":"TerminalVerificationResults","printName":"TVR","printValue":"8000"},{"key":"IssuerApplicationData","printName":…

  - `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.
    Example: TM01CE

  - `result.signature` (object)

  - `result.signature.data` (string)
    The base64-encoded data sent when a signature is captured as a Portable Network Graphics (PNG) file.
    Example: iVBORw0KGgoAAAANSUhEUgAAA2kAAAEhCAYAAADlHOiOAAAABHNCSVQICAgIfAhkiAAAAAFzUkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7EAAAOxAGVKw4bAACN0ElEQVR4Xu2dB5hU5dn3T97yJXnVqDTBWAABC2KhiFERUDQWLKioUWNAETQqRjT2…

  - `result.signature.format` (string)
    The data format the signature data will be in. "P" for PNG format.
    Enum: "P"

  - `result.transaction` (object)

  - `result.transaction.authorizationCode` (string)
    The authorization code provided by the consumer’s issuing bank. It is provided in a response if an online authorization or sale request is approved. Following a referral response, it is also specified in [Manual Sale](/apis/payments-platform-rest/openapi/transactions/manualsale) requests.
    Example: 198399

  - `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.
    Example: 04

  - `result.transaction.hostResponse.reasonDescription` (string)
    Returns a description from the host.
    Example: Pick Up Card

  - `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. |
    Example: Reattempt not permitted

  - `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.**
    Example: 0510093358

  - `result.transaction.responseCode` (string)
    Code indicating the Shift4 host response.
| Value | Description | Details |
|  --- | --- | --- |
| A | Approved | The transaction is approved. |
| C | Approved | The transaction is approved without requiring additional authorization because it is less than or equal to a ceiling amount. (The ceiling amount is the original authorization amount multiplied by the tolerance per the merchant’s settings with Shift4.) |
| D | Declined | The transaction is declined. Note: Shift4 automatically declines AVS/CSC failures if the [POSHANDLEAVSFAIL Api Option](/guides/appendices/api-options#poshandleavsfail) was not sent in the request. |
| e | [Error](/guides/appendices/error-codes) | There is an error condition. |
| f | [AVS or CSC failure](/guides/response-handling/understanding-avs-and-csc-verification) | An AVS or CSC failure has occurred (credit card only). Note: This value will only be returned if the [POSHANDLEAVSFAIL Api Option](/guides/appendices/api-options#poshandleavsfail) was sent in the request. |
| P | [Partial approval](/guides/advanced-concepts/partial-approval) | A partial approval has occurred.  Check `amount.total` for the approved amount. Note: If both the [ALLOWPARTIALAUTH](/guides/appendices/api-options#allowpartialauth) and [POSHANDLEAVSFAIL](/guides/appendices/api-options#poshandleavsfail) Api Options were sent in the request and the transaction is partially approved with an AVS or CSC failure, `P` is returned instead of `f`. The interface must check `avs.valid` and `card.securityCode.valid` to determine whether AVS or CSC verification failed and handle the failure itself. |
| R | Voice referral | The transaction requires a voice referral. |
| [blank] | Status is unknown | The approval status is unknown. |
| X | Expired card | There is an error condition due to the card being expired. |
| S | SCA Online PIN required | The contactless EMV transaction requires strong customer authentication to continue. The terminal must gather the online PIN if supported by the device form factor and CVM list then resubmit the transaction request. |
| I | SCA Interface switch required | The contactless EMV transaction requires strong customer authentication to continue. The terminal must look at the form factor indicator to determine if the transaction should be declined, switched to EMV contact or tapped again using CDCVM. |
| J | Soft decline after exemption request | Transaction was soft declined. Returned when requesting an exemption by sending `transaction.exemptionAction = 02` and the card issuer rejects the exemption. |
    Enum: "A", "C", "D", "e", "f", "P", "R", "X", "S", "I"

  - `result.transaction.retrievalReference` (string)
    Reference retrieval number assigned by the authorizing agency. This value is printed on some receipts.
    Example: 402F9H0230S0

  - `result.transaction.saleFlag` (string)
    Specifies a transaction is a sale (‘S’) or credit (‘C’).  In an [Invoice Information](/apis/payments-platform-rest/openapi/transactions/getinvoice) request, an 'A' may be returned to differentiate an authorization from a sale.
    Enum: "A", "C", "S"

  - `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: "Y", "N"

  - `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: "Y", "N"

  - `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: "Y", "N"

  - `result.universalToken` (object)

  - `result.universalToken.value` (string)
    An identifier for a card or payment account across all Shift4 merchants.
    Example: 97032276-5944-00000001-16985FD179D

  - `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.
    Example: 01

  - `result.cardBrandToken.panLast4` (string)
    This is a response field that contains 4 characters that represent the last 4 digits of the actual cardholder PAN.
    Example: 6810

  - `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 |
    Example: N

  - `result.payment` (object)

  - `result.payment.accountReference` (string)
    The Payment Account Reference (PAR) is a value assigned by the BIN Controller, which is defined as either an issuer or card brand. This field is associated directly with the cardholder's account.
This value enables merchants, acquirers, and payment processors to link a payment token to a cardholder’s underlying payment account.
    Example: 05280D8G7Q04UZBI7NOSPGSURP130

## Response 400:

  - `400` (unknown)
    Error

## Response 400 fields (application/json):

  - `result` (array)

  - `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.**
    Example: 64100

  - `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
    Example: NOT IN CARDRANGE

  - `result.error.longText` (string)
    Extended error message that is returned if an error condition exists.
    Example: Card type not recognized

  - `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.
    Example: 9842

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

  - `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.
    Example: eyJwYXltZW50SWQiOiI4NWM0MWNhNy01NzVjLTQzNGUtODIyZi0xYzZlOTE0ZDAzODYiLCJyZW1haW5pbmdBbW91bnQiOjB9

  - `result.server` (object)

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

## Response 504:

  - `504` (unknown)
    Timeout

## Response 504 fields (application/json):

  - `result` (array)

  - `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.**
    Example: 64100

  - `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
    Example: NOT IN CARDRANGE

  - `result.error.longText` (string)
    Extended error message that is returned if an error condition exists.
    Example: Card type not recognized

  - `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.
    Example: 9842

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

  - `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.
    Example: eyJwYXltZW50SWQiOiI4NWM0MWNhNy01NzVjLTQzNGUtODIyZi0xYzZlOTE0ZDAzODYiLCJyZW1haW5pbmdBbW91bnQiOjB9

  - `result.server` (object)

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

