vctc/customerrules/v3/consumertransactioncontrols/customer/notificationInquiry

Solved! Go to solution
aminarais
Helper

vctc/customerrules/v3/consumertransactioncontrols/customer/notificationInquiry

Hello,

i am trying to call this api 

vctc/customerrules/v3/consumertransactioncontrols/customer/notificationInquiry

i am using mutual auth and sending

vctc/customerrules/v3/consumertransactioncontrols/customer/notificationInquiry

{
   "pagination": {
    "pageLimit": "10",
    "startIndex": "1"
  }, 
  "timeRange": {
    "startTime": "2022-07-10 10:46:00.407",
    "endTime": "2022-7-10 10:46:00.407"
  } 
}
but it's returning 
{
    "responseStatus": {
        "status": 401,
        "code": "9207",
        "severity": "ERROR",
        "message": "Token validation failed",
        "info": ""
    }
}
i saw in other post that u should encrypt the payload MLE but i don't know how to send it, can you please help me with that and give me an exemple 
X-CORRELATION-ID1689011442_148_649234532_-697d9-4_VDP_WS
2 REPLIES 2
jenn_kh
Community Moderator

Re: vctc/customerrules/v3/consumertransactioncontrols/customer/notificationInquiry

Thank you for your question, @aminarais! An agent will get back to you soon. In the meantime, if any community member knows the solution, please reply to this thread.

API_Products
Visa Developer Support Specialist

Re: vctc/customerrules/v3/consumertransactioncontrols/customer/notificationInquiry

Hi @aminarais,

 

I ran a sandbox test using the Visa Developer Center Playground tool and got a successful request/response payload. Please see my sample request/response payload below.

Note: You can enable Proxy feature and enter in the Host and Port if you're using VPN. Also, make sure to use your own public key and private key for both the Mutual SSL Certs and MLE. 

 

End Point https://sandbox.api.visa.com/vctc/customerrules/v3/consumertransactioncontrols/customer/notification...
Method POST
Request
{
"pagination": {
"pageLimit": "10",
"startIndex": "1"
},
"includeAlertDetails": true,
"includeMerchantDetails": true,
"primaryAccountNumbers": ["4514170000000001"],
"paymentTokens": ["1234567891234567891"],
"timeRange": {
"startTime": "2023-06-05 07:29:17",
"endTime": "2023-06-05 07:29:17"
},
"documentIds": [
"ctc-ip-98b195ed-138f-49a5-bc4e-cdc986e79960",
"ctc-ip-98b195ed-138f-49a5-bc4e-cdc986e79960"
]
}
Response
{
"receivedTimestamp": "2023-07-11 22:31:31.993",
"resource": {"notificationDetails": []},
"processingTimeinMs": 214
}
Response Header
Status Code: 200
Server : nginx
Date : Tue, 11 Jul 2023 22:31:32 GMT
Content-Type : application/json;charset=UTF-8
Content-Length : 676
Connection : keep-alive
X-SERVED-BY : -697d9q5
X-CORRELATION-ID : 1689114691_719_502844241_-697d9q5_VDP_WS
X-APP-STATUS : 200
X-Backside-Transport : OK OK,OK OK
Cache-Control : no-cache, no-store, must-revalidate
Pragma : no-cache
Expires : -1
Accept : application/json
X-Global-Transaction-ID : 18dcb9c464add8432e0725c1
encrypted : true
Content-Language : en-US
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 0
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000;includeSubdomains
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;
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;
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;
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000;includeSubdomains;always

 

20230711 VTC Customer Rules V3 Notification Inquiry 200OK.png




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.