Merchant-Initiated Installment Payments with PAN {#credentials-mit-install-subsequent-intro}
============================================================================================

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

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

The first transaction in an installment 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.

Endpoint
--------

**Production:** `POST ``https://api.sa.cybersource.com``/pts/v2/payments`  
**Test:** `POST ``https://apitest.sa.cybersource.com``/pts/v2/payments`

Required Fields for a Merchant-Initiated Subsequent Installment Payment {#credentials-mit-install-reqfields}
============================================================================================================

[clientReferenceInformation.code](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-code.md "")
:

[installmentInformation.amount](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/installment-info-aa/installment-info-amount-a.md "")
:

[installmentInformation.sequence](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/installment-info-aa/installment-info-sequence.md "")
:

[installmentInformation.totalCount](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/installment-info-aa/installment-info-total-count.md "")
:

[merchantInformation.merchantDescriptor.locality](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-locality.md "")
:

[orderInformation.amountDetails.currency](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-amount-details-currency.md "")
:
Set the value to `SAR`.

[orderInformation.amountDetails.totalAmount](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-amount-details-total-amount.md "")
:

[paymentInformation.card.expirationMonth](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-mo.md "")
:

[paymentInformation.card.expirationYear](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-year.md "")
:

[paymentInformation.card.number](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-number.md "")
:

[paymentInformation.card.type](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-type-a.md "")
:

processingInformation.authorizationOptions.i.initiator. merchantInitiatedTransaction.agreementId
:

[processingInformation.authorizationOptions.initiator.storedCredentialUsed](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-auth-ops-initiator-sc-used.md "")
:

[processingInformation.authorizationOptions.initiator.type](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-auth-ops-initiator-type.md "")
:

[processingInformation.capture](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-capture-a.md "")
:

[processingInformation.commerceIndicator](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-commerce-ind.md "")
:

[processingInformation.originalPaymentId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-original-payment-id.md "")
:

REST Example: Merchant-Initiated Subsequent Installment Payment with a Mastercard PAN and `3-D Secure` {#credentials-mit-install-ex-rest-spg}
=============================================================================================================================================

Request  
This example includes optional fields.

```keyword
{
  "clientReferenceInformation" : {
    "code" : "TC_SPG_FE_MC-2"
  },
  "processingInformation" : {
    "commerceIndicator" : "install",
    "authorizationOptions" : {
      "initiator" : {
        "type" : "merchant",
        "merchantInitiatedTransaction" : {
          "agreementId" : "MIT Agreement-Id_123$"
        },
        "storedCredentialUsed" : true
      }
    },
    "originalPaymentId" : "7491996807960170045280",
    "capture" : true,
    "industryDataType" : "restaurant"
  },
  "aggregatorInformation" : {
    "subMerchant" : {
      "id" : "SubMerId123"
    }
  },
  "orderInformation" : {
    "billTo" : {
      "firstName" : "Abdullah",
      "lastName" : "Muhammad",
      "phoneNumber" : "01-4844094",
      "address2" : "(PO)Box 16335",
      "address1" : "Al Dariyah Dist",
      "postalCode" : "22028",
      "email" : "test@cybs.com"
    },
    "amountDetails" : {
      "totalAmount" : "407.01",
      "currency" : "SAR"
    }
  },
  "merchantInformation" : {
    "categoryCode" : 4999,
    "merchantDescriptor" : {
      "country" : "SA",
      "address1" : "Kharj Road",
      "postalCode" : "12211",
      "locality" : "Riyadh",
      "name" : "Al Madina"
    }
  },
  "paymentInformation" : {
    "card" : {
      "expirationYear" : "2026",
       "number": "CARD_NUMBER",
      "expirationMonth" : "12",
      "type" : "002"
    }
  },
  "installmentInformation" : {
    "sequence" : 2,
    "amount" : "210",
    "totalCount" : 3
  }
}
```

Response to a Successful Request

```
{
  "paymentInformation": {
    "bin": "555555",
    "issuer": "CONOTOXIA SP. Z O.O",
    "binCountry": "PL",
    "accountType": "MASTERCARD Classic",
    "cardBrand": "MASTERCARD",
    "cardType": "002"
  },
  "submitTimeUtc": "2025-08-28T11:40:39Z",
  "processorInformation": {
    "paymentAccountReferenceNumber": "8atcUKA55teOnsvajmkfaY8Rosg2Z",
    "approvalCode": "830SPG",
    "transactionId": "WsPI4kVYXSlXPPK",
    "merchantAdvice": {
      "code": "01",
      "codeRaw": "01"
    },
    "consumerAuthenticationResponse": {
      "code": "2",
      "codeRaw": "2"
    },
    "cardVerification": {
      "resultCodeRaw": "N",
      "resultCode": "N"
    },
    "settlementDate": "220915",
    "avs": {
      "code": "M",
      "codeRaw": "M"
    },
    "retrievalReferenceNumber": "524011500230",
    "responseCode": "00"
  },
  "_links": {
    "self": {
      "method": "GET",
      "href": "/pts/v2/payments/7563812390036731704807/captures"
    },
    "refund": {
      "method": "POST",
      "href": "/pts/v2/payments/7563812390036731704807/refunds"
    },
    "void": {
      "method": "POST",
      "href": "/pts/v2/captures/7563812390036731704807/voids"
    }
  },
  "paymentAccountInformation": {
    "card": {
      "type": "002"
    }
  },
  "clientReferenceInformation": {
    "code": "TC_SPG_FE_VI-1"
  },
  "consumerAuthenticationInformation": {
    "token": "7563812390036731704807",
    "eciRaw": "05A"
  },
  "id": "7563812390036731704807",
  "orderInformation": {
    "amountDetails": {
      "currency": "SAR",
      "authorizedAmount": "20100.00",
      "totalAmount": "20100.00"
    }
  },
  "reconciliationId": "7563812390036731704807",
  "status": "PENDING",
  "embeddedActions": {
    "CAPTURE": {
      "status": "PENDING"
    }
  }
}
```

