Cancel Subscription Transactions

The Cancel Subscription transaction cancels the specified subscription, removing the transaction stream managed by the Recurring Engine.

Cancel Subscription Request

You must structure an Cancel Subscription request as shown in the following examples. The structure of the request is identical for either an Online or a Batch submission.

<cancelSubscription>

  <subscriptionId>ID of Subscription to Cancel</subscriptionId>

</cancelSubscription>

Example: Cancel Subscription Request

<cnpOnlineRequest version="12.0" xmlns="http://www.vantivcnp.com/schema" merchantId="100">

  <authentication>

    <user>User Name</user>

    <password>password</password>

  </authentication>

  <cancelSubscription>

    <subscriptionId>1234</subscriptionId>

  </cancelSubscription>

</cnpOnlineRequest>

Cancel Subscription Response

A Cancel Subscription response has the following structure. The response message is identical for Online and Batch transactions except Online includes the <postDate> element.

<cancelSubscriptionResponse>

  <cnpTxnId>Transaction Id</cnpTxnId>

  <response>Response Code</response>

  <message>Response Message</message>

  <location>Processing Location</location>

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

  <subscriptionId>ID of Subscription Canceled</subscriptionId>

</cancelSubscriptionResponse>

Example: Cancel Subscription Response

<cnpOnlineResponse version="12.13" xmlns="http://www.vantivcnp.com/schema" response="0" message="Valid Format">

  <cancelSubscriptionResponse>

    <cnpTxnId>1100030055</cnpTxnId>

    <response>000</response>

    <message>Approved</message>

    <responseTime>2020-04-11T14:48:46</responseTime>

    <subscriptionId>123457</subscriptionId>

  </cancelSubscriptionResponse>

</cnpOnlineResponse>