Payment Method Domains

Create Payment Method Domain

Changed on

Registers a hostname with the wallet provider and attempts verification inline. Returns verified when the provider fetched the domain-association file (for Apple Pay, /.well-known/apple-developer-merchantid-domain-association), or pending when it could not: host the file, then retry with POST /payment_method_domains/:id/verify. Deprecated: add Apple Pay with POST /domains and apple_pay: {} instead. Stops responding after 2026-12-23.

post/payment_method_domains

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
account_id, string

Account to register the domain for (biz_ tag). Required when authenticating as a user; an account API key supplies its own account.

hostname, string required

Hostname to register (e.g. checkout.shinetime.com).

Example request

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "hostname": "pending.shinetime.com"
}

Response

domain registered as pending when verification fails

PaymentMethodDomain required
account_id, string nullable required

ID of the account the domain is registered for, prefixed biz_.

created_at, string required

When the domain was created, as an ISO 8601 timestamp.

hostname, string required

Hostname the checkout is served from (e.g. checkout.example.com).

id, string required

Payment method domain ID: the ID of the account's domain for the hostname, prefixed dom_, or pmd_ for some older domains.

provider, 'apple' required

Wallet provider the domain is registered with.

status, 'pending' | 'verified' required

Verification status. pending means the provider could not fetch the domain-association file yet; only verified domains show wallet payment methods at checkout.

updated_at, string required

When the domain was last updated, as an ISO 8601 timestamp.

Example response

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "created_at": "2026-01-01T12:00:00.000Z",
  "hostname": "checkout.shinetime.com",
  "id": "dom_xxxxxxxxxxxxxx",
  "provider": "apple",
  "status": "verified",
  "updated_at": "2026-01-01T12:00:00.000Z"
}

Changes