Apple Pay Web Merchant Registration API

Hello,

I am looking for some help on how to use the Apple Pay Web Merchant Registration API. Have been approved to use the API and attempted to test on a merchant ID set up for testing. Below are steps taken before the request.

  1. Create merchant ID com.test.merchant.
  2. Create Apple Pay Merchant Identity Certificate for using it with the request via p12.
  3. Create Platform Integrator platformintegrator.com.test

With the below request, I am getting a 401. Any input would be much appreciated!

curl --cert-type P12 --cert cert.p12:{password} -i -d '{\
"domainNames":["customer.test.com"],\
"partnerMerchantName": "customer.test.com",\
"partnerInternalMerchantIdentifier":"customer.test.com"}'\
"encryptTo":"com.test.merchant",\
https://apple-pay-gateway-cert.apple.com/paymentservices/registerMerchant

The response:

{
  "statusMessage": "Payment Services Exception Unauthorized",
  "statusCode": "401"
}

Also tried using the platformintegrator.com.test for the encryptTo but resulted in a 401 as well.

Fixing typo:

curl --cert-type P12 --cert cert.p12:{password} -i -d '{\
"encryptTo":"com.test.merchant",\
"domainNames":["customer.test.com"],\
"partnerMerchantName": "customer.test.com",\
"partnerInternalMerchantIdentifier":"customer.test.com"\
}'\
https://apple-pay-gateway-cert.apple.com/paymentservices/registerMerchant
Apple Pay Web Merchant Registration API
 
 
Q