My docusign webhook api calls work in developer account but they fail in prod account giving me KeyErrors in prod. Why is it different and when was this change made?
Here’s how the dev response looks like:
```
{
"status": "completed",
"documentsUri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/documents",
"recipientsUri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/recipients",
"attachmentsUri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/attachments",
"envelopeUri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd",
"emailSubject": "Please review your solar contract",
"envelopeId": "8554a84b-c12e-4d66-a3ae-asdasasd",
"signingLocation": "online",
"customFieldsUri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/custom_fields",
"notificationUri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/notification",
"enableWetSign": "true",
"allowMarkup": "false",
"allowReassign": "true",
"createdDateTime": "2025-07-04T09:03:25.477Z",
"lastModifiedDateTime": "2025-07-04T09:03:25.493Z",
"deliveredDateTime": "2025-07-04T09:03:42.123Z",
"initialSentDateTime": "2025-07-04T09:03:26.133Z",
"sentDateTime": "2025-07-04T09:03:42.123Z",
"completedDateTime": "2025-07-04T09:03:42.123Z",
"statusChangedDateTime": "2025-07-04T09:03:42.123Z",
"documentsCombinedUri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/documents/combined",
"certificateUri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/documents/certificate",
"templatesUri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/templates",
"expireEnabled": "true",
"expireDateTime": "2025-11-01T09:03:26.133Z",
"expireAfter": "120",
"sender": {
"userName": "neel patel",
"userId": "e8508dd1-a4e3-43ca-8a96-2f2c7b0313ac",
"accountId": "61f60c05-ebce-407e-933a-b1de1d5358dd",
"email": "neel@xyz.com",
"ipAddress": "3.24.228.53"
},
"recipients": {
"signers": s
{
"signatureInfo": {
"signatureName": "neel patel",
"signatureInitials": "NP",
"fontStyle": "docusign7"
},
"creationReason": "sender",
"isBulkRecipient": "false",
"requireUploadSignature": "false",
"name": "neel patel",
"email": "neelzyx@gmail.com",
"recipientId": "1",
"recipientIdGuid": "5b008d47-37e4-4f84-b944-c9ffc5250679",
"requireIdLookup": "false",
"userId": "2729c0cd-ae5d-4a11-90a4-95e1acd751c5",
"clientUserId": "1000",
"routingOrder": "1",
"status": "completed",
"completedCount": "1",
"signedDateTime": "2025-07-04T09:03:40.937Z",
"deliveredDateTime": "2025-07-04T09:03:34.203Z",
"sentDateTime": "2025-07-04T09:03:26.057Z",
"deliveryMethod": "email",
"recipientType": "signer"
}
],
"agents": s],
"editors": s],
"intermediaries": s],
"carbonCopies": s
{
"name": "neel",
"email": "neel199907@gmail.com",
"recipientId": "10",
"recipientIdGuid": "cca852f8-457b-494f-90e5-2839e03e9bd5",
"requireIdLookup": "false",
"userId": "77ad4e01-e816-4745-b04e-cebad26fce94",
"routingOrder": "2",
"status": "completed",
"completedCount": "0",
"sentDateTime": "2025-07-04T09:03:42.093Z",
"deliveryMethod": "email",
"recipientType": "carboncopy"
}
],
"certifiedDeliveries": s],
"inPersonSigners": s],
"seals": s],
"witnesses": s],
"notaries": s],
"recipientCount": "2",
"currentRoutingOrder": "1"
},
"envelopeDocuments": s
{
"documentId": "1",
"documentIdGuid": "be6f0855-5285-46fd-9159-0b0e8f4208d4",
"name": "Solar Contract",
"type": "content",
"uri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/documents/1",
"order": "1",
"pages": s
{
"pageId": "f0a5c248-82b3-4d4f-8142-56ade15ac191",
"sequence": "1",
"height": "841",
"width": "595",
"dpi": "72"
}
],
"display": "inline",
"includeInDownload": "true",
"signerMustAcknowledge": "no_interaction",
"templateRequired": "false",
"authoritativeCopy": "false"
},
{
"documentId": "certificate",
"documentIdGuid": "edf71c4f-9e50-4cf0-abb2-965bedb166eb",
"name": "Summary",
"type": "summary",
"uri": "/envelopes/8554a84b-c12e-4d66-a3ae-asdasasd/documents/certificate",
"order": "999",
"display": "inline",
"includeInDownload": "true",
"signerMustAcknowledge": "no_interaction",
"templateRequired": "false",
"authoritativeCopy": "false"
}
],
"purgeState": "unpurged",
"envelopeIdStamping": "true",
"is21CFRPart11": "false",
"signerCanSignOnMobile": "true",
"autoNavigation": "true",
"isSignatureProviderEnvelope": "false",
"uSigState": "esign",
"hasFormDataChanged": "false",
"allowComments": "true",
"hasComments": "false",
"allowViewHistory": "true",
"envelopeMetadata": {
"allowAdvancedCorrect": "true",
"enableSignWithNotary": "true",
"allowCorrect": "true"
},
"anySigner": null,
"envelopeLocation": "current_site",
"isDynamicEnvelope": "false",
"burnDefaultTabData": "false"
}
```
Here’s how the prod response looks like:
```
{
"event": "envelope-completed",
"apiVersion": "v2.1",
"uri": "/restapi/v2.1/accounts/8641fcce-5a1f-40d9-b51a-86630ec67883/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8",
"retryCount": 0,
"configurationId": 0,
"generatedDateTime": "2025-07-04T08:18:08.2386154Z",
"data": {
"accountId": "8641fcce-5a1f-40d9-b51a-86630ec67883",
"userId": "0265045e-2d79-4f09-83d4-05a167cbd751",
"envelopeId": "c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8",
"envelopeSummary": {
"status": "completed",
"documentsUri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/documents",
"recipientsUri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/recipients",
"attachmentsUri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/attachments",
"envelopeUri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8",
"emailSubject": "Please review your solar contract",
"envelopeId": "c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8",
"signingLocation": "online",
"customFieldsUri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/custom_fields",
"notificationUri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/notification",
"enableWetSign": "false",
"allowMarkup": "false",
"allowReassign": "true",
"createdDateTime": "2025-07-04T08:17:52.113Z",
"lastModifiedDateTime": "2025-07-04T08:17:52.13Z",
"deliveredDateTime": "2025-07-04T08:18:08.223Z",
"initialSentDateTime": "2025-07-04T08:17:52.77Z",
"sentDateTime": "2025-07-04T08:18:08.223Z",
"completedDateTime": "2025-07-04T08:18:08.223Z",
"statusChangedDateTime": "2025-07-04T08:18:08.223Z",
"documentsCombinedUri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/documents/combined",
"certificateUri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/documents/certificate",
"templatesUri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/templates",
"expireEnabled": "true",
"expireDateTime": "2025-11-01T08:17:52.77Z",
"expireAfter": "120",
"sender": {
"userName": "Neel Patel",
"userId": "0265045e-2d79-4f09-83d4-05a167cbd751",
"accountId": "8641fcce-5a1f-40d9-b51a-86630ec67883",
"email": "neel@xyz.com",
"ipAddress": "13.211.223.134"
},
"recipients": {
"signers": n
{
"signatureInfo": {
"signatureName": "neel patel",
"signatureInitials": "NP",
"fontStyle": "docusign7"
},
"creationReason": "sender",
"isBulkRecipient": "false",
"requireUploadSignature": "false",
"name": "neel patel",
"email": "neel@xyz.com",
"recipientId": "1",
"recipientIdGuid": "826ac49f-fe97-4caa-8861-055def85d964",
"requireIdLookup": "false",
"userId": "5b5dd04f-d141-47c0-b6f8-5b1b093f73ab",
"clientUserId": "1000",
"routingOrder": "1",
"status": "completed",
"completedCount": "1",
"signedDateTime": "2025-07-04T08:18:07.693Z",
"deliveredDateTime": "2025-07-04T08:18:00.99Z",
"sentDateTime": "2025-07-04T08:17:52.723Z",
"deliveryMethod": "email",
"recipientType": "signer"
}
],
"agents": e],
"editors": t],
"intermediaries": r],
"carbonCopies": p
{
"name": "neel",
"email": "neel@xyz.com",
"recipientId": "10",
"recipientIdGuid": "f3533f22-592e-4c9e-bc48-b28e8522971c",
"requireIdLookup": "false",
"userId": "0265045e-2d79-4f09-83d4-05a167cbd751",
"routingOrder": "2",
"status": "completed",
"completedCount": "0",
"sentDateTime": "2025-07-04T08:18:08.193Z",
"deliveryMethod": "email",
"recipientType": "carboncopy"
}
],
"certifiedDeliveries": r],
"inPersonSigners": n],
"seals": e],
"witnesses": s],
"notaries": r],
"recipientCount": "2",
"currentRoutingOrder": "1"
},
"envelopeDocuments": e
{
"documentId": "1",
"documentIdGuid": "10a2459c-2a9a-4f1d-a927-6df89b2f1f42",
"name": "Solar Contract",
"type": "content",
"uri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/documents/1",
"order": "1",
"pages": a
{
"pageId": "b2fcd6dd-f7a5-4797-b91e-cf5d2ecf4476",
"sequence": "1",
"height": "841",
"width": "595",
"dpi": "72"
}
],
"display": "inline",
"includeInDownload": "true",
"signerMustAcknowledge": "no_interaction",
"templateRequired": "false",
"authoritativeCopy": "false"
},
{
"documentId": "certificate",
"documentIdGuid": "96be4ced-bc89-4844-a432-bd0511df35dc",
"name": "Summary",
"type": "summary",
"uri": "/envelopes/c4db5557-a596-44dc-b0b0-e7dfd1a5c7e8/documents/certificate",
"order": "999",
"display": "inline",
"includeInDownload": "true",
"signerMustAcknowledge": "no_interaction",
"templateRequired": "false",
"authoritativeCopy": "false"
}
],
"purgeState": "unpurged",
"envelopeIdStamping": "true",
"is21CFRPart11": "false",
"signerCanSignOnMobile": "true",
"autoNavigation": "true",
"isSignatureProviderEnvelope": "false",
"hasFormDataChanged": "false",
"allowViewHistory": "true",
"envelopeMetadata": {
"allowAdvancedCorrect": "false",
"enableSignWithNotary": "false",
"allowCorrect": "false"
},
"anySigner": null,
"envelopeLocation": "current_site",
"isDynamicEnvelope": "false",
"burnDefaultTabData": "false"
}
}
}
```