Re: Getting Error while trying to test Visa Direct API using Postman
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Getting Error while trying to test Visa Direct API using Postman
I just made an account to play around with the Visa Direct API.
https://developer.visa.com/capabilities/visa_direct/reference
When I click run it works there so I wanted to test it in Postman. I copied that body and pasted it into the postman body. In the header I added my credentials but I keep getting this error.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Getting Error while trying to test Visa Direct API using Postman
Hi @yibs,
To further investigate, please provide the following information:
1. End Point URL
2. Request Header
3. Request Body
4. Response Header
5. Response Body
If you can attach screenshots of the Postman screen showing the error, that would be very helpful.
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Getting Error while trying to test Visa Direct API using Postman
This is what I have on Postman
The body I use for my request is from here
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Getting Error while trying to test Visa Direct API using Postman
Hi @yibs,
I just tried the Visa Direct API (https://sandbox.api.visa.com/visadirect/mvisa/v1/cashinpushpayments) and got a response successfully. Please see request/response details below. Please also reference this page for Postman setup: https://community.developer.visa.com/t5/Use-Cases/APIs-for-payment-gateway-9124-error/m-p/10461#M114
End Point https://sandbox.api.visa.com/visadirect/mvisa/v1/cashinpushpayments
Method POST
Request
{
"amount": "124.05",
"localTransactionDateTime": "2019-08-28T20:35:51",
"recipientPrimaryAccountNumber": "4123640062698797",
"cardAcceptor": {
"address": {
"country": "IN",
"city": "Bangalore"
},
"idCode": "ID-Code123",
"name": "Test Merchant"
},
"senderReference": "1234",
"acquirerCountryCode": "643",
"acquiringBin": "400171",
"retrievalReferenceNumber": "430000367618",
"systemsTraceAuditNumber": "313042",
"senderName": "Mohammed Qasim",
"businessApplicationId": "CI",
"merchantCategoryCode": "6012",
"transactionCurrencyCode": "840",
"senderAccountNumber": "4541237895236"
}
Response
{
"transmissionDateTime": "2019-08-28T20:38:20.000Z",
"approvalCode": "21324K",
"transactionIdentifier": 142364194068951,
"actionCode": "00",
"retrievalReferenceNumber": "430000367618",
"responseCode": "5"
}
Response Header
Status Code: 200 OK
Server : nginx
Content-Type : application/json
Content-Length : 194
X-SERVED-BY : l55c015
X-CORRELATION-ID : 1567024700_640_1750390527_l55c015_VDP_WS
X-Backside-Transport : OK OK,OK OK
X-APP-STATUS : 200
X-Global-Transaction-ID : de8c0d945d66e63c121ec5e5
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, 28 Aug 2019 20:38:20 GMT
Connection : keep-alive
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Getting Error while trying to test Visa Direct API using Postman
After referring to the postman link and setting it up I now get this error,
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Getting Error while trying to test Visa Direct API using Postman
Hi @yibs,
Please check your Postman Settings and make sure on the Proxy tab "Use System Proxy" is set to On.
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Getting Error while trying to test Visa Direct API using Postman
Can you send your client code that generated the x-pay token, once we have that this can be looked into.