Register Token Response

There is no structural difference an Online and Batch response; however, some child elements change depending upon whether the token is for a credit card account or a Direct Debit account. The response will have one of the following structures.

Register Token response for Credit Cards:

<registerTokenResponse id="99999" reportGroup="RG1">

  <cnpTxnId>Transaction Id</cnpTxnId>

  <cnpToken>Token</cnpToken>

  <bin>BIN</bin>

  <type>Method of Payment</type>

  <response>Response Code</response>

  <message>Response Message</message>

  <location>Processing Location</location>

  <responseTime>Date and Time in GMT</responseTime>

  <accountRangeId>ID of Account Range</accountRangeId>

</registerTokenResponse>

Register Token response for eChecks:

<registerTokenResponse id="99999" reportGroup="RG1">

  <cnpTxnId>Transaction Id</cnpTxnId>

  <cnpToken>Token</cnpToken>

  <type>Method of Payment</type>

  <eCheckAccountSuffix>Last 3 of Acct Number</eCheckAccountSuffix>

  <response>Response Code</response>

  <responseTime>Date and Time in GMT</responseTime>

  <message>Response Message</message>

  <location>Processing Location</location>

</registerTokenResponse>

Register Token response for ApplePay:

<registerTokenResponse id="99999" reportGroup="RG1">

  <cnpTxnId>Transaction Id</cnpTxnId>

  <cnpToken>Token</cnpToken>

  <type>Method of Payment</type>

  <response>Response Code</response>

  <responseTime>Date and Time in GMT</responseTime>

  <message>Response Message</message>

  <location>Processing Location</location>

  <applepayResponse>

    <applicationExpirationDate>App PAN Exp Date</applicationExpirationDate>

    <currencyCode>Currency Code</currencyCode>

    <transactionAmount>Amount of Transaction</transactionAmount>

    <cardholderName>Name of cardholder</cardholderName>

    <deviceManufacturerIdentifier>Device Mfr Id</deviceManufacturerIdentifier>

    <paymentDataType>Type of Payment Data</paymentDataType>

    <onlinePaymentCryptogram>Payment Cryptogram</onlinePaymentCryptogram>

    <eciIndicator>eCommerece Indicator</eciIndicator>

  </applepayResponse>

</registerTokenResponse>

Register Token for Android Pay:

<registerTokenResponse id="99999" reportGroup="RG1">

  <cnpTxnId>Transaction Id</cnpTxnId>

  <cnpToken>Token</cnpToken>

  <type>Method of Payment</type>

  <response>Response Code</response>

  <responseTime>Date and Time in GMT</responseTime>

  <message>Response Message</message>

  <location>Processing Location</location>

  <androidpayResponse>

    <cryptogram>Payment Cryptogram</cryptogram>

    <expMonth>Expiration Month</expMonth>

    <expYear>Expiration Year</expYear>

    <eciIndicator>eCommerece Indicator</eciIndicator>

  </androidpayResponse>

</registerTokenResponse>

Example: Batch Register Token Response - Credit Card

<cnpResponse version="12.0" xmlns="http://www.vantivcnp.com/schema" id="123" response="0" message="Valid Format" cnpSessionId="987654321">

  <batchResponse id="01234567" cnpBatchId="4455667788" merchantId="100">

    <registerTokenResponse id="99999" reportGroup="RG1">

      <cnpTxnId>21122700</cnpTxnId>

      <cnpToken>1111000100360002</cnpToken>

      <bin>400510</bin>

      <type>VI</type>

      <response>801</response>

      <responseTime>2016-10-26T17:21:51</responseTime>

      <message>Account number was successfully registered</message>

    </registerTokenResponse>

  </batchResponse>

</cnpResponse>

Example: Batch Register Token Request - Direct Debit

<cnpResponse version="12.0" xmlns="http://www.vantivcnp.com/schema" id="123" response="0" message="Valid Format" cnpSessionId="987654321">

  <batchResponse id="01234567" cnpBatchId="4455667788" merchantId="100">

    <registerTokenResponse id="99999" reportGroup="RG1">

      <cnpTxnId>21122700</cnpTxnId>

      <cnpToken>1111000100360002</cnpToken>

      <type>VI</type>

      <eCheckAccountSuffix>511</eCheckAccountSuffix>

      <response>801</response>

      <responseTime>2016-10-26T17:21:51</responseTime>

      <message>Account number was successfully registered</message>

    </registerTokenResponse>

  </batchResponse>

</cnpResponse>