-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApiErrorCode.cs
305 lines (179 loc) · 16.8 KB
/
ApiErrorCode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
namespace Bulksign.DomainLogic.Api
{
public static class ApiErrorCode
{
public const int API_CODE_SUCCESS = 0;
public const int API_ERROR_CODE_INTERNAL = -1;
public const string API_MESSAGE_INTERNAL = "Internal error";
public const int API_ERROR_CODE_NOT_ALLOWED_TO_CALL_API = 1;
public const string API_MESSAGE_NOT_ALLOWED_TO_CALL_API = "Your license does not allows you to call the Bulksign API";
public const int API_ERROR_CODE_MISSING_AUTHENTICATION = 2;
public const string API_MESSAGE_MISSING_AUTHENTICATION = "Missing authentication details";
public const int API_ERROR_CODE_INVALID_AUTHENTICATION = 3;
public const string API_MESSAGE_INVALID_AUTHENTICATION = "Invalid authentication details provided. If credentials are correct, please make sure the email address is validated";
public const int API_ERROR_CODE_INVALID_INPUT = 4;
public const string API_MESSAGE_INVALID_INPUT = "Input is invalid. Please check all parameter values to make sure they are correct";
public const int API_ERROR_CODE_OPERATION_FAILED = 5;
public const string API_MESSAGE_OPERATION_FAILED = "Operation failed";
public const int API_ERROR_CODE_NO_ACCESS = 6;
public const string API_MESSAGE_NO_ACCESS = "No access to ";
public const int API_ERROR_CODE_INVALID_PARAMETER = 7;
public const string API_MESSAGE_INVALID_PARAMETER = "Parameter '{0}' has invalid value";
public const int API_ERROR_FILE_TYPE_NOT_SUPPORTED = 8;
public const int API_ERROR_CODE_ENVELOPE_DOES_NOT_CONTAIN_SIGNATURE_FIELDS = 9;
public const int API_ERROR_CODE_TOO_MANY_OTPS = 10;
public const int API_ERROR_CODE_FIELD_ASSIGNED_UNREACHABLE_FILE = 11; //custom file share but recipient has field assigned in file to which it does not have access to
public const int API_ERROR_CODE_CUSTOM_FILE_SHARE_NORECIPIENT = 12; //custom file share but recipient has no files assigned
public const int API_ERROR_CODE_CUSTOM_FILE_SHARE_UNUSED = 13;
public const int API_ERROR_CODE_NO_FILE_SHARE_SET = 14;
public const string API_ERROR_MESSAGE_NO_FILE_SHARE_SET = "Envelope file access is set to Custom, but no values are set";
public const int API_ERROR_CODE_NO_DOCUMENTS_OR_RECIPIENTS = 15;
public const string API_ERROR_MESSAGE_NO_DOCUMENTS_OR_RECIPIENTS = "No documents or recipients specified. At least 1 document or recipients are required";
public const int API_ERROR_CODE_NO_SIGNATURE_FIELD_BULK = 16;
public const int API_ERROR_CODE_ONE_SIGNER = 17;
public const int API_ERROR_CODE_NO_RECIPIENTS = 18;
public const int API_ERROR_CODE_NO_DOCUMENTS = 19;
public const int API_ERROR_CODE_NEW_DRAFT_TEMPLATE_LICENSE = 20;
public const string API_MESSAGE_NEW_DRAFT_TEMPLATE_LICENSE = "Your subscription doesn't allow you to create new drafts/templates. Please upgrade your subscription to create new drafts/templates";
public const int API_ERROR_CODE_NEW_ENVELOPE_LICENSE = 21;
public const string API_MESSAGE_NEW_ENVELOPE_LICENSE = "Your subscription doesn't allow you to create new envelopes. Please upgrade your subscription to send new envelopes";
public const int API_ERROR_CODE_FIELD_LENGTH_VALUE = 22;
public const string API_MESSAGE_FIELD_LENGTH_VALUE = "The value for field '{0}' is invalid, the maximum allowed length is '{1}'";
public const int API_ERROR_CODE_SIGNED_NO_NEW_FORM_FILLED_ALLOWED = 23;
public const string API_MESSAGE_SIGNED_NO_NEW_FORM_FILLED_ALLOWED = "The PDF document is already signed, no new form fields can be added because they will invalidate existing signature";
public const int API_ERROR_CODE_ENTITY_IN_USE = 24;
public const int API_ERROR_CODE_ENVELOPE_MUST_BE_COMPLETED_STATE = 26;
public const string API_MESSAGE_ENVELOPE_MUST_BE_COMPLETED_STATE = "The specified envelope must be in Completed state";
public const int API_ERROR_CODE_ENVELOPE_MUST_BE_INPROGRESS_STATE = 29;
public const string API_MESSAGE_ENVELOPE_MUST_BE_INPROGRESS_STATE = "The specified envelope must have status InProgress to perform the required action";
public const int API_ERROR_CODE_INVALID_CONTENT_FILE = 30;
public const string API_MESSAGE_INVALID_CONTENT_FILE = "Invalid file, content is empty";
public const int API_ERROR_CODE_BULK_ENVELOPE_INVALID_NUMBER_RECIPIENTS = 31;
public const string API_MESSAGE_BULK_ENVELOPE_INVALID_NUMBER_RECIPIENTS = "Bulk envelopes must have at least 2 recipients. If you want to send a envelope to a single recipient please call the SendEnvelope API method.";
public const int API_ERROR_CODE_BULK_NON_SIGNING_RECIPIENTS = 32;
public const string API_MESSAGE_BULK_NON_SIGNING_RECIPIENTS = "Cannot have non signing recipients in bulk envelope";
public const int API_ERROR_CODE_MULTIPLE_RECIPIENTS_SAME_INDEX = 33;
public const string API_MESSAGE_MULTIPLE_RECIPIENTS_SAME_INDEX = "Multiple recipients in serial envelope have the same index";
public const int API_ERROR_CODE_NO_RECIPIENT_AUTH_PASSWORD = 34;
public const string API_MESSAGE_NO_RECIPIENT_AUTH_PASSWORD = "No authorization password set for recipient ";
public const int API_ERROR_CODE_PASSWORD_TOO_LONG = 35;
public const string API_MESSAGE_PASSWORD_TOO_LONG = "Password for recipient '{0}' is too long. Max length is '{1}'";
public const int API_ERROR_CODE_INVALID_LANGUAGE_CODE = 36;
public const string API_MESSAGE_INVALID_LANGUAGE_CODE = "Language '{0}' not found, is not among the usable languages in your organization. Either leave field empty for default language or pass a valid language (en-US for example)";
public const int API_ERROR_CODE_INVALID_RECURRENT_REMINDER = 38;
public const string API_MESSAGE_INVALID_RECURRENT_REMINDER = "Reminder recurrent days value must be between '1' and '{0}'";
public const int API_ERROR_CODE_ANALYZE_FILE_GENERIC = 40;
public const string API_MESSAGE_ANALYZE_FILE_GENERIC = "Error occurred while storing/analyzing the file. Make sure file is not password protected and use a file format which can be converted to PDF";
public const int API_ERROR_CODE_FILE_BASE64_ENCODING = 41;
public const string API_MESSAGE_FILE_BASE64_ENCODING = "Invalid input. Must be base64 encoded file content";
public const int API_ERROR_CODE_NOTIFICATION_DISABLED_REMINDERS_ENABLED = 42;
public const string API_MESSAGE_NOTIFICATION_DISABLED_REMINDERS_ENABLED = "Both DisableNotifications and RemindersEnabled are true. Reminders are not sent if notifications are disabled. Please choose one of them";
public const int API_ERROR_CODE_INVALID_FIELD_ID = 43;
public const int API_ERROR_CODE_FILE_CONTENT_EMPTY = 44;
public const string API_MESSAGE_FILE_CONTENT_EMPTY = "File with index '{0}' has no content specified. Please use FileContentByteArray, FileContentBase64String or FileIdentifier to set the file's content";
public const int API_ERROR_CODE_INVALID_FILE_IDENTIFIER = 45;
public const string API_MESSAGE_INVALID_FILE_IDENTIFIER = "'{0}' is a invalid file identifier";
public const int API_ERROR_CODE_INVALID_PHONE_NUMBER = 46;
public const int API_ERROR_CODE_RECIPIENT_NO_SIGN_FIELDS_ASSIGNED = 47; //no signature fields assigned for signer recipient
public const int API_ERROR_CODE_FIELD_ASSIGNMENT_INVALID_RECIPIENT_IDENTIFIER = 48;
public const int API_ERROR_CODE_FIELD_ASSIGNMENT_INVALID_BULK_ASSIGNMENT = 49;
public const int API_ERROR_CODE_INVALID_REMOTE_SIGNATURE_PROVIDER = 50;
public const int API_ERROR_CODE_INVALID_ENVELOPE_STATUS = 51;
public const int API_ERROR_CODE_CANNOT_REPLACE_RECIPIENT_OR_SIGNATURE_TYPE_ALREADY_HAS_SIGN_STEP = 52;
public const int API_ERROR_CODE_MANY_RECIPIENTS_SAME_INDEX = 53;
public const int API_ERROR_DELETE_RECIPIENT_RECEIVE_COPY_CANNOT_BE_DELETED = 54;
public const int API_ERROR_DELETE_RECIPIENT_RECIPIENT_ALREADY_SIGNED_REJECTED = 55;
public const int API_ERROR_RECIPIENT_ID_ENVELOPE_ID_MAPPING_INVALID = 56;
public const int API_ERROR_RECIPIENT_NO_EDIT_WITH_PENDING_DELEGATION = 57;
public const int API_ERROR_CODE_AD_ENABLED = 58;
public const string API_ERROR_MESSAGE_AD_ENABLED = "InviteUserToOrganization api method cannot be used when ActiveDirectory synchronization is enabled.";
public const int API_ERROR_CODE_ENVELOPE_WITH_ID_NOT_FOUND = 59;
public const string API_ERROR_MESSAGE_ENVELOPE_WITH_ID_NOT_FOUND = "Envelope with id '{0}' not found";
public const int API_ERROR_CODE_LICENSE_ADD_NEW_USER = 60;
public const string API_MESSAGE_LICENSE_ADD_NEW_USER = "The current license prevents adding new users";
public const int API_ERROR_CODE_INVALID_RECIPIENT_FOR_CUSTOM_ACCESS = 61;
public const string API_MESSAGE_INVALID_RECIPIENT_FOR_CUSTOM_ACCESS = "No recipient found with email ";
public const int API_ERROR_CODE_INVALID_FILE_NAME_FOR_CUSTOM_ACCESS = 62;
public const string API_MESSAGE_INVALID_FILE_NAME_FOR_CUSTOM_ACCESS = "No file found with index ";
public const int API_ERROR_CODE_INVALID_FILE_ACCESS_MODE_STRUCTURE = 63;
public const string API_MESSAGE_INVALID_FILE_ACCESS_MODE_STRUCTURE = "CustomFileAccess can be used only when FileAccessMode = 2";
public const int API_ERROR_CODE_INVALID_FORM_FIELD_POSITION = 65;
public const int API_ERROR_CODE_ENVELOPE_IS_COMPLETED_STATE = 66;
public const string API_MESSAGE_ENVELOPE_IS_COMPLETED_STATE = "Specified envelope is in completed state, please invoke DownloadEnvelopeCompletedDocuments";
public const int API_ERROR_CODE_FILE_IS_TOO_LARGE = 67;
public const string API_MESSAGE_FILE_IS_TOO_LARGE = "File is too large";
public const int API_ERROR_CODE_INVALID_FORM_FIELD_PAGE_INDEX = 69;
public const int API_ERROR_CODE_MULTIPLE_FILE_SOURCES_SPECIFIED = 70;
public const string API_ERROR_MESSAGE_MULTIPLE_FILE_SOURCES_SPECIFIED = "Multiple file sources were specified for document '{0}'. Please specify only one : FileIdentifier, FileContentByteArray or FileContentBase64String";
public const int API_ERROR_CODE_FILE_NETWORK_SHARE = 71;
public const string API_ERROR_MESSAGE_FILE_NETWORK_SHARE = "Failed to read file's content from NetworkShare. ";
public const int API_ERROR_CODE_AUTOMATIC_PROFILE_USED = 72;
public const string API_ERROR_MESSAGE_AUTOMATIC_PROFILE_USED = "AutomaticSigningProfile '{0}' is in use, it cannot be deleted";
public const int API_ERROR_CODE_AUTOMATIC_PROFILE_NO_IMAGE_SET = 73;
public const string API_ERROR_MESSAGE_AUTOMATIC_NO_IMAGE_SET = "AutomaticSigningProfile requires either a default signature image or a signature imprint";
public const int API_ERROR_CODE_AUTOMATIC_PROFILE_INVALID_IMAGE = 74;
public const string API_ERROR_MESSAGE_AUTOMATIC_PROFILE_INVALID_IMAGE = "The provided image is invalid";
public const int API_ERROR_CODE_AUTOMATIC_PROFILE_INVALID_CERTIFICATE = 75;
public const string API_ERROR_MESSAGE_AUTOMATIC_PROFILE_INVALID_CERTIFICATE = "The provided certificate is invalid";
public const int API_ERROR_CODE_AUTOMATIC_PROFILE_CERTIFICATE_NO_PRIVATE_KEY = 76;
public const string API_ERROR_MESSAGE_AUTOMATIC_PROFILE_CERTIFICATE_NO_PRIVATE_KEY = "The provided certificate is unusable, it does not have a private key";
public const int API_ERROR_CODE_AUTOMATIC_PROFILE_CERTIFICATE_BAD_PASSWORD = 77;
public const string API_ERROR_MESSAGE_AUTOMATIC_PROFILE_CERTIFICATE_BAD_PASSWORD = "The provided certificate password is invalid";
public const int API_ERROR_CODE_AUTOMATIC_PROFILE_IMPRINT_NAME = 78;
public const string API_ERROR_MESSAGE_AUTOMATIC_PROFILE_IMPRINT_NAME = "No signature imprint with name '{0}' can be found";
public const int API_ERROR_CODE_AUTOMATIC_PROFILE_INVALID = 79;
public const string API_ERROR_MESSAGE_AUTOMATIC_PROFILE_INVALID = "Automatic signing profile with identifier '{0}' was not found";
public const int API_ERROR_CODE_AUTOMATIC_PROFILE_EMPTY = 80;
public const string API_ERROR_MESSAGE_AUTOMATIC_PROFILE_EMPTY = "AutomaticSignerProfileIdentifier is not set for recipient with index '{0}'";
public const int API_ERROR_CODE_TEAM_NAME_EMPTY = 81;
public const string API_ERROR_MESSAGE_TEAM_NAME_EMPTY = "Team name is empty, please set a valid name";
public const int API_ERROR_CODE_TEAM_NO_MEMBER_EMAILS = 82;
public const string API_ERROR_MESSAGE_TEAM_NO_MEMBER_EMAILS = "A team requires at least 2 members, please add at least 2 email addresses";
public const int API_ERROR_CODE_TEAM_NO_EMAILS_FOUND = 82;
public const string API_ERROR_MESSAGE_TEAM_NO_EMAILS_FOUND = "Following email address '{0}' were not found in your organization";
public const int API_ERROR_CODE_NEW_EXPIRED_LICENSE = 83;
public const string API_MESSAGE_NEW_EXPIRED_LICENSE = "License is expired, please update the license to send new envelopes. Contact us at [email protected]";
public const int API_ERROR_CODE_REMINDER_CANNOT_BE_SCHEDULED = 84;
public const string API_MESSAGE_REMINDER_CANNOT_BE_SCHEDULED = "Reminder cannot be scheduled to sent, a new reminder can only be sent after 24h passed since last reminder";
public const int API_ERROR_CODE_POLICY_REQUIRED_RECIPIENT_AUTHENTICATION = 85;
public const string API_MESSAGE_POLICY_REQUIRED_RECIPIENT_AUTHENTICATION = "Add authentication for all signers. The organization policy 'Do not allow sending documents to signing without recipient authentication' is enabled and prevents sending the envelope without having authentication for each signer";
public const int API_ERROR_CODE_AUTOMATIC_SIGNING_PROFILE_CERTIFICATE_NOT_SET = 86;
public const string API_MESSAGE_AUTOMATIC_SIGNING_PROFILE_CERTIFICATE_NOT_SET = "StoredInProfile certificate is not set. Please set StoredInProfileCertificate.CertificateBase64";
public const int API_ERROR_CODE_AUTOMATIC_SIGNING_PROFILE_REMOTE_PROVIDER_NOT_FOUND = 87;
public const string API_MESSAGE_AUTOMATIC_SIGNING_PROFILE_REMOTE_PROVIDER_NOT_FOUND = "SignatureTypeIdentifier with value {0} was not found in the registered remote signing providers";
public const int API_ERROR_CODE_SIGNATURE_NAME_NOT_FOUND = 88;
public const string API_ERROR_MESSAGE_SIGNATURE_NAME_NOT_FOUND = "RemoteSigning provider for signature name '{0}' was not found";
public const int API_ERROR_CODE_SIGNATURE_TYPE_NOT_FOUND = 89;
public const string API_ERROR_MESSAGE_SIGNATURE_TYPE_NOT_FOUND = "RemoteSigning provider for signature type '{0}' was not found";
public const int ENVELOPE_RESTART_REACHED_MAX_RESTARTS_ALLOWED = 90;
public const int API_ERROR_CODE_ON_PREMISE_ONLY = 92;
public const int API_ERROR_CODE_EMAIL_ALREADY_USED_FOR_REGISTRATION = 99;
public const string API_ERROR_MESSAGE_EMAIL_ALREADY_USED_FOR_REGISTRATION = "User with email '{0}' already exists";
public const int API_ERROR_CODE_CANNOT_OBTAIN_LICENSE = 100;
public const int API_ERROR_CODE_CANNOT_BE_USED_GLOBAL_TOKEN = 101;
public const string API_ERROR_CODE_MESSAGE_CANNOT_BE_USED_GLOBAL_TOKEN = "For API method '{0}' a global token cannot be used for authentication. Please authenticate with personal/organization token";
public const int API_ERROR_CODE_REJECTED_ANTIVIRUS = 102;
public const string API_ERROR_CODE_MESSAGE_REJECTED_ANTIVIRUS = "File '{0}' was rejected by Antivirus scanner";
public const int MAX_ATTACHMENTS_REACHED = 103;
public const int API_ERROR_CODE_NO_USER_RIGHTS = 104;
public const string API_MESSAGE_NO_USER_RIGHTS = "User '{0}' doesn't have the rights to do this operation";
public const int API_ERROR_CODE_PDF_FILE_SIGNING_PERMISSIONS = 105;
public const string API_MESSAGE_PDF_FILE_SIGNING_PERMISSIONS = "The PDF file '{0}' cannot be used because the security permission prevent further signing";
public const int API_ERROR_CODE_FORM_FIELDS_NOT_ASSIGNABLE_TO_APPROVER = 106;
public const string API_MESSAGE_CODE_FORM_FIELDS_NOT_ASSIGNABLE_TO_APPROVER = "Form and signature fields cannot be assigned to Approver recipients, only to Signer";
public const int API_ERROR_CODE_NO_OIDC_PROVIDERS = 107;
public const string API_MESSAGE_CODE_NO_OIDC_PROVIDERS = "No OpenId Connect providers are configured in the application";
public const int API_ERROR_CODE_SIGNATURE_TYPE_NOT_ALLOWED = 108;
public const int API_ERROR_CODE_SIGN_STEP_IS_FINISHED = 109;
public const int API_ERROR_CODE_CONCURRENT_NOT_LOCKED_BY = 110;
public const int API_ERROR_CODE_CONCURRENT_APPROVER_AUTOMATIC_NOT_ALLOWED = 111;
public const string API_MESSAGE_CODE_CONCURRENT_APPROVER_AUTOMATIC_NOT_ALLOWED = "Concurrent envelope do not allow Approver or Automatic Signers. Please chnage the envelope type to Serial to use this recipient types";
public const int API_ERROR_CODE_USER_ROLE_NAME = 112;
public const string API_ERROR_MESSAGE_USER_ROLE_NAME = "No user role with name '{0}' was found";
public const int API_ERROR_CODE_CERTIFICATE_EXPIRED = 113;
public const int API_ERROR_CODE_PLACEHOLDER_SIGNER = 114;
public const string API_MESSAGE_PLACEHOLDER_SIGNER = "Signer with email [email protected] cannot be used because it is a placeholder";
public const int API_ERROR_CODE_SMS_TYPE_NOT_CONFIGURED = 115;
public const string API_MESSAGE_SMS_TYPE_NOT_CONFIGURED = "The current envelope requires sending SMS but the SMSProvider is not configured. Please configure it to be able to send SMSes";
}
}