---
title: "Loads and initiates the creation of a member payment card using an embedded UI for the currently authenticated member"
method: POST
path: "/ocapi/v1/members/current/payment-cards/embedded"
tags: ["Payments"]
---

# Loads and initiates the creation of a member payment card using an embedded UI for the currently authenticated member

`POST /ocapi/v1/members/current/payment-cards/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/payment-cards/embedded`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vista/apis/vista-digital-platform/docs/ocapi/v1/members/current/payment-cards/embedded/post.ts> (a function with typed inputs; its response is checked against the schema)

#### Licenses Required


- Vista.Ocapi

## Headers

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

## Request body

- OcapiV1LoyaltyMembersPaymentCardsRequestsMemberEmbeddedPaymentCardCreate: Represents the values needed to create an embedded member payment card for one-off order payments
  - `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`: Request property is invalid or missing.
- `401`: No member authenticated.

## Changes

- **2026-10-09** `41415d239083`: 1 info
  - api operation id `OcapiMemberPaymentCards_CreateEmbeddedMemberPaymentCard` removed and replaced with `OcapiMemberPaymentCards_CreateMemberEmbeddedPaymentCard`

[Operation history](https://skmtc.dev/vista/apis/vista-digital-platform/changes/ocapi/v1/members/current/payment-cards/embedded/post.md)

---

[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)
