# Declined Transactions
> Declined Transactions are refused additions and removals of money from your bank account. For example, Declined Transactions are caused when your Account has an insufficient balance or your Limits are triggered.

[Events](https://increase.com/documentation/events.md) will be generated for this resource. The possible event categories are:  and `declined_transaction.created`.

## The Declined Transaction object
### Example
```json
{
  "account_id": "account_in71c4amph0vgo2qllky",
  "amount": 1750,
  "created_at": "2020-01-31T23:59:59Z",
  "currency": "USD",
  "description": "INVOICE 2468",
  "id": "declined_transaction_17jbn0yyhvkt4v4ooym8",
  "route_id": "account_number_v18nkfqm6afpsrvy82b2",
  "route_type": "account_number",
  "source": {
    "ach_decline": {
      "amount": 1750,
      "id": "ach_decline_72v1mcwxudctq56efipa",
      "inbound_ach_transfer_id": "inbound_ach_transfer_tdrwqr3fq9gnnq49odev",
      "originator_company_descriptive_date": null,
      "originator_company_discretionary_data": null,
      "originator_company_id": "0987654321",
      "originator_company_name": "BIG BANK",
      "reason": "insufficient_funds",
      "receiver_id_number": "12345678900",
      "receiver_name": "IAN CREASE",
      "trace_number": "021000038461022",
      "type": "ach_decline"
    },
    "category": "ach_decline"
  },
  "type": "declined_transaction"
}
```
### Attributes
- `account_id` (string)
  The identifier for the Account the Declined Transaction belongs to.

- `amount` (integer)
  The Declined Transaction amount in the minor unit of its currency. For dollars, for example, this is cents.

- `created_at` (string)
  The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Transaction occurred.

- `currency` (enum)
  The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined Transaction's currency. This will match the currency on the Declined Transaction's Account.
  Cases:
  * `USD` (US Dollar (USD))

- `description` (string)
  This is the description the vendor provides.

- `id` (string)
  The Declined Transaction identifier.

- `route_id` (string, nullable)
  The identifier for the route this Declined Transaction came through. Routes are things like cards and ACH details.

- `route_type` (enum, nullable)
  The type of the route this Declined Transaction came through.
  Cases:
  * `account_number` (An Account Number.)
  * `card` (A Card.)
  * `lockbox` (A Lockbox.)

- `source` (dictionary)
  This is an object giving more details on the network-level event that caused the Declined Transaction. For example, for a card transaction this lists the merchant's industry and location. Note that for backwards compatibility reasons, additional undocumented keys may appear in this object. These should be treated as deprecated and will be removed in the future.

  - `source.ach_decline` (dictionary, nullable)
    An ACH Decline object. This field will be present in the JSON response if and only if `category` is equal to `ach_decline`.

      - `source.ach_decline.amount` (integer)
        The declined amount in USD cents.

      - `source.ach_decline.id` (string)
        The ACH Decline's identifier.

      - `source.ach_decline.inbound_ach_transfer_id` (string)
        The identifier of the Inbound ACH Transfer object associated with this decline.

      - `source.ach_decline.originator_company_descriptive_date` (string, nullable)
        The descriptive date of the transfer.

      - `source.ach_decline.originator_company_discretionary_data` (string, nullable)
        The additional information included with the transfer.

      - `source.ach_decline.originator_company_id` (string)
        The identifier of the company that initiated the transfer.

      - `source.ach_decline.originator_company_name` (string)
        The name of the company that initiated the transfer.

      - `source.ach_decline.reason` (enum)
        Why the ACH transfer was declined.
        Cases:
        * `ach_route_canceled` (The account number is canceled.)
        * `ach_route_disabled` (The account number is disabled.)
        * `breaches_limit` (The transaction would cause an Increase limit to be exceeded.)
        * `entity_not_active` (The account's entity is not active.)
        * `group_locked` (Your account is inactive.)
        * `transaction_not_allowed` (The transaction is not allowed per Increase's terms.)
        * `returned_per_odfi_request` (The originating financial institution asked for this transfer to be returned. The receiving bank is complying with the request.)
        * `user_initiated` (Your integration declined this transfer via the API.)
        * `insufficient_funds` (Your account contains insufficient funds.)
        * `authorization_revoked_by_customer` (The customer no longer authorizes this transaction.)
        * `payment_stopped` (The customer asked for the payment to be stopped.)
        * `customer_advised_unauthorized_improper_ineligible_or_incomplete` (The customer advises that the debit was unauthorized.)
        * `representative_payee_deceased_or_unable_to_continue_in_that_capacity` (The payee is deceased.)
        * `beneficiary_or_account_holder_deceased` (The account holder is deceased.)
        * `credit_entry_refused_by_receiver` (The customer refused a credit entry.)
        * `duplicate_entry` (The account holder identified this transaction as a duplicate.)
        * `corporate_customer_advised_not_authorized` (The corporate customer no longer authorizes this transaction.)

      - `source.ach_decline.receiver_id_number` (string, nullable)
        The id of the receiver of the transfer.

      - `source.ach_decline.receiver_name` (string, nullable)
        The name of the receiver of the transfer.

      - `source.ach_decline.trace_number` (string)
        The trace number of the transfer.

      - `source.ach_decline.type` (string)
        A constant representing the object's type. For this resource it will always be `ach_decline`.

  - `source.card_decline` (dictionary, nullable)
    A Card Decline object. This field will be present in the JSON response if and only if `category` is equal to `card_decline`.

      - `source.card_decline.actioner` (enum)
        Whether this authorization was approved by Increase, the card network through stand-in processing, or the user through a real-time decision.
        Cases:
        * `user` (This object was actioned by the user through a real-time decision.)
        * `increase` (This object was actioned by Increase without user intervention.)
        * `network` (This object was actioned by the network, through stand-in processing.)

      - `source.card_decline.additional_amounts` (dictionary)
        Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.

            - `source.card_decline.additional_amounts.clinic` (dictionary, nullable)
              The part of this transaction amount that was for clinic-related services.

                    - `source.card_decline.additional_amounts.clinic.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.clinic.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

            - `source.card_decline.additional_amounts.dental` (dictionary, nullable)
              The part of this transaction amount that was for dental-related services.

                    - `source.card_decline.additional_amounts.dental.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.dental.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

            - `source.card_decline.additional_amounts.original` (dictionary, nullable)
              The original pre-authorized amount.

                    - `source.card_decline.additional_amounts.original.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.original.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

            - `source.card_decline.additional_amounts.prescription` (dictionary, nullable)
              The part of this transaction amount that was for healthcare prescriptions.

                    - `source.card_decline.additional_amounts.prescription.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.prescription.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

            - `source.card_decline.additional_amounts.surcharge` (dictionary, nullable)
              The surcharge amount charged for this transaction by the merchant.

                    - `source.card_decline.additional_amounts.surcharge.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.surcharge.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

            - `source.card_decline.additional_amounts.total_cumulative` (dictionary, nullable)
              The total amount of a series of incremental authorizations, optionally provided.

                    - `source.card_decline.additional_amounts.total_cumulative.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.total_cumulative.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

            - `source.card_decline.additional_amounts.total_healthcare` (dictionary, nullable)
              The total amount of healthcare-related additional amounts.

                    - `source.card_decline.additional_amounts.total_healthcare.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.total_healthcare.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

            - `source.card_decline.additional_amounts.transit` (dictionary, nullable)
              The part of this transaction amount that was for transit-related services.

                    - `source.card_decline.additional_amounts.transit.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.transit.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

            - `source.card_decline.additional_amounts.unknown` (dictionary, nullable)
              An unknown additional amount.

                    - `source.card_decline.additional_amounts.unknown.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.unknown.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

            - `source.card_decline.additional_amounts.vision` (dictionary, nullable)
              The part of this transaction amount that was for vision-related services.

                    - `source.card_decline.additional_amounts.vision.amount` (integer)
                      The amount in minor units of the `currency` field. The amount is positive if it is added to the amount (such as an ATM surcharge fee) and negative if it is subtracted from the amount (such as a discount).

                    - `source.card_decline.additional_amounts.vision.currency` (string)
                      The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional amount's currency.

      - `source.card_decline.amount` (integer)
        The declined amount in the minor unit of the destination account currency. For dollars, for example, this is cents.

      - `source.card_decline.card_payment_id` (string)
        The ID of the Card Payment this transaction belongs to.

      - `source.card_decline.currency` (enum)
        The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination account currency.
        Cases:
        * `USD` (US Dollar (USD))

      - `source.card_decline.declined_transaction_id` (string)
        The identifier of the declined transaction created for this Card Decline.

      - `source.card_decline.digital_wallet_token_id` (string, nullable)
        If the authorization was made via a Digital Wallet Token (such as an Apple Pay purchase), the identifier of the token that was used.

      - `source.card_decline.direction` (enum)
        The direction describes the direction the funds will move, either from the cardholder to the merchant or from the merchant to the cardholder.
        Cases:
        * `settlement` (A regular card authorization where funds are debited from the cardholder.)
        * `refund` (A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder.)

      - `source.card_decline.id` (string)
        The Card Decline identifier.

      - `source.card_decline.incremented_card_authorization_id` (string, nullable)
        The identifier of the card authorization this request attempted to incrementally authorize.

      - `source.card_decline.merchant_acceptor_id` (string)
        The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with.

      - `source.card_decline.merchant_category_code` (string)
        The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is transacting with.

      - `source.card_decline.merchant_city` (string, nullable)
        The city the merchant resides in.

      - `source.card_decline.merchant_country` (string)
        The country the merchant resides in.

      - `source.card_decline.merchant_descriptor` (string)
        The merchant descriptor of the merchant the card is transacting with.

      - `source.card_decline.merchant_postal_code` (string, nullable)
        The merchant's postal code. For US merchants this is either a 5-digit or 9-digit ZIP code, where the first 5 and last 4 are separated by a dash.

      - `source.card_decline.merchant_state` (string, nullable)
        The state the merchant resides in.

      - `source.card_decline.network_details` (dictionary)
        Fields specific to the `network`.

            - `source.card_decline.network_details.category` (enum)
              The payment network used to process this card authorization.
              Cases:
              * `visa` (Visa)
              * `pulse` (Pulse)

            - `source.card_decline.network_details.pulse` (dictionary, nullable)
              Fields specific to the `pulse` network.

            - `source.card_decline.network_details.visa` (dictionary, nullable)
              Fields specific to the `visa` network.

                    - `source.card_decline.network_details.visa.electronic_commerce_indicator` (enum, nullable)
                      For electronic commerce transactions, this identifies the level of security used in obtaining the customer's payment credential. For mail or telephone order transactions, identifies the type of mail or telephone order.
                      Cases:
                      * `mail_phone_order` (Single transaction of a mail/phone order: Use to indicate that the transaction is a mail/phone order purchase, not a recurring transaction or installment payment. For domestic transactions in the US region, this value may also indicate one bill payment transaction in the card-present or card-absent environments.)
                      * `recurring` (Recurring transaction: Payment indicator used to indicate a recurring transaction that originates from an acquirer in the US region.)
                      * `installment` (Installment payment: Payment indicator used to indicate one purchase of goods or services that is billed to the account in multiple charges over a period of time agreed upon by the cardholder and merchant from transactions that originate from an acquirer in the US region.)
                      * `unknown_mail_phone_order` (Unknown classification: other mail order: Use to indicate that the type of mail/telephone order is unknown.)
                      * `secure_electronic_commerce` (Secure electronic commerce transaction: Use to indicate that the electronic commerce transaction has been authenticated using e.g., 3-D Secure)
                      * `non_authenticated_security_transaction_at_3ds_capable_merchant` (Non-authenticated security transaction at a 3-D Secure-capable merchant, and merchant attempted to authenticate the cardholder using 3-D Secure: Use to identify an electronic commerce transaction where the merchant attempted to authenticate the cardholder using 3-D Secure, but was unable to complete the authentication because the issuer or cardholder does not participate in the 3-D Secure program.)
                      * `non_authenticated_security_transaction` (Non-authenticated security transaction: Use to identify an electronic commerce transaction that uses data encryption for security however, cardholder authentication is not performed using 3-D Secure.)
                      * `non_secure_transaction` (Non-secure transaction: Use to identify an electronic commerce transaction that has no data protection.)

                    - `source.card_decline.network_details.visa.point_of_service_entry_mode` (enum, nullable)
                      The method used to enter the cardholder's primary account number and card expiration date.
                      Cases:
                      * `unknown` (Unknown)
                      * `manual` (Manual key entry)
                      * `magnetic_stripe_no_cvv` (Magnetic stripe read, without card verification value)
                      * `optical_code` (Optical code)
                      * `integrated_circuit_card` (Contact chip card)
                      * `contactless` (Contactless read of chip card)
                      * `credential_on_file` (Transaction initiated using a credential that has previously been stored on file)
                      * `magnetic_stripe` (Magnetic stripe read)
                      * `contactless_magnetic_stripe` (Contactless read of magnetic stripe data)
                      * `integrated_circuit_card_no_cvv` (Contact chip card, without card verification value)

                    - `source.card_decline.network_details.visa.stand_in_processing_reason` (enum, nullable)
                      Only present when `actioner: network`. Describes why a card authorization was approved or declined by Visa through stand-in processing.
                      Cases:
                      * `issuer_error` (Increase failed to process the authorization in a timely manner.)
                      * `invalid_physical_card` (The physical card read had an invalid CVV or dCVV.)
                      * `invalid_cryptogram` (The card's authorization request cryptogram was invalid. The cryptogram can be from a physical card or a Digital Wallet Token purchase.)
                      * `invalid_cardholder_authentication_verification_value` (The 3DS cardholder authentication verification value was invalid.)
                      * `internal_visa_error` (An internal Visa error occurred. Visa uses this reason code for certain expected occurrences as well, such as Application Transaction Counter (ATC) replays.)
                      * `merchant_transaction_advisory_service_authentication_required` (The merchant has enabled Visa's Transaction Advisory Service and requires further authentication to perform the transaction. In practice this is often utilized at fuel pumps to tell the cardholder to see the cashier.)
                      * `payment_fraud_disruption_acquirer_block` (The transaction was blocked by Visa's Payment Fraud Disruption service due to fraudulent Acquirer behavior, such as card testing.)
                      * `other` (An unspecific reason for stand-in processing.)

                    - `source.card_decline.network_details.visa.terminal_entry_capability` (enum, nullable)
                      The capability of the terminal being used to read the card. Shows whether a terminal can e.g., accept chip cards or if it only supports magnetic stripe reads. This reflects the highest capability of the terminal — for example, a terminal that supports both chip and magnetic stripe will be identified as chip-capable.
                      Cases:
                      * `unknown` (Unknown)
                      * `terminal_not_used` (No terminal was used for this transaction.)
                      * `magnetic_stripe` (The terminal can only read magnetic stripes and does not have chip or contactless reading capability.)
                      * `barcode` (The terminal can only read barcodes.)
                      * `optical_character_recognition` (The terminal can only read cards via Optical Character Recognition.)
                      * `chip_or_contactless` (The terminal supports contact chip cards and can also read the magnetic stripe. If contact chip is supported, this value is used regardless of whether contactless is also supported.)
                      * `contactless_only` (The terminal supports contactless reads but does not support contact chip. Only used when the terminal lacks contact chip capability.)
                      * `no_capability` (The terminal has no card reading capability.)

      - `source.card_decline.network_identifiers` (dictionary)
        Network-specific identifiers for a specific request or transaction.

            - `source.card_decline.network_identifiers.authorization_identification_response` (string, nullable)
              The randomly generated 6-character Authorization Identification Response code sent back to the acquirer in an approved response.

            - `source.card_decline.network_identifiers.retrieval_reference_number` (string, nullable)
              A life-cycle identifier used across e.g., an authorization and a reversal. Expected to be unique per acquirer within a window of time. For some card networks the retrieval reference number includes the trace counter.

            - `source.card_decline.network_identifiers.trace_number` (string, nullable)
              A counter used to verify an individual authorization. Expected to be unique per acquirer within a window of time.

            - `source.card_decline.network_identifiers.transaction_id` (string, nullable)
              A globally unique transaction identifier provided by the card network, used across multiple life-cycle requests.

      - `source.card_decline.network_risk_score` (integer, nullable)
        The risk score generated by the card network. For Visa this is the Visa Advanced Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the score is from 0 to 999, where 999 is the riskiest.

      - `source.card_decline.physical_card_id` (string, nullable)
        If the authorization was made in-person with a physical card, the Physical Card that was used.

      - `source.card_decline.presentment_amount` (integer)
        The declined amount in the minor unit of the transaction's presentment currency.

      - `source.card_decline.presentment_currency` (string)
        The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction's presentment currency.

      - `source.card_decline.processing_category` (enum)
        The processing category describes the intent behind the authorization, such as whether it was used for bill payments or an automatic fuel dispenser.
        Cases:
        * `account_funding` (Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts.)
        * `automatic_fuel_dispenser` (Automatic fuel dispenser authorizations occur when a card is used at a gas pump, prior to the actual transaction amount being known. They are followed by an advice message that updates the amount of the pending transaction.)
        * `bill_payment` (A transaction used to pay a bill.)
        * `original_credit` (Original credit transactions are used to send money to a cardholder.)
        * `purchase` (A regular purchase.)
        * `quasi_cash` (Quasi-cash transactions represent purchases of items which may be convertible to cash.)
        * `refund` (A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder.)
        * `cash_disbursement` (Cash disbursement transactions are used to withdraw cash from an ATM or a point of sale.)
        * `balance_inquiry` (A balance inquiry transaction is used to check the balance of an account associated with a card.)
        * `unknown` (The processing category is unknown.)

      - `source.card_decline.real_time_decision_id` (string, nullable)
        The identifier of the Real-Time Decision sent to approve or decline this transaction.

      - `source.card_decline.real_time_decision_reason` (enum, nullable)
        This is present if a specific decline reason was given in the real-time decision.
        Cases:
        * `insufficient_funds` (The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again.)
        * `transaction_never_allowed` (This type of transaction is not allowed for this card. This transaction should not be retried.)
        * `exceeds_approval_limit` (The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again.)
        * `card_temporarily_disabled` (The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again.)
        * `suspected_fraud` (The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again.)
        * `other` (The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly.)

      - `source.card_decline.reason` (enum)
        Why the transaction was declined.
        Cases:
        * `account_closed` (The account has been closed.)
        * `card_not_active` (The Card was not active.)
        * `card_canceled` (The Card has been canceled.)
        * `physical_card_not_active` (The Physical Card was not active.)
        * `entity_not_active` (The account's entity was not active.)
        * `group_locked` (The account was inactive.)
        * `insufficient_funds` (The Card's Account did not have a sufficient available balance.)
        * `cvv2_mismatch` (The given CVV2 did not match the card's value.)
        * `pin_mismatch` (The given PIN did not match the card's value.)
        * `card_expiration_mismatch` (The given expiration date did not match the card's value. Only applies when a CVV2 is present.)
        * `transaction_not_allowed` (The attempted card transaction is not allowed per Increase's terms.)
        * `breaches_limit` (The transaction was blocked by a Limit.)
        * `webhook_declined` (Your application declined the transaction via webhook.)
        * `webhook_timed_out` (Your application webhook did not respond without the required timeout.)
        * `declined_by_stand_in_processing` (Declined by stand-in processing.)
        * `invalid_physical_card` (The card read had an invalid CVV or dCVV.)
        * `missing_original_authorization` (The original card authorization for this incremental authorization does not exist.)
        * `invalid_cryptogram` (The card's authorization request cryptogram was invalid. The cryptogram can be from a physical card or a Digital Wallet Token purchase.)
        * `failed_3ds_authentication` (The transaction was declined because the 3DS authentication failed.)
        * `suspected_card_testing` (The transaction was suspected to be used by a card tester to test for valid card numbers.)
        * `suspected_fraud` (The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information.)

      - `source.card_decline.scheme_fees` (array of objects)
        The scheme fees associated with this card decline.

            - `source.card_decline.scheme_fees.amount` (string)
              The fee amount given as a string containing a decimal number.

            - `source.card_decline.scheme_fees.created_at` (string)
              The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the fee was created.

            - `source.card_decline.scheme_fees.currency` (enum)
              The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fee reimbursement.
              Cases:
              * `USD` (US Dollar (USD))

            - `source.card_decline.scheme_fees.fee_type` (enum)
              The type of fee being assessed.
              Cases:
              * `visa_international_service_assessment_single_currency` (International Service Assessment (ISA) single-currency is a fee assessed by the card network for cross-border transactions presented and settled in the same currency.)
              * `visa_international_service_assessment_cross_currency` (International Service Assessment (ISA) cross-currency is a fee assessed by the card network for cross-border transactions presented and settled in different currencies.)
              * `visa_authorization_domestic_point_of_sale` (Activity and charges for Visa Settlement System processing for POS (Point-Of-Sale) authorization transactions. Authorization is the process of approving or declining the transaction amount specified. The fee is assessed to the Issuer.)
              * `visa_authorization_international_point_of_sale` (Activity and charges for Visa Settlement System processing for POS (Point-Of-Sale) International authorization transactions. Authorization is the process of approving or declining the transaction amount specified. The fee is assessed to the Issuer.)
              * `visa_authorization_canada_point_of_sale` (Activity and charges for Visa Settlement System processing for Canada Region POS (Point-of-Sale) authorization transactions. Authorization is the process of approving or declining the transaction amount specified.)
              * `visa_authorization_reversal_point_of_sale` (Activity only for Visa Settlement System authorization processing of POS (Point-Of-Sale) reversal transactions. Authorization reversal represents a VSS message that undoes the complete or partial actions of a previous authorization request.)
              * `visa_authorization_reversal_international_point_of_sale` (Activity only for Visa Settlement System authorization processing of POS (Point-Of-Sale) International reversal transactions. Authorization reversal represents a VSS message that undoes the complete or partial actions of a previous authorization request.)
              * `visa_authorization_address_verification_service` (A per Address Verification Service (AVS) result fee. Applies to all usable AVS result codes.)
              * `visa_advanced_authorization` (Advanced Authorization is a fraud detection tool that monitors and risk evaluates 100 percent of US VisaNet authorizations in real-time. Activity related to Purchase (includes Signature Authenticated Visa and PIN Authenticated Visa Debit (PAVD) transactions).)
              * `visa_message_transmission` (Issuer Transactions Visa represents a charge based on total actual monthly processing (Visa transactions only) through a VisaNet Access Point (VAP). Charges are assessed to the processor for each VisaNet Access Point.)
              * `visa_account_verification_domestic` (Activity, per inquiry, related to the domestic Issuer for Account Number Verification.)
              * `visa_account_verification_international` (Activity, per inquiry, related to the international Issuer for Account Number Verification.)
              * `visa_account_verification_canada` (Activity, per inquiry, related to the US-Canada Issuer for Account Number Verification.)
              * `visa_corporate_acceptance_fee` (The Corporate Acceptance Fee is charged to issuers and is based on the monthly sales volume on Commercial and Government Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions.)
              * `visa_consumer_debit_acceptance_fee` (The Consumer Debit Acceptance Fee is charged to issuers and is based on the monthly sales volume of Consumer Debit or Prepaid card transactions. The cashback portion of a Debit and Prepaid card transaction is excluded from the sales volume calculation.)
              * `visa_business_debit_acceptance_fee` (The Business Acceptance Fee is charged to issuers and is based on the monthly sales volume on Business Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. The cashback portion is included in the sales volume calculation with the exception of a Debit and Prepaid card transactions.)
              * `visa_purchasing_acceptance_fee` (The Purchasing Card Acceptance Fee is charged to issuers and is based on the monthly sales volume on Commercial and Government Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions.)
              * `visa_purchase_domestic` (Activity and fees for the processing of a sales draft original for a purchase transaction.)
              * `visa_purchase_international` (Activity and fees for the processing of an international sales draft original for a purchase transaction.)
              * `visa_credit_purchase_token` (Apple Pay Credit Product Token Purchase Original Transactions. This fee is billed by Visa on behalf of Apple Inc. for Apple Pay transactions.)
              * `visa_debit_purchase_token` (Apple Pay Debit Product Token Purchase Original Transactions. This fee is billed by Visa on behalf of Apple Inc. for Apple Pay transactions.)
              * `visa_clearing_transmission` (A per transaction fee assessed for Base II financial draft - Issuer.)
              * `visa_direct_authorization` (Issuer charge for Non-Financial OCT/AFT Authorization 0100 and Declined Financial OCT/AFT 0200 transactions.)
              * `visa_direct_transaction_domestic` (Data processing charge for Visa Direct OCTs for all business application identifiers (BAIs) other than money transfer-bank initiated (BI). BASE II transactions.)
              * `visa_service_commercial_credit` (Issuer card service fee for Commercial Credit cards.)
              * `visa_advertising_service_commercial_credit` (Issuer Advertising Service Fee for Commercial Credit cards.)
              * `visa_community_growth_acceleration_program` (Issuer Community Growth Acceleration Program Fee.)
              * `visa_processing_guarantee_commercial_credit` (Issuer Processing Guarantee for Commercial Credit cards.)
              * `pulse_switch_fee` (Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network.)

            - `source.card_decline.scheme_fees.fixed_component` (string, nullable)
              The fixed component of the fee, if applicable, given in major units of the fee amount.

            - `source.card_decline.scheme_fees.variable_rate` (string, nullable)
              The variable rate component of the fee, if applicable, given as a decimal (e.g., 0.015 for 1.5%).

      - `source.card_decline.terminal_id` (string, nullable)
        The terminal identifier (commonly abbreviated as TID) of the terminal the card is transacting with.

      - `source.card_decline.verification` (dictionary)
        Fields related to verification of cardholder-provided values.

            - `source.card_decline.verification.card_verification_code` (dictionary)
              Fields related to verification of the Card Verification Code, a 3-digit code on the back of the card.

                    - `source.card_decline.verification.card_verification_code.result` (enum)
                      The result of verifying the Card Verification Code.
                      Cases:
                      * `not_checked` (No card verification code was provided in the authorization request.)
                      * `match` (The card verification code matched the one on file.)
                      * `no_match` (The card verification code did not match the one on file.)

            - `source.card_decline.verification.cardholder_address` (dictionary)
              Cardholder address provided in the authorization request and the address on file we verified it against.

                    - `source.card_decline.verification.cardholder_address.actual_line1` (string, nullable)
                      Line 1 of the address on file for the cardholder.

                    - `source.card_decline.verification.cardholder_address.actual_postal_code` (string, nullable)
                      The postal code of the address on file for the cardholder.

                    - `source.card_decline.verification.cardholder_address.provided_line1` (string, nullable)
                      The cardholder address line 1 provided for verification in the authorization request.

                    - `source.card_decline.verification.cardholder_address.provided_postal_code` (string, nullable)
                      The postal code provided for verification in the authorization request.

                    - `source.card_decline.verification.cardholder_address.result` (enum)
                      The address verification result returned to the card network.
                      Cases:
                      * `not_checked` (No address information was provided in the authorization request.)
                      * `postal_code_match_address_no_match` (Postal code matches, but the street address does not match or was not provided.)
                      * `postal_code_no_match_address_match` (Postal code does not match, but the street address matches or was not provided.)
                      * `match` (Postal code and street address match.)
                      * `no_match` (Postal code and street address do not match.)
                      * `postal_code_match_address_not_checked` (Postal code matches, but the street address was not verified. (deprecated))

            - `source.card_decline.verification.cardholder_name` (dictionary, nullable)
              Cardholder name provided in the authorization request.

                    - `source.card_decline.verification.cardholder_name.provided_first_name` (string, nullable)
                      The first name provided for verification in the authorization request.

                    - `source.card_decline.verification.cardholder_name.provided_last_name` (string, nullable)
                      The last name provided for verification in the authorization request.

                    - `source.card_decline.verification.cardholder_name.provided_middle_name` (string, nullable)
                      The middle name provided for verification in the authorization request.

  - `source.category` (enum)
    The type of the resource. We may add additional possible values for this enum over time; your application should be able to handle such additions gracefully.
    Cases:
    * `ach_decline` (ACH Decline: details will be under the `ach_decline` object.)
    * `card_decline` (Card Decline: details will be under the `card_decline` object.)
    * `check_decline` (Check Decline: details will be under the `check_decline` object.)
    * `inbound_real_time_payments_transfer_decline` (Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object.)
    * `inbound_fednow_transfer_decline` (Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object.)
    * `wire_decline` (Wire Decline: details will be under the `wire_decline` object.)
    * `check_deposit_rejection` (Check Deposit Rejection: details will be under the `check_deposit_rejection` object.)
    * `other` (The Declined Transaction was made for an undocumented or deprecated reason.)

  - `source.check_decline` (dictionary, nullable)
    A Check Decline object. This field will be present in the JSON response if and only if `category` is equal to `check_decline`.

      - `source.check_decline.amount` (integer)
        The declined amount in USD cents.

      - `source.check_decline.auxiliary_on_us` (string, nullable)
        A computer-readable number printed on the MICR line of business checks, usually the check number. This is useful for positive pay checks, but can be unreliably transmitted by the bank of first deposit.

      - `source.check_decline.back_image_file_id` (string, nullable)
        The identifier of the API File object containing an image of the back of the declined check.

      - `source.check_decline.check_transfer_id` (string, nullable)
        The identifier of the Check Transfer object associated with this decline.

      - `source.check_decline.front_image_file_id` (string, nullable)
        The identifier of the API File object containing an image of the front of the declined check.

      - `source.check_decline.inbound_check_deposit_id` (string, nullable)
        The identifier of the Inbound Check Deposit object associated with this decline.

      - `source.check_decline.reason` (enum)
        Why the check was declined.
        Cases:
        * `ach_route_disabled` (The account number is disabled.)
        * `ach_route_canceled` (The account number is canceled.)
        * `altered_or_fictitious` (The deposited check was altered or fictitious.)
        * `breaches_limit` (The transaction would cause a limit to be exceeded.)
        * `endorsement_irregular` (The check was not endorsed by the payee.)
        * `entity_not_active` (The account's entity is not active.)
        * `group_locked` (Your account is inactive.)
        * `insufficient_funds` (Your account contains insufficient funds.)
        * `stop_payment_requested` (Stop payment requested for this check.)
        * `duplicate_presentment` (The check was a duplicate deposit.)
        * `not_authorized` (The check was not authorized.)
        * `amount_mismatch` (The amount the receiving bank is attempting to deposit does not match the amount on the check.)
        * `not_our_item` (The check attempting to be deposited does not belong to Increase.)
        * `no_account_number_found` (The account number on the check does not exist at Increase.)
        * `refer_to_image` (The check is not readable. Please refer to the image.)
        * `unable_to_process` (The check cannot be processed. This is rare: please contact support.)
        * `unusable_image` (The check image is unusable.)
        * `user_initiated` (Your integration declined this check via the API.)

  - `source.check_deposit_rejection` (dictionary, nullable)
    A Check Deposit Rejection object. This field will be present in the JSON response if and only if `category` is equal to `check_deposit_rejection`.

      - `source.check_deposit_rejection.amount` (integer)
        The rejected amount in the minor unit of check's currency. For dollars, for example, this is cents.

      - `source.check_deposit_rejection.check_deposit_id` (string)
        The identifier of the Check Deposit that was rejected.

      - `source.check_deposit_rejection.currency` (enum)
        The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's currency.
        Cases:
        * `USD` (US Dollar (USD))

      - `source.check_deposit_rejection.declined_transaction_id` (string)
        The identifier of the associated declined transaction.

      - `source.check_deposit_rejection.reason` (enum)
        Why the check deposit was rejected.
        Cases:
        * `incomplete_image` (The check's image is incomplete.)
        * `duplicate` (This is a duplicate check submission.)
        * `poor_image_quality` (This check has poor image quality.)
        * `incorrect_amount` (The check was deposited with the incorrect amount.)
        * `incorrect_recipient` (The check is made out to someone other than the account holder.)
        * `not_eligible_for_mobile_deposit` (This check was not eligible for mobile deposit.)
        * `missing_required_data_elements` (This check is missing at least one required field.)
        * `suspected_fraud` (This check is suspected to be fraudulent.)
        * `deposit_window_expired` (This check's deposit window has expired.)
        * `requested_by_user` (The check was rejected at the user's request.)
        * `international` (The check is not a U.S. domestic check and cannot be processed.)
        * `unknown` (The check was rejected for an unknown reason.)

      - `source.check_deposit_rejection.rejected_at` (string)
        The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the check deposit was rejected.

  - `source.inbound_fednow_transfer_decline` (dictionary, nullable)
    An Inbound FedNow Transfer Decline object. This field will be present in the JSON response if and only if `category` is equal to `inbound_fednow_transfer_decline`.

      - `source.inbound_fednow_transfer_decline.reason` (enum)
        Why the transfer was declined.
        Cases:
        * `account_number_canceled` (The account number is canceled.)
        * `account_number_disabled` (The account number is disabled.)
        * `account_restricted` (Your account is restricted.)
        * `group_locked` (Your account is inactive.)
        * `entity_not_active` (The account's entity is not active.)
        * `fednow_not_enabled` (Your account is not enabled to receive FedNow transfers.)

      - `source.inbound_fednow_transfer_decline.transfer_id` (string)
        The identifier of the FedNow Transfer that led to this declined transaction.

  - `source.inbound_real_time_payments_transfer_decline` (dictionary, nullable)
    An Inbound Real-Time Payments Transfer Decline object. This field will be present in the JSON response if and only if `category` is equal to `inbound_real_time_payments_transfer_decline`.

      - `source.inbound_real_time_payments_transfer_decline.amount` (integer)
        The declined amount in the minor unit of the destination account currency. For dollars, for example, this is cents.

      - `source.inbound_real_time_payments_transfer_decline.creditor_name` (string)
        The name the sender of the transfer specified as the recipient of the transfer.

      - `source.inbound_real_time_payments_transfer_decline.currency` (enum)
        The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined transfer's currency. This will always be "USD" for a Real-Time Payments transfer.
        Cases:
        * `USD` (US Dollar (USD))

      - `source.inbound_real_time_payments_transfer_decline.debtor_account_number` (string)
        The account number of the account that sent the transfer.

      - `source.inbound_real_time_payments_transfer_decline.debtor_name` (string)
        The name provided by the sender of the transfer.

      - `source.inbound_real_time_payments_transfer_decline.debtor_routing_number` (string)
        The routing number of the account that sent the transfer.

      - `source.inbound_real_time_payments_transfer_decline.reason` (enum)
        Why the transfer was declined.
        Cases:
        * `account_number_canceled` (The account number is canceled.)
        * `account_number_disabled` (The account number is disabled.)
        * `account_restricted` (Your account is restricted.)
        * `group_locked` (Your account is inactive.)
        * `entity_not_active` (The account's entity is not active.)
        * `real_time_payments_not_enabled` (Your account is not enabled to receive Real-Time Payments transfers.)

      - `source.inbound_real_time_payments_transfer_decline.transaction_identification` (string)
        The Real-Time Payments network identification of the declined transfer.

      - `source.inbound_real_time_payments_transfer_decline.transfer_id` (string)
        The identifier of the Real-Time Payments Transfer that led to this Transaction.

      - `source.inbound_real_time_payments_transfer_decline.unstructured_remittance_information` (string, nullable)
        Additional information included with the transfer.

  - `source.other` (dictionary, nullable)
    If the category of this Transaction source is equal to `other`, this field will contain an empty object, otherwise it will contain null.

  - `source.wire_decline` (dictionary, nullable)
    A Wire Decline object. This field will be present in the JSON response if and only if `category` is equal to `wire_decline`.

      - `source.wire_decline.inbound_wire_transfer_id` (string)
        The identifier of the Inbound Wire Transfer that was declined.

      - `source.wire_decline.reason` (enum)
        Why the wire transfer was declined.
        Cases:
        * `account_number_canceled` (The account number is canceled.)
        * `account_number_disabled` (The account number is disabled.)
        * `entity_not_active` (The account's entity is not active.)
        * `group_locked` (Your account is inactive.)
        * `no_account_number` (The beneficiary account number does not exist.)
        * `transaction_not_allowed` (The transaction is not allowed per Increase's terms.)

- `type` (string)
  A constant representing the object's type. For this resource it will always be `declined_transaction`.

## List Declined Transactions
GET /declined_transactions

### Example
```curl
curl \
  --url "${INCREASE_URL}/declined_transactions" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}"
```

### Query Parameters
- `cursor` (string, optional)
  Return the page of entries after this one.

- `limit` (integer, optional)
  Limit the size of the list that is returned. The default (and maximum) is 100 objects.

- `account_id` (string, optional)
  Filter Declined Transactions to ones belonging to the specified Account.

- `created_at.after` (string, optional)
  Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.

- `created_at.before` (string, optional)
  Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.

- `created_at.on_or_after` (string, optional)
  Return results on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.

- `created_at.on_or_before` (string, optional)
  Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.

- `route_id` (string, optional)
  Filter Declined Transactions to those belonging to the specified route.

- `category.in` (array of enums, optional)
  Return results whose value is in the provided list. For GET requests, this should be encoded as a comma-delimited string, such as `?in=one,two,three`.
  Cases:
  * `ach_decline` (ACH Decline: details will be under the `ach_decline` object.)
  * `card_decline` (Card Decline: details will be under the `card_decline` object.)
  * `check_decline` (Check Decline: details will be under the `check_decline` object.)
  * `inbound_real_time_payments_transfer_decline` (Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object.)
  * `inbound_fednow_transfer_decline` (Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object.)
  * `wire_decline` (Wire Decline: details will be under the `wire_decline` object.)
  * `check_deposit_rejection` (Check Deposit Rejection: details will be under the `check_deposit_rejection` object.)
  * `other` (The Declined Transaction was made for an undocumented or deprecated reason.)

### Returns a Declined Transaction List object:
```json
{
  "data": [
    {
      "account_id": "account_in71c4amph0vgo2qllky",
      "amount": 1750,
      "created_at": "2020-01-31T23:59:59Z",
      "currency": "USD",
      "description": "INVOICE 2468",
      "id": "declined_transaction_17jbn0yyhvkt4v4ooym8",
      "route_id": "account_number_v18nkfqm6afpsrvy82b2",
      "route_type": "account_number",
      "source": {
        "ach_decline": {
          "amount": 1750,
          "id": "ach_decline_72v1mcwxudctq56efipa",
          "inbound_ach_transfer_id": "inbound_ach_transfer_tdrwqr3fq9gnnq49odev",
          "originator_company_descriptive_date": null,
          "originator_company_discretionary_data": null,
          "originator_company_id": "0987654321",
          "originator_company_name": "BIG BANK",
          "reason": "insufficient_funds",
          "receiver_id_number": "12345678900",
          "receiver_name": "IAN CREASE",
          "trace_number": "021000038461022",
          "type": "ach_decline"
        },
        "category": "ach_decline"
      },
      "type": "declined_transaction"
    }
  ],
  "next_cursor": "v57w5d"
}
```

## Retrieve a Declined Transaction
GET /declined_transactions/{declined_transaction_id}

### Example
```curl
curl \
  --url "${INCREASE_URL}/declined_transactions/declined_transaction_17jbn0yyhvkt4v4ooym8" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}"
```
### Path Parameters
- `declined_transaction_id` (string, required)
  The identifier of the Declined Transaction.