cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

AIM ARB: Update Total Occurrences & Amount

Using the Java SDK, is it possible to update the total occurrences and amount for a subscription? I don't have a need to modify any of the other fields of the subscription. The ARB doc states that, using ARBUpdateSubscription:

 

    • The subscription start date (subscription.paymentSchedule.startDate) may only be updated if no successful payments have been completed.

    • The subscription interval information (subscription.paymentSchedule.interval.length and subscription.paymentSchedule.interval.unit) may not be updated.

    • The number of trial occurrences (subscription.paymentSchedule.trialOccurrences) may only be updated if the subscription has not yet begun or is still in the trial period.

    • If the start date is the 31st, and the interval is monthly, the billing date is the last day of each month (even when the month does not have 31 days).

      All other fields are optional. 

 which seems to imply that I should be able to update total occurrences and amount, but the update fails with:

The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:startDate' element is invalid - The value '' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:date' - The string '' is not a valid XsdDateTime value.

 

 

rbm
Member
1 REPLY 1

The total occurrences cannot be updated on a subscription, but the error you are receiving seems to indicate that you are not entering a startDate. If the subscription that you are trying to update has not yet started, you must include the start date in any update request.

Trevor
Administrator Administrator
Administrator