Clearing/Base II

Pismo processes two types of card network authorization messages:

Single-message system (SMS) transactions:

  • Online/authorization—Message that contains all the data necessary to authorize and settle the transaction. Since there's no need for additional reconciliation, the platform generates the transaction and financially clears it at the time of initial online authorization.

Dual-message system (DMS) transactions—Two messages are necessary to settle the authorization:

  1. Online/authorization—Message that contains initial information required for an issuer authorization decision.
  2. Offline/clearing/base II–Message that confirms the first message. The second message is sent later. It contains the additional data the issuer requires to clear and settle the transaction.

In a dual-message scenario, the authorization impacts the account balance immediately. However, the transaction records are generated only after confirmation.

📘

It is possible that only the offline/clearing message is received. If the Pismo platform receives a confirmation message from the acquirer that doesn’t link with any authorization record, the platform creates a new authorization record in the account for that message.

Clearing/Base II workflow

The Clearing/Base II reconciliation process is a central part of the card network authorizations workflow. The reconciliation is responsible for confirming a transaction and posting it to the account. Once the platform confirms an authorization, it triggers other flows within the platform, such as invoice and accounting postings.

The Pismo platform connects to the card network to check if any files are available for processing.

  • Mastercard—Pismo processes the settlement files every two hours.
  • Visa—Pismo processes the settlement files once a day.
  • ELO—Pismo processes the settlement files once a day.

When a settlement file is available, Pismo:

  • Downloads the settlement file from the card network
  • Parses each message within the file and removes any sensitive data
  • Issues a raw event for each authorization inside the settlement file. The event includes data from the message that is consumed by the impacted APIs. The platform uses this data to process the confirmation or cancellation of the transaction within the authorizations workflow.
📘

Clearing reconciliation

If a problem is encountered during the clearing process for Clearing/Base II authorization events, a report is sent from the Dead Letter Queue (DLQ) stating that the unprocessed clearing message needs to be reconciled. All messages that are sent to the DLQ can be reconciled and reprocessed through the clearing-reconciliation endpoint.

This endpoint allows you to take over the reprocessing of messages in the DLQ, assuming the responsibility to reconcile unprocessed clearing message sent to DLQ. All messages that have been sent to the DLQ can be reconciled through this endpoint.

NOTE: This endpoint is available only for Visa and Mastercard and is not available for ELO.

One common scenario for this would be a Cancellation/Confirmation/Installment with a Julian date error.

  • Issue—This issue occurs when Pismo receives a Base II / Clearing that contains a Julian date smaller than the last one processed.

  • Action—Adjust Julian Date field and perform the reconciliation. Note that the field that represents the Julian Date varies according to the card brand.

  • Example:

    curl --location '[valid-test-environment-url]' \
    --header 'x-tenant: [tenant]' \
    --header 'x-cid: [valid-uuid-correlation-id]' \
    --header 'Content-Type: application/json' \
    --data '{
      "card_network": "[network name]",
      "card_hash": "[card-hash]",
      "reconciliation_reason": "INVALID_JULIAN_DATE",
      "adjustments": [
        {
          "field": "julianProcessingDate",     
          "new_value": "5040"
        }
       ]
    }'

Consolidated file and events

Pismo receives a clearing file from the network from which we will produce clearing events (refer to Clearing/Base II events in the Authorization events guide for details). In a zero balance product, Issuers are expected to use this event to match against an authorization request received and follow the reconciliation process as necessary.

📘

Settlement files are delivered through clearing events.

All settlement-related information is delivered through clearing events. There are no actual "settlement" events.

Consolidated file

Pismo receives a consolidated settlement file which aggregates all transactions and informs the issuer of balances that need to be settled for a particular clearing cycle. This settlement file is a summary report and is not broken down into events. These files are transferred as-is via the file flow.

  • For Mastercard, this is the T140 file, and is available at: s3://pismo-dataplatform-tn-{your_org_id}/reports/clearing/t140/year=YYYY/month=MM/day=DD/
  • For Visa, this is the EP747 file that contains the VSS reports. There are multiple files within the EP747 file, which are transferred via the file flow, and are available at: s3://pismo-dataplatform-tn-{your_org_id}/reports/clearing/ep747/year=YYYY/month=MM/day=DD/
  • For ELO, this is the AGEMIS file, and is available at: s3://pismo-dataplatform-tn-{your_org_id}/reports/clearing/agemis/year=YYYY/month=MM/day=DD/

Events

The Pismo platform streams each line of the settlement file in JSON format messages via real-time event notifications. For instance, if the file contains five purchases and three second presentments, eight events are sent. All generated messages are sent through clearing events (such as raw_credit_visa, raw_credit_mastercard, or raw_debit_mastercard) and other generated events related to authorization, transactions, and impacts on the limit/balance of the account.

Note that all settlement-related information is delivered through clearing events. There are no direct settlement events.

For more information on the events, refer to authorization events.

📘

The events do not contain any totals; only consolidated files contain totals.

JSON messages:

  • Do not contain sensitive data
  • Follow the field structure that the card network makes available in its manuals
  • Contain only the cardHash of the card as the cardholder identifier
🚧
  • If an issuer transaction is present in the database but is missing in the clearing file after 10 days, it must be canceled.
  • If a transaction is missing in the issuer database but is present in the clearing file, then it must be cleared.
  • If confirmation comes after cancellation, the authorization can be reopened.
  • If a cancellation message is received and the purchase is open, an authorization is canceled.

Dual-message scenarios

In a dual-message scenario, the platform performs the reconciliation between the authorization and the Clearing/Base II message at the time of clearing/base II. At that time, in addition to the transaction generation, there may be changes in authorization values.

To start processing the message, the Pismo authorization platform needs to identify the corresponding original authorization for this message. To do so, the platform compares and verifies message data, such as authorization code and retrieval reference number. After this verification, the original authorization may or may not be identified. For each scenario, the processing is different.

Original authorization not found

The platform accepts every message received from clearing/base II. Therefore, when an authorization is not linked to the received message, a new authorization is posted to the account. There can be two scenarios in this case: debit clearing adjustment and credit clearing adjustment.

Debit clearing adjustment

In the debit clearing adjustment, when the Pismo platform receives a confirmation message and this message is not linked to any original authorization, the platform creates a new authorization, and posts debit into the account, decreasing the account balance. Since this is the process of clearing/base II, the transaction is accepted and posted without any additional validations on the card or the account.

There are cases where the Pismo platform receives the debit amount and the transaction has not been confirmed. In these situations, the customer should contact the acquirer.

Credit clearing adjustment

In the credit clearing adjustment, when the Pismo platform receives a cancellation/credit message and this message is not linked to any original authorization, the platform creates a new authorization, and posts credit into the account, increasing the account balance.

Adhering to the process of clearing/base II, the transaction is accepted and posted without any additional validation on the card or account. There are cases where the Pismo platform receives the credit amount and the transaction has not been confirmed. In these situations, the customer should contact the acquirer.

Original authorization found

When the original authorization is found, the Pismo platform performs verification whether to perform reconciliation from the received message. The platform doesn't process the clearing/base II messages in the following scenarios.

  • Second presentments messages, where there is an open dispute about the purchase.
  • Confirmations of split authorizations, where the message is for an installment other than the first.
  • The message is earlier than the last clearing/base II recorded for that authorization. This can happen in a reprocessing scenario for old messages.
  • Purchase confirmation that was canceled by the clearing/base II on the same day. In this scenario, the cancellation takes precedence.
  • Cancellation of an already canceled purchase.
  • Partial cancellation of a pending purchase. In this scenario, the message goes back to the queue to wait for the purchase to be confirmed.

Once the platform determines that the message should be processed, it processes the message and performs the reconciliation.

For reconciliation scenarios for confirmation and cancellation messages, refer to the Confirmation and cancellation messages guide.

Installment purchases

The installment purchases follow the same rules as the previous scenarios, with the only difference being that transactions are generated for all installments. In the case of total cancellation, the platform generates cancellation transactions for all installments. In the case of partial cancellation, the platform generates credit the same way as for a cash purchase, with no impact on the generated installment transactions.

International purchases

International purchases have the purchase amount calculated for the cardholder's currency using the exchange rate of the day of online authorization. For example, if a purchase was made on the 1st of the month and the clearing message arrived on the 10th, the platform uses the conversion rate from the 1st of the month.

International purchases also follow the same rules as the previously described scenarios. In the case of partial cancellation, the platform generates credit the same way as with the local purchase, only considering the credit amount converted to local currency.

The Pismo platform supports any sequence of processing. It is possible to have scenarios such as:

Authorization > Confirmation > Cancellation > Confirmation with a new value
Authorization > Confirmation > Cancellation > Confirmation with a new value > Partial cancellation

Authorization, confirmation, cancelation, and partial cancelation can happen in any plausible order, as long as it is taken into consideration that the platform does not process the clearing/base II messages in certain scenarios, as described at the beginning of the Original authorization found section.


Did this page help you?