getAppleDomains
Query a appleDomains resource.
In: header
Query Parameters
Set this path parameter to request a specific page of records.
For example, set ?page[number]=2 to retrieve the second page of records for this request.
Set this path parameter to request up to a specific amount of records. By default 30 records are retrieved per page. The maximum limit that can be set is 100.
For example, set ?page[limit]=50 to retrieve up to 50 records for this request.
Use the embed query parameter to include full object(s) of related resource(s) directly within the API response. This allows retrieval of associated resources in a single request, reducing the need for multiple round-trips. Format: GET https://{server}.payrix.com/{endpoint}?embed={relatedObject}
Header Parameters
A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.
A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.
Set this header to filter or sort the list of resources that the method returns. See Searches for detailed information and examples on how to use search header.
To configure a request to return a total for all instances of a field in a result set, use the totals header in the format totals={operator}[]={key}. This will calculate the desired total and return it in the details > totals object of the response. For instance, if you want to sum the total field of all transactions, you would use the sum operator. The response will include the result set, along with the calculated total in the details section. See Collection Operators for detailed information and examples on how to use totals header.
Response Body
application/json
application/json
curl -X GET "https://example.com/appleDomains"{ "response": { "data": [ { "id": "t1_apd_67a18bcde1a1b2ec3d9c9az", "created": "2025-01-31 08:42:16.7318", "modified": "2025-01-31 08:42:16.7318", "creator": "t1_log_0092b50e8812b18e41d511s", "modifier": "t1_log_0092b50e8812b18e41d511s", "registeredMerchant": "t1_mer_17v8dfe6cba78382bd1a07c", "ownerEntity": "g157895bca1f55c", "status": "failed_registration", "domain": "9919-2814-1a3-aa10-50a0-21a7-76bc-7c6f-2096.ngrok-free.app", "errorNote": "applePaySyncError" } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}getAppleDomainsId GET
Query a appleDomains resource.
postApplePayForCsv POST
"Registers Apple Pay domains for multiple merchants using a CSV file. The uploaded CSV must include at least two columns: `"domain"` and `"merchant_id"`. All other columns are ignored. The file is parsed using the header row, and any data rows with missing or extra columns are also rejected. For each merchant-domain pair, the system creates an `appleDomains` record. Domains not already registered are marked as `registering`, and asynchronous processing begins. If verification succeeds, the status updates to `registered`. If verification fails, the status changes to `failed_registration`, with an `errorNote` explaining the reason. This endpoint is idempotent for previously registered domains, allowing repeated submissions without adverse effects. You can resubmit the same CSV to retry failed registrations after resolving any issues. Upload the CSV file as a form-data field named files. All domains must be fully qualified domain names (FQDNs) and must host the Apple Pay verification file at: https://{merchantDomain}/.well-known/apple-developer-merchantid-domain-association
