Visa Developer Community

Highlighted
Helper

Getting Error API Internal Error: 1001. Please contact your Visa Representative

I am working on Mvisa  Merchandise API  on sandbox.I had tried like 10 times but i kept getting  the error : {
"errorMessage" : "Message has failed validation: merchantCategoryCode: Invalid content found starting with element 'merchantCategoryCode'"
}

https://sandbox.api.visa.com/visadirect/mvisa/v1/mr

 I picked my json and added it on the sandbox test console which returned success but on my environment it returned the above error.Now i am getting the following error every time i attempt to make the reversal:-

 

{
"errorMessage" : "API Internal Error: 1001. Please contact your Visa Representative."
}

 

 

11 REPLIES 11
Visa Dev Moderator
Visa Dev Moderator

Re: Getting Error API Internal Error: 1001. Please contact your Visa Representative

Hi @JbJopito,

 

I'm sorry that you are having problems with mVisa Merchandise API in sandbox.

 

In order to investigate can you please provide me the following information:

  • End Point URL
  • Request Header
  • Request Body
  • Response Header (include the x-correlation-id)
  • Response Body

I will take a look and get back to you soon.

 


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Visa Dev Moderator
Visa Dev Moderator

Re: Getting Error API Internal Error: 1001. Please contact your Visa Representative

Hi @JbJopito,

 

I tested the mVisa Merchandise Return API and was able to get a response successfully. Please see below for detailed request and response.

 

End Point https://sandbox.api.visa.com/visadirect/mvisa/v1/mr

 

Method POST

Request
{
"systemsTraceAuditNumber": "313223",
"amount": "1200",
"localTransactionDateTime": "2019-07-10T21:36:38",
"recipientPrimaryAccountNumber": "4761360055652118",
"merchantCategoryCode": "6012",
"transactionCurrencyCode": "INR",
"cardAcceptor": {
"address": {
"country": "IND",
"city": "BGLR"
},
"idCode": "VMT200911086070",
"name": "Mr. ABC"
},
"acquirerCountryCode": "643",
"retrievalReferenceNumber": "430000367722",
"acquiringBin": "400171"
}

 

Response
{
"transmissionDateTime": "2019-07-10T21:41:38.393",
"approvalCode": "21324K",
"transactionIdentifier": 148231096112576,
"cardAcceptor": {
"idCode": "IDCode",
"name": " Mr ABC",
"terminalId": "TERMID01"
},
"actionCode": "00",
"retrievalReferenceNumber": "430000367722",
"responseCode": "5"
}

 

Response Header
Status Code: 200 OK
Server : nginx
Content-Type : application/json
Content-Length : 269
X-SERVED-BY : l73c013
X-CORRELATION-ID : 1562794898_323_2077717867_l73c013_VDP_WS
X-Backside-Transport : OK OK,OK OK
X-APP-STATUS : 200
X-Global-Transaction-ID : 213119673
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=2592000;includeSubdomains
Cache-Control : no-cache, no-store, must-revalidate
Pragma : no-cache
Expires : -1
Date : Wed, 10 Jul 2019 21:41:38 GMT
Connection : keep-alive

 

Please make sure that you are using the correct test data for this API from the Test Data tab of your sandbox project. If you continue to get the error, please provide the following information for me to investigate further.

1. End Point URL
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body

 

 


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Helper

Re: Getting Error API Internal Error: 1001. Please contact your Visa Representative

Here is the response:-

Response Headers:
X-SERVED-BY: l73c013
X-CORRELATION-ID: 1562844435_920_35746819_l73c013_VDP_WS
X-Backside-Transport: FAIL FAIL,FAIL FAIL
X-APP-STATUS: 500
X-Application-Error-Code: 1001
X-Global-Transaction-ID: 2598425777
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=2592000;includeSubdomains
Pragma: no-cache
X-Cnection: close
Connection: close
Content-Length: 91
Cache-Control: no-cache, no-store, must-revalidate
Content-Type: application/json
Date: Thu, 11 Jul 2019 11:27:16 GMT
Expires: -1
Server: nginx

 

 

Request Headers :
Content-Type: application/json
Accept: application/json
Host: sandbox.api.visa.com
Authorization: Basic xxxxx
ex-correlation-id: 84ZIWDO6ODC8_SC
Content-Length: 468
Expect: 100-continue
Connection: Keep-Alive

 

Response BODY:
{
"errorMessage" : "API Internal Error: 1001. Please contact your Visa Representative."
}

 

 

Request Body:

{
"systemsTraceAuditNumber": "313223",
"retrievalReferenceNumber": "430000367722",
"amount": 1200.0,
"localTransactionDateTime": "2019-07-10T21:36:38",
"merchantCategoryCode": "6012",
"acquiringBin": "400171",
"recipientPrimaryAccountNumber": "4761360055652118",
"acquirerCountryCode": "643",
"transactionCurrencyCode": "INR",
"cardAcceptor": {
"name": "Mr.ABC",
"address": {
"country": "IND",
"state": "",
"zipCode": "",
"county": "",
"city": "BGLR"
},
"terminalId": "REF121",
"idCode": "VMT200911086070"
}
}
 
 

 

 

Helper

Re: Getting Error API Internal Error: 1001. Please contact your Visa Representative

Here is the latest response still 

 

URL : 

https://sandbox.api.visa.com/visadirect/mvisa/v1/mr

{
"errorMessage" : "API Internal Error: 1001. Please contact your Visa Representative."
}

 

{
"systemsTraceAuditNumber": "919066",
"retrievalReferenceNumber": "919016550569",
"amount": 50.0,
"localTransactionDateTime": "2019-07-09T02:15:46",
"merchantCategoryCode": "6012",
"acquiringBin": "400171",
"recipientPrimaryAccountNumber": "4761360036758752",
"acquirerCountryCode": "643",
"transactionCurrencyCode": "INR",
"cardAcceptor": {
"name": "Mr.ABC",
"address": {
"city": "BGLR",
"country": "IND"
},
"terminalId": "REF121",
"idCode": "VMT200911086070"
}
}
Visa Dev Moderator
Visa Dev Moderator

Re: Getting Error API Internal Error: 1001. Please contact your Visa Representative

Hi @JbJopito,

 

I have a few additional questions.

1. You mentioned that in sandbox console, the API returned success, but in your environment, it returned error. What is the environment the you are referring to?

2. Are you using the SOAPUI tool to test the API?

3. Is Merchandise Refund (https://sandbox.api.visa.com/visadirect/mvisa/v1/mr) the only API with errors?

 

 

 

 

 


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Helper

Re: Getting Error API Internal Error: 1001. Please contact your Visa Representative

Hi Stacey,

 

I am testing the merchandise api directly from my hosted server application on iis. The other APIS are working okay and i can do AFT Pull ,Push,and P2M Successfully from the hosted appplication.Only the merchandise reversal is the one failing. i.e https://sandbox.api.visa.com/visadirect/mvisa/v1/mr

 

I am not testing it from SOAP UI but directly from my hosted application.

Visa Dev Moderator
Visa Dev Moderator

Re: Getting Error API Internal Error: 1001. Please contact your Visa Representative

Hi @JbJopito,

 

Since I don't have access to your testing environment, can you please use SoapUI to test instead?

Here is the link to setup SoapUI: 

https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#testing_twoway_ssl_connectivity_...

 

TestVDWSoapUI.png

 


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Helper

Re: Getting Error API Internal Error: 1001. Please contact your Visa Representative

Hi Stacey,

 

Here the response from soap UI.

 

Below is the request body:-

 

{
"systemsTraceAuditNumber": "313223",
"retrievalReferenceNumber": "430000367722",
"recipientPrimaryAccountNumber": "4761360055652118",
"amount": "124.05",
"localTransactionDateTime": "2019-07-12T09:18:33",
"acquiringBin": "400171",
"acquirerCountryCode": "643",
"transactionCurrencyCode": "USD",
"merchantCategoryCode": "6012",
"cardAcceptor": {
"name": "CA123",
"idCode": "ID-Code123",
"address": {
"city": "BGLR",
"country": "IND"
}
}
}

 

Visa Error.PNG

Helper

Re: Getting Error API Internal Error: 1001. Please contact your Visa Representative

I tried to create a new project on VDP and generated new certificate as per the guidelines and then tested on soap ui.On SOAPUI i was able to get the response as shown below using the new credentials.It seems the Mvisa Reversal Endpoint is the one having issues  on the old credentials am using since it works well on newly generated credentials.

 

I would appreciate if you can try to follow up and see whether its something which can be fixed on the old credentials and certificate am using.Attached is a sample response from soap ui.

 

 

 

Visa Error.PNG