Re: API Activation Failed

Solved! Go to solution
smeet
Helper

API Activation Failed

I am new to Visa development. As described in getting started, I created an application and added API "Visa Global ATM Locator". The API request is processed by VISA, but I am getting authorization failed error. When I am calling API, instead of getting responce 200, I am getting response 403.

In Keys / APIs section I can see red circle before API name, I assume it means failed, screenshot attached.

 

3 REPLIES 3
ricardo_visa
Community Scholar

Re: API Activation Failed

Hi smeet, 

 

Can you send your request data so we can take a look at it?

 

Thank you,

Ricardo 




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

Re: API Activation Failed

Dear Ricardo,

Thanks for your reply, I am using sample application provided by VISA.

Please find below Request and Responce.

Also, when I searched in forum I found simillar case, link below:

https://community.developer.visa.com/t5/General/Visa-CyberSource-API-returns-403-error-with-9611-cod...

 

Running com.visa.vdp.atmlocator.TestLocateATM
2017-01-12 14:17:05 INFO VisaAPIClient:200 - Request Headers:

2017-01-12 14:17:05 INFO VisaAPIClient:203 - Content-Type:application/json
2017-01-12 14:17:05 INFO VisaAPIClient:203 - Accept:application/json
2017-01-12 14:17:05 INFO VisaAPIClient:203 - Authorization:Basic base64Encode(userId from Credientials section + ":" + password from Credientials section)
2017-01-12 14:17:05 INFO VisaAPIClient:203 - x-correlation-id:DxwWunUimO_SC
2017-01-12 14:17:05 INFO VisaAPIClient:209 - URI: https://sandbox.api.visa.com/globalatmlocator/v1/localatms/atmsinquiry
2017-01-12 14:17:05 INFO VisaAPIClient:210 - Locate ATM Test
2017-01-12 14:17:05 INFO VisaAPIClient:214 - RequestBody: {
"requestData" : {
"culture" : "en-US",
"distance" : "20",
"distanceUnit" : "mi",
"location" : {
"address" : null,
"geocodes" : null,
"placeName" : "800 metro center , foster city,ca"
},
"metaDataOptions" : 0,
"options" : {
"findFilters" : [ {
"filterName" : "PLACE_NAME",
"filterValue" : "FORT FINANCIAL CREDIT UNION|ULTRON INC|U.S. BANK"
}, {
"filterName" : "OPER_HRS",
"filterValue" : "C"
}, {
"filterName" : "AIRPORT_CD",
"filterValue" : ""
}, {
"filterName" : "WHEELCHAIR",
"filterValue" : "N"
}, {
"filterName" : "BRAILLE_AUDIO",
"filterValue" : "N"
}, {
"filterName" : "BALANCE_INQUIRY",
"filterValue" : "N"
}, {
"filterName" : "CHIP_CAPABLE",
"filterValue" : "N"
}, {
"filterName" : "PIN_CHANGE",
"filterValue" : "N"
}, {
"filterName" : "RESTRICTED",
"filterValue" : "N"
}, {
"filterName" : "PLUS_ALLIANCE_NO_SURCHARGE_FEE",
"filterValue" : "N"
}, {
"filterName" : "ACCEPTS_PLUS_SHARED_DEPOSIT",
"filterValue" : "N"
}, {
"filterName" : "V_PAY_CAPABLE",
"filterValue" : "N"
}, {
"filterName" : "READY_LINK",
"filterValue" : "N"
} ],
"operationName" : "or",
"range" : {
"count" : 99,
"start" : 0
},
"sort" : {
"direction" : "desc",
"primary" : "city"
},
"useFirstAmbiguous" : true
}
},
"wsRequestHeaderV2" : {
"applicationId" : "VATMLOC",
"correlationId" : "909420141104053819418",
"requestMessageId" : "test12345678",
"requestTs" : "2017-01-12T14:17:05.578Z",
"userBid" : "0",
"userId" : "0"
}
}
2017-01-12 14:17:08 INFO VisaAPIClient:173 - Response status : HTTP/1.1 403 Forbidden

2017-01-12 14:17:08 INFO VisaAPIClient:175 - Response Headers:

2017-01-12 14:17:08 INFO VisaAPIClient:178 - X-SERVED-BY:l73c036m
2017-01-12 14:17:08 INFO VisaAPIClient:178 - X-APP-STATUS:403
2017-01-12 14:17:08 INFO VisaAPIClient:178 - X-CORRELATION-ID:DxwWunUimO_SC
2017-01-12 14:17:08 INFO VisaAPIClient:178 - X-Frame-Options:SAMEORIGIN
2017-01-12 14:17:08 INFO VisaAPIClient:178 - X-XSS-Protection:1; mode=block
2017-01-12 14:17:08 INFO VisaAPIClient:178 - X-Content-Type-Options:nosniff
2017-01-12 14:17:08 INFO VisaAPIClient:178 - Strict-Transport-Security:max-age=2592000;includeSubdomains
2017-01-12 14:17:08 INFO VisaAPIClient:178 - Cache-Control:no-cache, no-store, must-revalidate
2017-01-12 14:17:08 INFO VisaAPIClient:178 - Pragma:no-cache
2017-01-12 14:17:08 INFO VisaAPIClient:178 - Expires:Thu, 01 Jan 1970 00:00:00 GMT
2017-01-12 14:17:08 INFO VisaAPIClient:178 - Content-Security-Policy-Report-Only:default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
2017-01-12 14:17:08 INFO VisaAPIClient:178 - X-Content-Security-Policy-Report-Only:default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
2017-01-12 14:17:08 INFO VisaAPIClient:178 - X-WebKit-CSP-Report-Only:default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
2017-01-12 14:17:08 INFO VisaAPIClient:178 - Content-Type:application/json;charset=UTF-8
2017-01-12 14:17:08 INFO VisaAPIClient:178 - Content-Length:122
2017-01-12 14:17:08 INFO VisaAPIClient:178 - Date:Thu, 12 Jan 2017 08:47:08 GMT
2017-01-12 14:17:08 INFO VisaAPIClient:178 - Connection:close
2017-01-12 14:17:08 INFO VisaAPIClient:179 -
Response Body:
2017-01-12 14:17:08 INFO VisaAPIClient:186 - ResponseBody: {
"responseStatus" : {
"code" : "9611",
"severity" : "ERROR",
"info" : "",
"status" : 403,
"message" : "Authorization Failed for the URL."
}
}

smeet
Helper

Re: API Activation Failed

Dear Ricardo,

We figured out what wen wrong. Actually, we were using default CSR without filling all the details to be mentioned here Click Here to Modify Default Values hence all our API were getting failed. 

 

Thank you