Re: Testing visa direct request to pay Api

Chefane
Helper

Testing visa direct request to pay Api

I am currently trying to test request to pay initiate transaction api, I am encountering errors pointing to the payload provided. I am testing on postman and I have provided all the credentials needed. Below is what I did:
https://sandbox.api.visa.com/rtx/api/v1/requestToPay:

{
"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": "2020-12-17T09:30:47Z"
}
below is the response that I am getting:
{
"responseStatus": {
"code": "9501",
"severity": "ERROR",
"message": "Invalid input found, please correct the input data",
"info": "",
"status": "400"
}
}
the payload I am using is the one that was provided on the documentation.

 

5 REPLIES 5
jenn_kh
Community Moderator

Re: Testing visa direct request to pay Api

Hi @Chefane, Thank you for reaching out! An agent is looking into this for you and will 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: Testing visa direct request to pay Api

Hi @Chefane,

 

Please provide the information below so that we can investigate the error.

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

You can find the x-correlation-id in the response header.




Thanks,

Diana H.



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

Chefane
Helper

Re: Testing visa direct request to pay Api

enpoint: https://sandbox.api.visa.com/rtx/api/v1/requestToPay
request header:

Acceptapplication/json
Content-Typeapplication/json
AuthorizationBasic QjRXMUJJTzRBOTlZUVMyRjlSRVgyMWRkRVpfSEMteUJkcGx1YTFqZV9nWDdXSDdNODp3czNNcE42RnI1Mmg5M0xkQjI=
User-AgentPostmanRuntime/7.36.3
Postman-Token21bd3a4a-6528-4d3b-92dc-73b5c0120ba0
Hostsandbox.api.visa.com
Accept-Encodinggzip, deflate, br
Connectionkeep-alive
Content-Length989


request body:

{
  "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": "2020-12-17T09:30:47Z"
}
reponse  header: 
Servernginx
DateWed, 21 Feb 2024 06:17:14 GMT
Content-Typeapplication/json;charset=UTF-8
Content-Length141
Connectionkeep-alive
X-SERVED-BY-645f7b454g8
X-CORRELATION-ID1708496233_875_2012198279_-645f7b454g8_VDP_WS
X-ERROR-ORIGIN9900
x-app-status401
x-b3-traceid7a5829c8552623da8d47d22a9fd88935
x-b3-spanidb87b34b54fe56197
b37a5829c8552623da8d47d22a9fd88935-b87b34b54fe56197-1-bee8da192ff36e37
x-envoy-upstream-service-time47
Cache-Controlno-cache, no-store, must-revalidate
X-Frame-OptionsSAMEORIGIN
X-XSS-Protection0
X-Content-Type-Optionsnosniff
Strict-Transport-Securitymax-age=31536000;includeSubdomains
Pragmano-cache
Expires-1
reponse body:
{"responseStatus":{"code":"9501","severity":"ERROR","message":"Invalid input found, please correct the input data","info":"","status":"400"}}
API_Products
Visa Developer Support Specialist

Re: Testing visa direct request to pay Api

Hi @Chefane,

 

I've logged incident INC17751713 for the engineering team to investigate. We'll get back soon! 




Thanks,

Diana H.



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

API_Products
Visa Developer Support Specialist

Re: Testing visa direct request to pay Api

Hi @Chefane,

 

This is a business restriction. There is a process for onboarding customers for this API. Please submit your request to access and sandbox test this API product by emailing developer@visa.com




Thanks,

Diana H.



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