Create Payment Method Domain
Changed onRegisters 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.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Account to register the domain for (biz_ tag). Required when authenticating as a user; an account API key supplies its own account.
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
ID of the account the domain is registered for, prefixed biz_.
When the domain was created, as an ISO 8601 timestamp.
Hostname the checkout is served from (e.g. checkout.example.com).
Payment method domain ID: the ID of the account's domain for the hostname, prefixed dom_, or pmd_ for some older domains.
Wallet provider the domain is registered with.
Verification status. pending means the provider could not fetch the domain-association file yet; only verified domains show wallet payment methods at checkout.
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
- info
endpoint deprecated
- info
- info
added the non-success response with the status
- info