| Hi Mark,
Luckily, your example is actually simpler than using multiple schedules with different scheduleID values.
If the business has scheduled a $100 payment, and wants to schedule ongoing $50 payments starting after the $100 payment, just use ScheduleGenerate with a removeAllPaymentsBeforeStartDate value of false, as per the following example (which has a start date of 30 Sep 2017):
<ScheduleGenerate>
<username>****</username>
< password>***********</password>
<payerUniqueID>????????</payerUniqueID>
<scheduleType>UNENDING</scheduleType>
<transactionAmountInCents>5000</transactionAmountInCents>
<frequency>MONTHLY</frequency>
<frequencyDay>15</frequencyDay>
<startDate>20170930</startDate>
<removeAllPaymentsBeforeStartDate>false</removeAllPaymentsBeforeStartDate>
</ScheduleGenerate>
As long as the startDate is after the date of the $100 payment, that initial payment will be unaffected by the new schedule.
Cheers,
Alistair Grant
Senior .NET / SQL Developer
P +61 7 3040 4320
E [email protected] | www.integrapay.com.au
IntegraPay | IntegraPay | @IntegraPay | /company/integrapay-pty-ltd
|