---
title: "Get checkout URL"
method: POST
path: "/mcp/v1/actions/ud_cart_get_url"
tags: ["Cart"]
---

# Get checkout URL

`POST /mcp/v1/actions/ud_cart_get_url`

## Request

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

Generate a checkout URL for completing the purchase in a browser. Returns the URL along with a cart summary. Requires authentication.

## Request body

- object
  - `discountCode` string: Optional discount/promo code to include in checkout URL

## Response `200`

Checkout URL and cart summary

- CheckoutUrlResponse
  - `checkoutUrl` string
  - `expiresIn` number: Seconds until the magic link expires (URL is single-use)
  - `cartSummary` object
    - `itemCount` number
    - `subtotal` number
    - `subtotalFormatted` string
    - `items` object[]
  - `discountCode` string, nullable
  - `instructions` string

## 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_get_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)
