Skip to main content

Plan billing interval too long

Error code​

{
"code": "plan.billing_period_too_long",
"docUrl": "https://doc.mor.payments.ai/errors/plan-billing-period-too-long"
}

HTTP status​

400

Cause​

A plan bills at most once per year. The billingPeriod and periodLength of the edited plan, taken together, describe a longer interval: more than 52 weeks, 12 months or 1 year. When a request changes only one of the two, it is checked against the value already stored on the plan.

How to fix​

Lower periodLength, or send billingPeriod and periodLength together so that the interval is one year or shorter.

See the API Reference for the operation that returned this error.