---
title: "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"
method: POST
path: "/ocapi/v1/members/current/subscriptions/recurring/payment-card/embedded"
tags: ["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

`POST /ocapi/v1/members/current/subscriptions/recurring/payment-card/embedded`

## Request

- Base URL: `https://developer.vista.co` (the document declares no server; this is the origin it was published from)
- URL: `https://developer.vista.co/ocapi/v1/members/current/subscriptions/recurring/payment-card/embedded`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vista/apis/vista-digital-platform/docs/ocapi/v1/members/current/subscriptions/recurring/payment-card/embedded/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Headers

- `loyaltySessionToken` string
- `Connect-Region-Code` string

## Request body

- OcapiV1LoyaltyMembersSubscriptionsRequestsRecurringMemberSubscriptionEmbeddedPaymentCardCreate: Represents the values needed to create an embedded member payment card for a recurring member subscription
  - `webPaymentMethodId` integer, required: Gets the unique identifier of the web payment method
  - `redirectReturnUrl` string, 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
  - `languageTag` string, nullable: Gets the IETF (RFC 4646) language tag

## Response `200`

Success

- OcapiV1LoyaltyMembersPaymentCardsMemberEmbeddedPaymentCardClientData: Represents the details required to initialise the embedded payment UI for adding a member payment card
  - `memberPaymentCardId` string, required: Gets the unique identifier of the member payment card
  - `webPaymentMethodId` integer, required: Gets the unique identifier of the web payment method
  - `connectorFunctionName` string, required: Gets the name of the connector function that needs to be called
  - `connectorParametersJson` string, required: Gets the JSON blob of parameters required by the connector
  - `createCardTokenUrl` string, uri, required: Gets the create card token URL
  - `sdkScriptUrls` string[], required: Gets the list of SDK script URLs that need to be loaded
  - `isButtonIncluded` boolean, required: Gets a value indicating whether the payment connector UI includes a submit button
  - `isPrimaryCardOptionIncluded` boolean, required: Gets a value indicating whether the primary card option is included
  - `connectorScriptUrls` string[], required: Gets the list of connector script URLs that need to be loaded

## Other responses

- `400`: Member does not have a current or future recurring subscription.
- `401`: No member authenticated.

---

[API](https://skmtc.dev/vista/apis/vista-digital-platform.md) - [All operations](https://skmtc.dev/vista/apis/vista-digital-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/vista/apis/vista-digital-platform/revisions/c46f30854000?raw)
