---
title: "Get URL to add a payment method"
method: POST
path: "/mcp/v1/actions/ud_cart_add_payment_method_url"
tags: ["Cart"]
---

# Get URL to add a payment method

`POST /mcp/v1/actions/ud_cart_add_payment_method_url`

## Request

- Base URL: `https://api.unstoppabledomains.com`
- URL: `https://api.unstoppabledomains.com/mcp/v1/actions/ud_cart_add_payment_method_url`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/unstoppabledomains/apis/user-api/docs/mcp/v1/actions/ud_cart_add_payment_method_url/post.ts> (a function with typed inputs; its response is checked against the schema)

Get a URL to the payment management page where users can securely add a new credit card. Requires authentication.

## Request body

- object

## Response `200`

Add payment method URL

- AddPaymentMethodUrlResponse
  - `url` string: Authenticated magic link URL to the payment management page (single-use, valid for 60 seconds)
  - `expiresIn` number: Seconds until the magic link expires (URL is single-use)
  - `instructions` string: Guidance for the user on how to add a card

## Other responses

- `401`: Authentication required

## Changes

- **2026-03-13** `d4c4c4b514bd`: 1 info
  - added the optional property `expiresIn` to the response with the `200` status

[Operation history](https://skmtc.dev/unstoppabledomains/apis/user-api/changes/mcp/v1/actions/ud_cart_add_payment_method_url/post.md)

---

[API](https://skmtc.dev/unstoppabledomains/apis/user-api.md) - [All operations](https://skmtc.dev/unstoppabledomains/apis/user-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unstoppabledomains/apis/user-api/revisions/c1def8e34b41?raw)
