v1

latestOpenAPI 3.0.12026-08-06135498863.0 KB
Subscriptions

Loads and initiates the creation or selection of a member payment card using an embedded UI for the current or future recurring member subscription of the currently authenticated member

The member payment card will be used for recurring subscription billing.

If the member has a future recurring member subscription, the member payment card will be authenticated for their future subscription.

Licenses Required

  • Vista.Ocapi
  • Vista.Subscriptions
post/ocapi/v1/members/current/subscriptions/recurring/payment-card/embedded

Headers

loyaltySessionTokenstring

Current Loyalty session token, represents a 'signed-in' member

Connect-Region-Codestring

Region Code

Request body

webPaymentMethodIdinteger required

Gets the unique identifier of the web payment method

redirectReturnUrlstring uri nullable

Gets the URL that the browser will be directed to after the embedded payment has finished, if the requested web payment method requires redirect

languageTagstring nullable

Gets the IETF (RFC 4646) language tag

Response

Success

memberPaymentCardIdstring required

Gets the unique identifier of the member payment card

webPaymentMethodIdinteger required

Gets the unique identifier of the web payment method

connectorFunctionNamestring required

Gets the name of the connector function that needs to be called

connectorParametersJsonstring required

Gets the JSON blob of parameters required by the connector

createCardTokenUrlstring uri required

Gets the create card token URL

sdkScriptUrlsstring[] required

Gets the list of SDK script URLs that need to be loaded

isButtonIncludedboolean required

Gets a value indicating whether the payment connector UI includes a submit button

isPrimaryCardOptionIncludedboolean required

Gets a value indicating whether the primary card option is included

connectorScriptUrlsstring[] required

Gets the list of connector script URLs that need to be loaded