Membership

Prepare the payment form for the current buyer

Changed on

Ensures the signed-in buyer exists as a customer on the team's connected account and returns a customer session so the payment form can show their saved cards.

post/account/membership/payment-session

Request

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

Request body

object required
programId, string required

Response

OK

object required

What the payment form needs before the purchase starts

provider, 'STRIPE' required
stripeAccountId, string required

Connected account the payment form must be loaded for

customerSessionClientSecret, string

Lets the payment form show the buyer's saved cards. Absent when the provider declined to issue one.

Changes

    • warning

      the programId request property's maxLength was set to 128

    • warning

      added the new MEMBERSHIP_SUSPENDED enum value to the oneOf[subschema #1]/data/reason response property for the response status