Troubleshooting API Errors
What went wrong, in plain English, and who fixes it — you or your developer.
Your developer sees a short machine-readable code on every error. Ask them for that code; it identifies the problem exactly. The full list is in the API reference.
The dangerous one: nothing failed, but boxes are blank
Symptom: envelopes went out successfully, but a field that was supposed to be filled in — a company name, a date — is empty.
Cause: the field label on the template and the label the integration sent do not match. Auto-fill matches on the label text. If they differ by one character, nothing is filled, nothing errors, and the envelope is mailed and legally in flight with a blank box.
How to catch it: ERPDocs reports the unmatched labels on every send, including successful ones. Your developer sees this as prefill_unmatched. Ask them to treat any non-empty value as a failure in their own code, on every row — not just failed ones.
| Common cause | Example |
|---|---|
| Typo on one side | Template says Supplier Legal Name, the request sent Suplier Legal Name |
| The label was renamed after the integration was built | Template now says Counterparty Name; the request still sends Supplier Legal Name |
| Extra or missing word | Effective Date vs Effective From Date |
| The label points at a field that can never be auto-filled | Signature, DSC, attachment and checkbox fields must be completed by the recipient |
Fix: pick one side and make it match the other — correct the label in the field editor, or give your developer the exact label. Do not change both.
Already-sent envelopes do not update. A fix only affects envelopes sent afterwards. For one already out with a blank box, recall it in SignPack → Manage and send it again. If the counterparty has already signed, you need a fresh envelope.
On large jobs, send a one-row test batch first and confirm it reports no unmatched labels before releasing the full run.
Connection and permission problems
| What your developer sees | What it means | Who fixes it |
|---|---|---|
missing_credentials |
The request had no key attached | Developer |
invalid_credentials |
The key is wrong, or it was revoked | You — check the key was not revoked, or issue a new one |
insufficient_scope |
The key was not granted a scope this call needs. The error names exactly which | You — revoke the key and create a new one with the right scopes. Scopes cannot be edited after creation |
sandbox_write_blocked |
A sandbox key was used on a write endpoint (send, bulk-send, remind). Sandbox keys can read but never send | You — issue a live key |
rate_limited |
Too many requests in one minute | Developer — back off and retry. Limits are 300/min, or 10/min for bulk |
not_found |
The API route does not exist (e.g. a typo in the URL) | Developer — check the endpoint path |
method_not_allowed |
The HTTP method is wrong for this endpoint (e.g. DELETE /api/v1/ping) |
Developer — check the docs for the correct method |
invalid_status |
An unknown ?status= filter was passed to a list endpoint. The allowed array lists valid values |
Developer — use a value from allowed |
internal_error |
An unhandled server error. This is a bug | Report it to support with the timestamp |
Embedded signing problems
| What your developer sees | What it means | Who fixes it |
|---|---|---|
origin_required |
No origin was supplied when minting an embed token |
Developer — pass the exact https origin that will frame the page |
invalid_origin |
The origin is malformed, not https (except localhost), or contains a path/wildcard | Developer — use https://app.yourcompany.com (no path, no trailing slash) |
origin_not_allowed |
The origin is not registered on the API key | You — add it under Admin → API & Webhooks → API keys → Add embed origin |
not_embeddable |
The envelope is not out for signature (Draft, Completed, Expired, etc.) | Developer — mint tokens only for live envelopes |
already_signed / already_declined |
This recipient has already finished | Developer — do not mint a token for a recipient who is done |
invalid_ttl |
ttl_seconds was outside 30–900 |
Developer — use a value in range |
Send problems
| What your developer sees | What it means | Who fixes it |
|---|---|---|
template_not_found |
No such template in your organization, or the id is for the other template type | You — confirm the template id |
template_not_sendable |
The template has no roles, or no fields placed on the pages | You — open the template and add them |
sender_email_required / sender_not_found |
The sender is missing, or is not an active user in your organization | You — supply an active user's email |
signer_without_fields |
A signer role has no fields assigned. Every signer needs at least one | You — open the field editor and add a field for that role |
missing_recipient_email |
A role had no email supplied and no default on the template | Depends — either the data feeding the integration, or add a template default |
dsc_rule_violation |
The template requires DSC (hardware token) signing, which bulk send does not support | You — send those in the app instead |
invalid_signature_method |
A recipient's signature_method on a raw-PDF send is not esign or dsc |
Developer |
dsc_signer_without_signature |
A recipient is set to DSC but the document has no signature tag for that role | Developer — add the signature tag |
dsc_not_enabled |
A recipient is set to DSC but DSC signing is off for your organization | You — turn DSC on in Admin, Security, or contact support |
invalid_expiry |
The expiry was not a whole number of days between 1 and 365 | Developer |
invalid_recipients |
A recipient block was malformed or missing an email | Developer |
too_many_rows |
More than 1000 rows in one request | Developer — split the job |
Bulk batch outcomes
The whole request was rejected and no batch exists
If any row is malformed, ERPDocs rejects the entire request and creates nothing. This is deliberate — a half-sent batch is far harder to clean up. The response names the offending row number. Fix that row and submit again.
The batch says partial
Some envelopes went out, some failed. Do not re-run the whole batch. The successful envelopes are already legally in flight and the counterparties would get a duplicate.
- Have your developer list the failed rows.
- Fix the cause — usually a template problem or bad data.
- Re-send only those rows.
A failed row often leaves a Draft SignPack behind. That is intentional: the work is not lost. Find it in SignPack → Manage, correct it, and send it from the app. If you do that, do not also re-send the row through the API — you would create two envelopes for the same counterparty.
The batch says failed
Nothing was sent. Almost always one cause affecting every row — usually a template with a fieldless signer, or a sender account that no longer exists. Fix it and re-send the whole batch.
Duplicate envelopes
If a counterparty received the same agreement twice, the usual cause is a retry without an idempotency key. If the network times out, the request may have already been processed; retrying without a key sends everything again.
Ask your developer to always send an idempotency key on bulk requests. With one, a retry returns the original batch and sends nothing new.
Downloads
| What your developer sees | What it means |
|---|---|
not_completed |
The envelope is not finished yet. The final sealed PDF only exists once everyone has signed |
signed_pdf_unavailable |
The envelope is complete but the sealing step did not produce a file. Contact support with the envelope id |
download_url_failed |
A temporary storage problem. Retry, then contact support |
Download links are time-limited. They must be used promptly and must not be stored — store the envelope id and request a fresh link when needed.
Reminders
not_remindable means the envelope is not awaiting signature. Reminders only apply to envelopes that are Sent, In Progress or Correction Requested — not Draft, Completed, Declined, Expired, Cancelled or Recalled.
A queued reminder means the job was accepted, not that the email has landed.
Even on a remindable envelope, some recipients are skipped: CC recipients, anyone who has already signed, and embedded signers. An embedded signer is driven into the document by the host application, so a reminder link would let them bypass that application's authentication — see Embedded Signing.
Still stuck
Give support the following and we can trace it exactly:
- The error
codeand full response body. - The time of the request.
- The template id, and the batch id or envelope id if there is one.
- The label of the API key used (never the key itself).