Create Plan Transactions

The Create Plan transaction allows you to define several attributes of a recurring payment schedule. Later, you can associate existing, active plans with subscriptions, which establishes a recurring payment schedule managed by the Recurring Engine.

Create Plan Request

You must specify the Create Plan transaction as follows. The structure of the request is identical for either an Online or a Batch submission.

<createPlan>

  <planCode>Plan Reference Code</planCode>

  <name>Name of Plan</name>

  <description>Description of Plan</description>

  <intervalType>The Type of Interval</intervalType>

  <amount>Amount of Recurring Payment</amount>

  <numberOfPayments>1 to 99</numberOfRemianingPayments>

  <trialNumberOfIntervals>Number of Trial Period Intervals</trialNumberOfIntervals>

  <trialIntervalType>Type of Trial Period Interval</trialIntervalType>

  <active>true or false</active>

</createPlan>

Example:  Online Create Plan Request

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

  <authentication>

    <user>User Name</user>

    <password>password</password>

  </authentication>

  <createPlan>

    <planCode>Gold12</planCode>

    <name>Gold_Monthly</name>

    <description>Gold Level with Monthly Payments</description>

    <intervalType>MONTHLY</intervalType>

    <amount>5000</amount>

    <numberOfPayments>4</numberOfPayments>

    <trialNumberOfIntervals>1</trialNumberOfIntervals>

    <trialIntervalType>MONTH</trialIntervalType>

    <active>true</active>

  </createPlan>

</cnpOnlineRequest>

Create Plan Response

The Create Plan response message is identical for Online and Batch transactions.

<createPlanResponse>

  <cnpTxnId>Transaction Id</cnpTxnId>

  <response>Response Code</response>

  <message>Response Message</message>

  <location>Processing Location</location>

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

  <planCode>Plan Reference Code</subscriptionId>

</createPlanResponse>

Example:  Online Create Plan Response

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

  <createPlanResponse>

    <cnpTxnId>1100030055</cnpTxnId>

    <response>000</response>

    <message>Approved</message>

    <responseTime>2016-07-11T14:48:46</responseTime>

    <planCode>Gold12</planCode>

  </createPlanResponse>

</cnpOnlineResponse>