baradmahendra | Posts: 11

Callback Notifications

0 votes
Hello i have registered callback url with this code and it's registered successfully i in response json on callbackurl i have get the {} dict when package is created. is there sometinh missing??? url = "%s/callback" % self.API_ENDPOINT data = { "url":"%s/esign_silanis/silanis_callback" % my_url "key":"", "events":["PACKAGE_CREATE","PACKAGE_DECLINE","PACKAGE_COMPLETE"] }; try: resp = requests.post(url, headers=self.header, data=json.dumps(data)) except Exception: _logger.exception('An error has occurred while trying to connect to e-SignLive service') raise ValidationError(_('An error has occurred while trying to connect to e-SignLive service')) Thanks

harishaidary | Posts: 1812

Reply to: Callback Notifications

0 votes
Hey there, When making your POST call, what is the url you are making your request to? Also, what are the headers? Have a look at the REST API section of this blog. It'll show you how to setup callback notifications.

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off