Skip to main content
Participant
July 25, 2018
Question

How does one link Webhook parameters to API results?

  • July 25, 2018
  • 1 reply
  • 461 views

I have successfully used the API to upload a transient document, use that document to create and agreement and have it notify the participant.

I created a webhook to update my system when the participant signs the document. Everything works fine but the AgreementID and DocumentIDs provided by the Webhook "parameters" do not match any values returned from the API when uploading the file or setting up the Agreement.

Based on current results, the IDs in the Webhook callback are basically just randomly generated and have no relation to anything.

Sample transientDocumentID (returned when pdf is uploaded through API [ POST /transientDocuments ]):

3AAABLblqZhAAnpiRlTbjyqgKc7LeA3mKVVUVdtIote4eOsHbxebHYUfxyHhl60v0Crh1kYGd4yJsuHMPmZhTdWZwet0Jqh9vsgTsFN_hzZ1fhIx6_VmMU2zZyv_VEVkC4zUG21kZ7O4aglUI3ifXiy9EohYGZ8NNtaVCfivQeKmiEW5o3RIZAORHWlhW0lzGk_YyRqdfnzh8pETVzbJsOBRZdmK7UPPv0EAFuChplMp6HwlHw9DLXk4cKAW7BA8nD33XQ76NLSa5miZ0Xp3zmqGZEXVwaqNIBRoFmMpI_CGUHKgjD_An8Xgq9o7iduAO3b-Avmlz5cglbf4YIW3izMukKxdZm1MqvOZuRLCxCOOB4qkBfXezTA**

Sample AgreementID (returned when creating an agreement [ POST /agreements]):

3AAABLblqZhDDdVRJ8RjuJLIpZoinMcZ_WRlpStLuJcfOgi6GJBwRuX2L4q0U4o9CQa0LOGqjLUFir1qDsN7ErsR2B6c6J9il

Values returned in Webhook callback:

AgreementID:

CBJCHBCAABAA8b9lEs6TH0Cxr9usQTZEWTPSn3ZSuzls

DocumentId:

3AAABLblqZhCHI8UJehxreOAJb_IkZVSAGfJAzg-nyHB_a-CeenUjyCuarNL5ed_vq4yterDkAkASi1_2S65f8DNvfvwtfh7B

With garbage data like this, there is no way to link a webhook call to a document or agreement. What gives?

This topic has been closed for replies.

1 reply

Participant
February 1, 2021

Hi there!

I have the same question as you: how to match webhook result with an agreementId ?

Did you found out already @ryanh24908296  or is there anyone else who can support? 

Thanks in advance!

 

Participant
February 1, 2021

I found it: upgrade to API v6.

 

apparently the webhook returns api v6 agreementId's, whereas my application was performing v5 api calls.