Apple Domains Mass Enablement

postApplePayForCsv

POST
/entities/{id}/enableApplePayForCsv

"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

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The Payrix Pro Entity ID for the Partner initiating domain verification for one or more Merchants.

Header Parameters

Content-Type*string
token?string

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.

request-token?string

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.

Request Body

multipart/form-data; boundary=<calculated when request is sent>

files*string

The multipart/form-data field used to upload the CSV file containing merchant-domain pairs for Apple Pay domain verification. The CSV file must include a header row with at least two columns: "domain" and "merchant_id".

Response Body

application/json

application/json

curl -X POST "https://example.com/entities/p1_ent_123abc4d567890efg1h2i34/enableApplePayForCsv" \  -H "Content-Type: multipart/form-data; boundary=<calculated when request is sent>" \  -H "Content-Type: multipart/form-data; boundary=<calculated when request is sent>" \  -d '<files>string</files>'
{  "response": [    {      "dataPreview": [        {          "merchantId": "p1_mer_123abc4d567890efg1h2i34",          "domain": "domain1.com"        },        {          "merchantId": "p1_mer_234bcd5e678901fgh2i3j45",          "domain": "domain2.com"        },        {          "merchantId": "p1_mer_345cde6f789012ghi3j4k56",          "domain": "domain1.com"        },        {          "merchantId": "p1_mer_456def7g890123hij4k5l67",          "domain": "domain3.com"        }      ],      "msg": "Merchant Registration for Apple Pay Initiated",      "status": "success"    }  ]}