# Register a domain for Apple Pay Registers a domain name for Apple Pay on the web. Note that this is required if relying on Ryft's Apple Pay processing certificate. A Maxiumum of 99 domains can be registered against a single Ryft account. Each domain must host our verification file under /.well-known/apple-developer-merchantid-domain-association. Important: the Content-Type of the hosted file must be application/octet-stream. Endpoint: POST /apple-pay/web-domains Version: 1.1.0 Security: secretApiKeyAuth ## Header parameters: - `Account` (string) The linked accountId (use this if you are processing payments directly under a sub account's URL) Example: "ac_3fe8398f-8cdb-43a3-9be2-806c4f84c327" ## Request fields (application/json): - `domainName` (string, required) The domain name you want to register for Apple Pay. Example: "ryftpay.com" ## Response 200 fields (application/json): - `id` (string) The unique ID for the web domain Example: "apwd_01FCTS1XMKH9FF43CAFA4CXT3P" - `domainName` (string) The domain name registered for Apple Pay Example: "ryftpay.com" - `createdTimestamp` (integer) The epoch timestamp (seconds) when the apple pay web domain was created Example: 1631696701 ## Response 400 fields (application/json): - `requestId` (string) Example: "b83f2653-06d7-44a9-a548-5825e8186004" - `code` (string) Example: "400" - `errors` (array) - `errors.message` (string) Example: "Required property 'amount' not found in JSON" ## Response 500 fields (application/json): - `requestId` (string) Example: "b83f2653-06d7-44a9-a548-5825e8186004" - `code` (string) Example: "400" - `errors` (array) - `errors.message` (string) Example: "Required property 'amount' not found in JSON"