Merchant-Initiated Unscheduled COF Payment with PAN {#credentials-mit-unsched-subsequent-intro}
===============================================================================================

After the initial CIT unscheduled COF payment, subsequent unscheduled COF transactions are merchant-initiated transactions (MITs).

Prerequisites
-------------

The first transaction in an unscheduled COF payment is a customer-initiated transaction (CIT). Before you can perform a subsequent merchant-initiated transaction (MIT), you must store the customer's credentials for later use. Before you can store the user's credentials, you must get the customer's consent to store their private information. This process is also known as establishing a relationship with the customer.

Supported Card Types
--------------------

These are the supported card types for processing credentialed transactions:

* American Express{#credentials-mit-unsched-subsequent-intro_d7e271}
  {#credentials-mit-unsched-subsequent-intro_d7e271}
* Carta Si{#credentials-mit-unsched-subsequent-intro_d7e274}
  {#credentials-mit-unsched-subsequent-intro_d7e274}
* Cartes Bancaires{#credentials-mit-unsched-subsequent-intro_d7e277}
  {#credentials-mit-unsched-subsequent-intro_d7e277}
* Dankort{#credentials-mit-unsched-subsequent-intro_d7e280}
  {#credentials-mit-unsched-subsequent-intro_d7e280}
* Delta{#credentials-mit-unsched-subsequent-intro_d7e283}
  {#credentials-mit-unsched-subsequent-intro_d7e283}
* Eurocard{#credentials-mit-unsched-subsequent-intro_d7e287}
  {#credentials-mit-unsched-subsequent-intro_d7e287}
* JCB{#credentials-mit-unsched-subsequent-intro_d7e290}
  {#credentials-mit-unsched-subsequent-intro_d7e290}
* Maestro (UK Domestic){#credentials-mit-unsched-subsequent-intro_d7e293}
  {#credentials-mit-unsched-subsequent-intro_d7e293}
* Mastercard{#credentials-mit-unsched-subsequent-intro_d7e296}
  {#credentials-mit-unsched-subsequent-intro_d7e296}
* Visa{#credentials-mit-unsched-subsequent-intro_d7e299}
  {#credentials-mit-unsched-subsequent-intro_d7e299}
* Visa Electron{#credentials-mit-unsched-subsequent-intro_d7e302}
  {#credentials-mit-unsched-subsequent-intro_d7e302}

Endpoint {#credentials-mit-unsched-subsequent-intro_d8e16}
----------------------------------------------------------

**Production:** `POST ``https://api.visaacceptance.com``/pts/v2/payments`{#credentials-mit-unsched-subsequent-intro_d8e25}  
**Test:** `POST ``https://apitest.visaacceptance.com``/pts/v2/payments`{#credentials-mit-unsched-subsequent-intro_d8e35}

Required Fields for a Subsequent MIT Unscheduled COF Payment {#credentials-mit-unsched-reqfields}
=================================================================================================

orderInformation.amountDetails.currency

orderInformation.amountDetails.totalAmount
:

orderInformation.billTo.address1
:

orderInformation.billTo.administrativeArea
:

orderInformation.billTo.country
:

orderInformation.billTo.email
:

orderInformation.billTo.firstName
:

orderInformation.billTo.lastName
:

orderInformation.billTo.locality
:

orderInformation.billTo.phoneNumber
:

orderInformation.billTo.postalCode
:

paymentInformation.card.expirationMonth
:

paymentInformation.card.expirationYear
:

paymentInformation.card.number
:

processingInformation. authorizationOptions. initiator. merchantInitiatedTransaction. previousTransactionID
:
* American Express: set to the transaction ID from the original transaction.
* Discover: set to the transaction ID from the original transaction.
* Visa: set to the last successful transaction ID.

processingInformation. authorizationOptions. initiator. merchantInitiatedTransaction.reason
:
Set the value to `10`.
:
Required only for American Express, Discover and Mastercard.

processingInformation. authorizationOptions. initiator. storedCredentialUsed
:
Set the value to `true`.

processingInformation. authorizationOptions. initiator. type
:
Set the value to `merchant`.

processingInformation. commerceIndicator
:
Set the value to `internet`.

REST Example: Authorizing Subsequent MIT Unscheduled COF Payments {#credentials-mit-unsched-ex-rest}
====================================================================================================

Request

```keyword
{
    "processingInformation": {
        "commerceIndicator": "internet",
        "authorizationOptions": {
            "initiator": {
                "storedCredentialUsed": "true",
                "type": "merchant",
                "merchantInitiatedTransaction": {
                    "previousTransactionId": "123456789619999",
                    "originalAuthorizedAmount": "100"    &lt;--Discover Only--&gt;
                }
            }
        }
    },
    "orderInformation": {
        "billTo": {
            "firstName": "John",
            "lastName": "Doe",
            "address1": "201 S. Division St.",
            "postalCode": "48104-2201",
            "locality": "Ann Arbor",
            "administrativeArea": "MI",
            "country": "US",
            "phoneNumber": "5554327113",
            "email": "test@vas.com"
        },
        "amountDetails": {
            "totalAmount": "100.00",
            "currency": "USD"
        }
    },
    "paymentInformation": {
        "card": {
            "expirationYear": "2031",
            "number": "4111xxxxxxxxxxxx",
            "expirationMonth": "12"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "authReversal": {
            "method": "POST",
            "href": "/pts/v2/payments/6530824710046809304002/reversals"
        },
        "self": {
            "method": "GET",
            "href": "/pts/v2/payments/6530824710046809304002"
        },
        "capture": {
            "method": "POST",
            "href": "/pts/v2/payments/6530824710046809304002/captures"
        }
    },
    "clientReferenceInformation": {
        "code": "1653082470983"
    },
    "id": "6530824710046809304002",
    "orderInformation": {
        "amountDetails": {
            "authorizedAmount": "100.00",
            "currency": "USD"
        }
    },
    "paymentAccountInformation": {
        "card": {
            "type": "002"
        }
    },
    "paymentInformation": {
        "tokenizedCard": {
            "type": "002"
        },
        "card": {
            "type": "002"
        }
    },
    "pointOfSaleInformation": {
        "terminalId": "111111"
    },
    "processorInformation": {
        "approvalCode": "888888",
        "authIndicator": "1",
        "networkTransactionId": "123456789619999",
        "transactionId": "123456789619999",
        "responseCode": "100",
        "avs": {
            "code": "X",
            "codeRaw": "I1"
        }
    },
    "reconciliationId": "79710341A39WTT5W",
    "status": "AUTHORIZED",
    "submitTimeUtc": "2022-05-20T21:34:31Z"
}
```

