post
https://api-sandbox.paymentlabs.io/subscription/plans
Creates a subscription plan: what a buyer pays, in which currency, and how often.
A plan on its own charges nobody. To sign a buyer up, offer one or more plans with Create Plan Offer; the buyer
accepts the offer on the hosted page or through the Payin SDK, and that creates the subscription.
Permission: Merchant User Config.
Rules
schedule,amount,currency,termsOfServiceUrlandprivacyPolicyUrlare required. Unknown fields are rejected.schedule.intervalCountandtrialPeriod.intervalCountmust be at least1.- Amount and schedule cannot be changed later. To change the price, create a new plan and cancel the old one.
The plan is created ACTIVE.
Errors
400 CURRENCY_NOT_ALLOWED: this currency is not enabled for your account.400 MAXIMUM_AMOUNT_EXCEEDED: the amount is above your limit for this currency (maxAmount).400 VALIDATION_ERROR: a field is missing or invalid;detailslists them.404 NOT_FOUND: your merchant account could not be loaded. Contact Payment Labs.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
