Membership

Start a membership purchase for the current buyer

Changed on

Creates the provider subscription for the signed-in buyer and returns what the browser needs to collect the first annual payment. A pending attempt for the same program is reused.

post/account/membership/purchases

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Request body

object required
programId, string required
termsAccepted, unknown required

Response

OK

object required
purchase, object required

A checkout attempt for a membership program

payment, object required

What the browser needs to collect the first payment

Changes

    • warning

      the programId request property's maxLength was set to 128

    • breaking

      the purchase/currency response property's maxLength was unset from 3 for the response status

    • breaking

      the purchase/currency response property's minLength was decreased from 3 to 0 for the response status

    3 more changes in this revision