post
https://api-sandbox.paymentlabs.io/subscription/plans/offers
Creates a plan offer: an invitation for one buyer to subscribe to one of the plans you choose.
Send the buyer to links.self (hosted page), embed links.embeddable in an iframe, or pass the offer id to the Payin
SDK. The buyer signs in, picks a plan, and saves a card or bank account; that creates the subscription.
Permission: Merchant User Config.
Rules
buyer.emailandsubscriptionPlanIdsare required. Unknown fields are rejected.- The buyer is identified by
buyer.emailwithin your account and is created if new. - Plan IDs that are not plans of yours are ignored. If none of them is, the offer is refused.
expiresAtaccepts a date or a date-time. The offer stays open until 23:59:59 of that day inuserTimezone(UTC by
default). It defaults to one year from now and cannot be in the past.
Errors
400 EXPIRED_PLAN_OFFER:expiresAtis in the past.400 INVALID_PLAN_OFFER: none ofsubscriptionPlanIdsis a plan of yours.400 VALIDATION_ERROR: a field is missing or invalid;detailslists them.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
