Getting Http status 500 with error code 9002. when using the payload supplied under search terminated merchant api.
https://sandbox.api.visa.com/vmss/v2/searchTerminatedRequest
< HTTP/1.1 500
< Server: nginx
< Date: Mon, 04 Nov 2024 12:56:06 GMT
< Content-Type: application/json;charset=UTF-8
< Content-Length: 110
< Connection: keep-alive
< X-SERVED-BY: -7c479c7889q4
< X-CORRELATION-ID: 1730724956_230_1003685754_-7c479c7889q4_VDP_WS
< X-ERROR-ORIGIN: 9200
< X-APP-STATUS: 500
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 0
< X-Content-Type-Options: nosniff
< Strict-Transport-Security: max-age=31536000;includeSubdomains
< Cache-Control: no-cache, no-store, must-revalidate
< Pragma: no-cache
< Expires: -1
Hi @wernerc, Thank you for reaching out. An agent will look into this and get back to you soon. Until then, if any community member knows a solution, feel free to reply in this thread.
Hey @wernerc,
To resolve the issue of receiving a 500 HTTP status with error code 9002 when using the `searchTerminatedRequest` with the Visa Merchant Screening Service API, follow these steps:
1. Verify Your Payload:
Ensure that the payload you are sending is correctly formatted and contains all the required fields. Refer to the Visa Merchant Screening Service API documentation at https://developer.visa.com/capabilities/vmss/docs for the correct payload structure.
2. Check API Credentials:
Confirm that your API credentials (API Key, Shared Secret) are correct and have the necessary permissions. Incorrect credentials can result in server errors.
3. Inspect HTTP Headers:
Ensure that you are setting the correct HTTP headers, including `Content-Type: application/json` and the correct authorization header.
4. Review Sandbox Environment:
Verify that you are using the correct endpoint for the sandbox environment. The URL should be `https://sandbox.api.visa.com/vmss/v2/searchTerminatedRequest`.
5. Consult API Logs:
Use the correlation ID from the response (`X-CORRELATION-ID: 1730724956_230_1003685754_-7c479c7889q4_VDP_WS`) to look up logs in the Visa Developer portal. This can provide more specific insights into the error.
6. Error Code 9002:
According to the Visa documentation, error code 9002 typically indicates an issue with the server. However, it can also occur due to malformed requests or missing required fields in the payload.
Here is a sample JSON payload for the `searchTerminatedRequest` that you can use as a reference:
```json
{
"requestHeader": {
"messageDateTime": "2024-11-04T12:56:06Z",
"requestMessageId": "VCO_GMR_001"
},
"merchantDetails": {
"merchantName": "ABC Store",
"merchantCountryCode": "840",
"merchantCity": "San Francisco"
}
}
```
Replace the placeholder values with actual data.
If the problem persists, please provide screenshots of the errors and the following information:
1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body