---
name: "xpay-instadomain-buy-domain"
description: "Start the purchase flow for an available domain via Stripe checkout.

IMPORTANT: Before calling this tool, you MUST first call check_domain
to get the price, then clearly show the user the price and get their
explicit confirmation before proceeding. Never call buy_domain without
the user seeing and approving the price first.

The registrant contact details are required because the domain will be
registered in the buyer's name (they become the legal owner). WHOIS
privacy is enabled by default, so these details are not publicly visible.

Creates a Stripe checkout session. Returns a checkout URL that the
user should open in their browser to complete payment securely via
Stripe, plus the order ID for tracking.

Args:
    domain: The domain to purchase (e.g. \"coolstartup.com\").
    first_name: Registrant's first name.
    last_name: Registrant's last name.
    email: Registrant's email address.
    address1: Registrant's street address.
    city: Registrant's city.
    state: Registrant's state or province.
    postal_code: Registrant's postal/zip code.
    country: 2-letter ISO country code (e.g. \"US\", \"GB\", \"DE\").
    phone: Phone number in format +1.5551234567.
    org_name: Organization name (optional, leave empty for individuals).

Returns:
    Dict with order_id, checkout_url, price_cents, and price_display."
version: "1.0.0"
price: "$0.02/call"
provider: "InstaDomain"
---

# Buy Domain

Start the purchase flow for an available domain via Stripe checkout.

IMPORTANT: Before calling this tool, you MUST first call check_domain
to get the price, then clearly show the user the price and get their
explicit confirmation before proceeding. Never call buy_domain without
the user seeing and approving the price first.

The registrant contact details are required because the domain will be
registered in the buyer's name (they become the legal owner). WHOIS
privacy is enabled by default, so these details are not publicly visible.

Creates a Stripe checkout session. Returns a checkout URL that the
user should open in their browser to complete payment securely via
Stripe, plus the order ID for tracking.

Args:
    domain: The domain to purchase (e.g. "coolstartup.com").
    first_name: Registrant's first name.
    last_name: Registrant's last name.
    email: Registrant's email address.
    address1: Registrant's street address.
    city: Registrant's city.
    state: Registrant's state or province.
    postal_code: Registrant's postal/zip code.
    country: 2-letter ISO country code (e.g. "US", "GB", "DE").
    phone: Phone number in format +1.5551234567.
    org_name: Organization name (optional, leave empty for individuals).

Returns:
    Dict with order_id, checkout_url, price_cents, and price_display.

**Provider:** InstaDomain
**Price:** $0.02/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to start the purchase flow for an available domain via stripe checkout.

important: before calling this tool, you must first call check_domain
to get the price, then clearly show the user the price and get their
explicit confirmation before proceeding. never call buy_domain without
the user seeing and approving the price first.

the registrant contact details are required because the domain will be
registered in the buyer's name (they become the legal owner). whois
privacy is enabled by default, so these details are not publicly visible.

creates a stripe checkout session. returns a checkout url that the
user should open in their browser to complete payment securely via
stripe, plus the order id for tracking.

args:
    domain: the domain to purchase (e.g. "coolstartup.com").
    first_name: registrant's first name.
    last_name: registrant's last name.
    email: registrant's email address.
    address1: registrant's street address.
    city: registrant's city.
    state: registrant's state or province.
    postal_code: registrant's postal/zip code.
    country: 2-letter iso country code (e.g. "us", "gb", "de").
    phone: phone number in format +1.5551234567.
    org_name: organization name (optional, leave empty for individuals).

returns:
    dict with order_id, checkout_url, price_cents, and price_display.. This is part of the InstaDomain provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 8+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("instadomain/buy_domain")`
2. **`xpay_run`** — Execute: `xpay_run("instadomain/buy_domain", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `country` | string | Yes |  |
| `city` | string | Yes |  |
| `phone` | string | Yes |  |
| `address1` | string | Yes |  |
| `domain` | string | Yes |  |
| `last_name` | string | Yes |  |
| `state` | string | Yes |  |
| `postal_code` | string | Yes |  |
| `org_name` | string | No |  |
| `first_name` | string | Yes |  |
| `email` | string | Yes |  |

## Pricing

- **Cost:** $0.02/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [InstaDomain (all tools)](https://xpay.tools/skills/instadomain/SKILL.md) — 9 tools
- [Check Domain](https://xpay.tools/skills/instadomain/check-domain/SKILL.md) — $0.02/call
- [Buy Domain Crypto](https://xpay.tools/skills/instadomain/buy-domain-crypto/SKILL.md) — $0.02/call
- [Get Domain Status](https://xpay.tools/skills/instadomain/get-domain-status/SKILL.md) — $0.02/call
- [Get Transfer Code](https://xpay.tools/skills/instadomain/get-transfer-code/SKILL.md) — $0.02/call
- [Unlock Domain](https://xpay.tools/skills/instadomain/unlock-domain/SKILL.md) — $0.02/call

## Links

- Tool page: https://xpay.tools/instadomain/buy-domain/
- Provider: https://xpay.tools/instadomain/
- All tools: https://xpay.tools/explore
