Domains
Your own hosts for Apple Pay and Google Pay.
GET /v1/domains
List domains
Your domains, newest first (removed ones are not listed).
- Authentication
- Merchant API key
- Effect
- Read-only.
Responses
| Status | Meaning | Body / error codes |
|---|
| 200 | Success. | object |
| 401 | Missing or invalid API key. | authentication_error |
| 403 | Agent API keys cannot use domains. | scope_missing |
| 404 | Domains are not available on this account. | domains_unavailable |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |
Example response
{
"object": "list",
"url": "string",
"has_more": false,
"data": [
{
"object": "domain",
"id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"hostname": "string",
"kind": "pay_page",
"status": "pending_dns",
"dns_records": [
{
"type": "TXT",
"name": "string",
"value": "string",
"purpose": "ownership"
}
],
"association_file": {
"path": "string",
"served_by": "payware",
"download_url": "string"
},
"apple_pay": {
"status": "registered",
"registered_at": "2026-10-25T18:00:00.000Z"
},
"google_pay": {
"status": "configured",
"merchant_id": "string"
},
"last_error": "string",
"last_checked_at": "2026-10-25T18:00:00.000Z",
"created_at": "2026-10-25T18:00:00.000Z"
}
]
}
POST /v1/domains
Add a domain
Adds a host on which you take Apple Pay and Google Pay. kind: pay_page is a subdomain you point at Payware with a CNAME (Payware serves the payment page there); kind: embed is your own checkout page, which must serve the Apple Pay file and load wallets.js. The host is checked at once; the response lists the DNS records to publish and, until they are, what is missing (check again with verify). Needs a NETOPIA Payments merchant ID in Settings before the domain can become active; Google Pay on the host additionally needs your own Google Pay merchant ID (google_merchant_id). A host already registered by another account is 409 domain_taken. Not available to agent keys.
- Authentication
- Merchant API key
- Effect
- Registers the host; nothing is charged or sent.
Headers
| Name | Type | Required | Description |
|---|
Idempotency-Key | string | no | Makes retries safe: same key + body replays the stored response (idempotency-replayed: true); a different body, or an agent key or dashboard session reusing another credential's key, returns 409 idempotency_key_in_use. · ≤ 96 chars |
Request body
| Field | Type | Required | Description |
|---|
hostname | string | yes | For example pay.example.com: no scheme, path or port. · ≤ 253 chars |
kind | "pay_page" | "embed" | no | default "pay_page" |
Example request
{
"hostname": "string",
"kind": "pay_page"
}
Responses
| Status | Meaning | Body / error codes |
|---|
| 201 | Created. | Domain |
| 400 | Invalid hostname (an address, a port, a Payware host, or a bare domain for a pay page). | invalid_hostname |
| 401 | Missing or invalid API key. | authentication_error |
| 403 | Agent API keys cannot use domains. | scope_missing |
| 404 | Domains are not available on this account. | domains_unavailable |
| 409 | The host is taken or already added. | domain_taken domain_exists |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |
Example response
{
"object": "domain",
"id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"hostname": "string",
"kind": "pay_page",
"status": "pending_dns",
"dns_records": [
{
"type": "TXT",
"name": "string",
"value": "string",
"purpose": "ownership"
}
],
"association_file": {
"path": "string",
"served_by": "payware",
"download_url": "string"
},
"apple_pay": {
"status": "registered",
"registered_at": "2026-10-25T18:00:00.000Z"
},
"google_pay": {
"status": "configured",
"merchant_id": "string"
},
"last_error": "string",
"last_checked_at": "2026-10-25T18:00:00.000Z",
"created_at": "2026-10-25T18:00:00.000Z"
}
GET /v1/domains/:id
Retrieve a domain
One domain with its status, the DNS records to publish and the last problem found.
- Authentication
- Merchant API key
- Effect
- Read-only.
Path parameters
| Name | Type | Required | Description |
|---|
id | string | yes | Object ID (ULID). · 26 chars |
Responses
| Status | Meaning | Body / error codes |
|---|
| 200 | Success. | Domain |
| 401 | Missing or invalid API key. | authentication_error |
| 403 | Agent API keys cannot use domains. | scope_missing |
| 404 | Not found, or not yours. | resource_missing domains_unavailable |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |
Example response
{
"object": "domain",
"id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"hostname": "string",
"kind": "pay_page",
"status": "pending_dns",
"dns_records": [
{
"type": "TXT",
"name": "string",
"value": "string",
"purpose": "ownership"
}
],
"association_file": {
"path": "string",
"served_by": "payware",
"download_url": "string"
},
"apple_pay": {
"status": "registered",
"registered_at": "2026-10-25T18:00:00.000Z"
},
"google_pay": {
"status": "configured",
"merchant_id": "string"
},
"last_error": "string",
"last_checked_at": "2026-10-25T18:00:00.000Z",
"created_at": "2026-10-25T18:00:00.000Z"
}
DELETE /v1/domains/:id
Remove a domain
Removes the domain. Payware registers your remaining domains with Apple Pay; the host stays reserved to your account. Payment links already created for it keep their address until they end.
- Authentication
- Merchant API key
- Effect
- Removes the domain.
Path parameters
| Name | Type | Required | Description |
|---|
id | string | yes | Object ID (ULID). · 26 chars |
Headers
| Name | Type | Required | Description |
|---|
Idempotency-Key | string | no | Makes retries safe: same key + body replays the stored response (idempotency-replayed: true); a different body, or an agent key or dashboard session reusing another credential's key, returns 409 idempotency_key_in_use. · ≤ 96 chars |
Responses
| Status | Meaning | Body / error codes |
|---|
| 200 | Success. | object |
| 401 | Missing or invalid API key. | authentication_error |
| 403 | Agent API keys cannot use domains. | scope_missing |
| 404 | Not found, or not yours. | resource_missing domains_unavailable |
| 409 | Another change to your domains is in progress. | domain_busy |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |
Example response
{
"object": "domain",
"id": "string",
"hostname": "string",
"deleted": false
}
POST /v1/domains/:id/verify
Check a domain now
Runs the checks in this request: the ownership record, the Apple Pay file served by the host, and the Apple Pay registration. Returns the domain with its new status and, when something is missing, last_error says what. Adding a domain and creating a payment link for it run the same checks.
- Authentication
- Merchant API key
- Effect
- Checks the host and, when it passes, registers it with Apple Pay.
Path parameters
| Name | Type | Required | Description |
|---|
id | string | yes | Object ID (ULID). · 26 chars |
Headers
| Name | Type | Required | Description |
|---|
Idempotency-Key | string | no | Makes retries safe: same key + body replays the stored response (idempotency-replayed: true); a different body, or an agent key or dashboard session reusing another credential's key, returns 409 idempotency_key_in_use. · ≤ 96 chars |
Responses
| Status | Meaning | Body / error codes |
|---|
| 200 | Success. | Domain |
| 401 | Missing or invalid API key. | authentication_error |
| 403 | Agent API keys cannot use domains. | scope_missing |
| 404 | Not found, or not yours. | resource_missing domains_unavailable |
| 409 | Another change to your domains is in progress. | domain_busy |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |
Example response
{
"object": "domain",
"id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
"hostname": "string",
"kind": "pay_page",
"status": "pending_dns",
"dns_records": [
{
"type": "TXT",
"name": "string",
"value": "string",
"purpose": "ownership"
}
],
"association_file": {
"path": "string",
"served_by": "payware",
"download_url": "string"
},
"apple_pay": {
"status": "registered",
"registered_at": "2026-10-25T18:00:00.000Z"
},
"google_pay": {
"status": "configured",
"merchant_id": "string"
},
"last_error": "string",
"last_checked_at": "2026-10-25T18:00:00.000Z",
"created_at": "2026-10-25T18:00:00.000Z"
}
GET /v1/domains/:id/apple-file
Download the Apple Pay file
The Apple Pay domain verification file, the same for every domain. For kind: embed, serve it unchanged at /.well-known/apple-developer-merchantid-domain-association on your host over HTTPS, answering 200 with no redirect. Payware serves it itself for pay_page.
- Authentication
- Merchant API key
- Effect
- Read-only.
Path parameters
| Name | Type | Required | Description |
|---|
id | string | yes | Object ID (ULID). · 26 chars |
Responses
| Status | Meaning | Body / error codes |
|---|
| 200 | The file, as plain text. | |
| 401 | Missing or invalid API key. | authentication_error |
| 403 | Agent API keys cannot use domains. | scope_missing |
| 404 | Not found, or not yours. | resource_missing domains_unavailable |
| 429 | Rate limited; honor retry-after. | rate_limit_exceeded too_many_auth_failures |