One-click upsell after a purchase

Charges the saved Primer card of the user for another Primer price, with no form. Allowed only within 24 hours after a paid checkout of this user: pass the id of that checkout session (the session_id of the SDK success event). Later upsells go through the server API, POST /api/subscription/user/charge. The answer is a checkout session: poll GET /pay/v1/sessions/{id} until it is completed or failed.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
string
required

Price id (ours or the payment system's); a Primer price

string
required

The id of a paid checkout session of this user from the last 24 hours

metadata
object

Copied to the upsell subscription

Responses

403

upsell_not_allowed: no paid checkout of this user from the last 24 hours

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json