Subscription Validations

81901 Cannot edit a canceled subscription.

After a subscription has been canceled it cannot be updated.

81902 ID has already been taken.

Subscription IDs need to be unique.

81903 Price cannot be blank.

If you provide a price, it can’t be an empty string. If you omit the price, then the subscription will inherit the price from the plan.

81904 Price is an invalid format.

Price must be formatted like “10” or “10.00”

81905 Subscription has already been canceled.

You can’t cancel subscriptions that have already been canceled.

81906 ID is invalid.

If specifying the ID for the subscription, you can only use letters, numbers, _ and -.

81907 Trial duration is an invalid format.

It must be 1-3 digits.

81908 Trial duration is required.

It’s required if trial period is set to true.

81909 Trial duration unit is invalid.

Valid values are “day” and “month”

81910 Cannot edit expired subscription

You cannot edit a subscription with Expired status.

81923 Price is too large

The price of the subscriptions is too large.

91901 Merchant account ID is invalid.

If specifying the merchant account to use to process transactions for this subscription it needs to be the ID for one of your merchant accounts.

91902 Payment method token card type is not accepted by this merchant account.

Your merchant account must be configured to process transactions for the card type of the payment method token.

91903 Payment method token is invalid.

You’ll get this error if we can’t find a payment method with the token specific.

91904 Plan ID is invalid.

You’ll get this error if we can’t find a plan with the given ID.

91905 Payment method token does not belong to the subscription’s customer.

When updating a subscription and changing the payment method token, you can only use tokens associated to the same customer that the subscription is currently associated to.

91906 Number of billing cycles must be numeric

It must be a number.

91907 Number of billing cycles must be greater than zero

It must be greater than 0.

91908 Inconsistent number of billing cycles

You cannot specify both a number of billing cycles and never expires.

91909 Number of billing cycles is too small

You cannot edit a subscription and change the number of billing cycles to be below the current count of billing cycles.

91911 Cannot add duplicate addon or discount

Add-Ons and Discounts must be unique, but you can change the quantity.

91912 Number of billing cycles cannot be blank

Blanks are not allowed.

91913 Billing day of month must be numeric

It must be a number.

91914 Billing day of month is invalid

Billing day of month must be 1-28 or 31 (for the last day of every month).

91915 First billing date is invalid

The first billing date is an incorrect format.

91916 First billing date cannot be in the past

The first billing date cannot be in the past.

91917 Inconsistent start date

You can only specify one of trial period, start immediately, billing day of month, and first billing date.

91918 Billing day of month cannot be updated

Billing day of month cannot be updated.

91919 First billing date cannot be updated

First billing date cannot be updated.

91920 Cannot edit price changing fields on past due subscription

You cannot edit any fields which could change the price on a past due subscription.

91921 Invalid request format

The add-ons and discounts are in an invalid format.

91922 Cannot update subscription to a plan with a different billing frequency.

You will get this validation if you try to update the plan on a subscription and the billing cycle for the new plan is not the same as the billing cycle of the old plan.

See Also