Re: Customer Rules API - Update the App's configuration data for notification callback settings Issu

Solved! Go to solution
JavierSivack
Regular Contributor

Customer Rules API - Update the App's configuration data for notification callback settings Issue

Hello, I'm implementing Customer Rules API - Update the App's configuration data for notification callback settings.

It is responding something I do not get how to fix.

This is my Postman log:

PUT /vctc/customerrules/v1/applications/configuration?apiKey=MY_KEY HTTP/1.1
x-pay-token: xv2:1632513383:b7243b36783580e4f36fc4bdcd91c775a674675d9da45c6c4829eb2d0d123efd
Accept: application/json
Content-Type: application/json
User-Agent: PostmanRuntime/7.28.4
Postman-Token: 61d40957-cf74-454d-9709-d1400266e5a9
Host: sandbox.api.visa.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 160
 
{
"callBackSettings": {
"callBackEndpoint": "https://myhost.com/notifications",
"isCallBackEndpointLocal": true,
"isCallBackDisabled": false
}
}
 
HTTP/1.1 400 Bad Request
Server: nginx
Date: Fri, 24 Sep 2021 19:56:23 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 164
Connection: keep-alive
X-SERVED-BY: l73c015
X-CORRELATION-ID: 1632513383_616_773540397_l73c015_VDP_WS
X-Backside-Transport: FAIL FAIL,FAIL FAIL
Cache-Control: no-cache, no-store, must-revalidate
Expires: -1
Pragma: no-cache
X-Global-Transaction-ID: 69536f0d614e2d67085709d7
X-APP-STATUS: 400
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Cnection: close
 
{"metainfo":{"Description":"Bad Request","Code":400},"error":["If isCallBackDisabled is not true then callback url and iscallBackEndpointLocal flag is mandatory."]}

If I change isCallBackDisabled to true, it works. But with false, it responde these error, despite that info is in the request.

Any idea what can be going on? 

Thanks.

 


Javier Sivack
Software Engineer
Ciphertext Solutions, Inc.
2 REPLIES 2
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Customer Rules API - Update the App's configuration data for notification callback settings Issu

Hi @JavierSivack,

 

Please use "iscallBackEndpointLocal" in the request. You should get a response as below:

 

End Point https://sandbox.api.visa.com/vctc/customerrules/v1/applications/configuration
Method PUT
Request
{"callBackSettings": {
"callBackEndpoint": "https://myhost.com/notifications",
"iscallBackEndpointLocal": false,
"isCallBackDisabled": false
}}


Response
{
"receivedTimestamp": "2021-09-24 20:45:40.695",
"resource": {
"callBackSettings": {
"callBackEndpoint": "https://myhost.com/notifications",
"iscallBackEndpointLocal": false,
"isCallBackDisabled": false
},
"status": "CONFIGURED"
},
"processingTimeinMs": 49
}

 


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.
JavierSivack
Regular Contributor

Re: Customer Rules API - Update the App's configuration data for notification callback settings Issu

Hi Stacey,

I'm sorry, it was just a capital letter error. 

Thanks!


Javier Sivack
Software Engineer
Ciphertext Solutions, Inc.