We are looking for sample payload for merchant registration API.
We have tried to test the api and getting an error.
Request:
curl --location 'https://apple-pay-gateway-cert.apple.com/paymentservices/registerMerchant' --header 'Content-Type: application/json' --data '{ "domainNames": "https://checkout.dev.sandbox-netvalve.com", "encryptTo": "platformintegrator.com.netvalve.uat", "partnerInternalMerchantIdentifier": "merchant.test.netvalve", "partnerMerchantName": "Test" }'
Response: { "statusMessage": "Payment Services Exception invalid or Malformed Json Received", "statusCode": "400" }
Hi @wrehman,
The following documentation contains an example JSON object for the /registerMerchant endpoint:
RegisterMerchantRequest
https://developer.apple.com/documentation/applepaywebmerchantregistrationapi/registermerchantrequest
Specifically, the following payload:
{
"domainNames" : [
"subdomain-1.example.com",
"subdomain-2.example.com"
],
"partnerMerchantName" : "Example Merchant",
"partnerInternalMerchantIdentifier": "ABC-123456",
"encryptTo" : "platformintegrator.com.example",
"merchantUrl": "https://example.com"
}
Cheers,
Paris X Pinkney | WWDR | DTS Engineer