---
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`

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

---

[API](https://skmtc.net/unstoppabledomains/apis/user-api.md) · [All operations](https://skmtc.net/unstoppabledomains/apis/user-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unstoppabledomains/user-api/revisions/c1def8e34b41/schema)
