Getting when testing MLE enabled API on postman

Solved! Go to solution
Chefane
Helper

Getting when testing MLE enabled API on postman

I am curently testing MLE on postman using request to pay API (initaiate transaction) I have configured everything correctly, but I am getting an error pointing to the payload. I am using MLE endpoints namely encrypt, VDRequest and decrypt, when encrypting, everything works fine, I can get the output which is encrypted data, but when validating it, I get an error, below is my payload:

{
"product": "VD",
"useCase": "P2P",
"paymentRequests": [
{
"debtorLastName": "B.",
"debtorAlias": "+447709123457",
"debtorAgentCountry": "UA",
"debtorCountry": "UA",
"requestedAmount": "100.00",
"requestedAmountCurrency": "UAH",
"endToEndId": "RFPid0001",
"debtorFirstName": "John",
"debtorAgentId": "VD123445",
"debtorAliasType": "MOBL"
}
],
"dueDate": "2021-03-17",
"requestMessageId": "GG9983636387737JH",
"settlementOptions": [
{
"settlementSystem": "VISA_DIRECT",
"primaryAccountNumber": "4145124125553228"
}
],
"creditor": {
"creditorCountry": "UA",
"creditorAgentId": "12379879797989",
"creditorAgentCountry": "UA",
"creditorAlias": "+1231231234",
"creditorLastName": "F.",
"creditorAliasType": "MOBL",
"creditorId": "BL1234567890",
"creditorIdType": "Agent",
"creditorFirstName": "Alex"
},
"creationDateTime": "2024-03-03T13:50:47Z"
}   this payload can get encrypted but when using VDRequest I am gettting below error:
{
"timestamp": 1709466577960,
"path": "/edge/api/internal/v1/requestToPay",
"status": 400,
"error": "Bad Request",
"requestId": "1b52cfb7-137630"
}
any recomendation on what causes this.
2 REPLIES 2
SyedSa
Community Moderator

Re: Getting when testing MLE enabled API on postman

Hi @ChefaneThank you for reaching out. One of our agents will look into this and get back to you soon. Until then, if any community members know a solution, please feel free to reply to this thread.

API_Products
Visa Developer Support Specialist

Re: Getting when testing MLE enabled API on postman

Hi @Chefane,

 

You can refer to the Visa Developer Error Codes page for the cause/resolution. I've copied and pasted the 400 error code cause/resolution for you below. 

Payload and URI Error Codes

HTTP STATUS HTTP CODE CAUSE/RESOLUTION

BAD REQUEST

400

This error could be due to a variety of reasons.

Check for the following:

  • The url has a space after the ?.
  • Whitespace issues, in general, anywhere in the url.
  • Ideally the following fields need to be checked for correctness:
    •  URL
    •  Query params

Or

  • The API endpoint you are trying to use only supports Two-Way SSL authentication. Please ensure you are not using any other token type.

Or

  • Invalid input found in the request payload.



Thanks,

Diana



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