{
"error": {
"code": "invalid_input",
"message": "Some fields need changing.",
"doc_url": "https://widar.com/docs/errors#invalid_input",
"issues": [
{
"field": "content_types",
"message": "Give at least one of text, image, audio or video."
}
]
}
}400 and 422: the request
invalid_input
A parameter is missing or wrong. issues lists each one with its field and what to change.
legal_entity_not_validated
A production certificate needs your legal entity validated first.
domain_not_validated
The certificate’s domain has not passed its challenge, at issue or at a renewal. The current certificate stays valid to its end. See Domain validation.
marking_failed
The output could not be marked and was held back, as the policy fails closed. It is recorded and marking.failed is sent.
test_certificate_only
In test mode a system has a test certificate only; use a live key for production signing.
401 and 403: who is calling
unauthorized
No key, or a key that is not valid. Send Authorization: Bearer with a widar key.
key_expired
The key passed its expiry. Create or roll a key.
forbidden
The key’s scopes or the member’s role do not allow the call.
key_scope_denied
The call needs a signed-in member; an API key may not make it.
402: payment
plan_required
The call needs a paid plan (the Free plan’s files this month are used, or the feature is on Volume or Enterprise) or an add-on such as the compliance pack, which details names. The answer carries a Checkout link and, for an agent, a payment challenge. The public detector’s eleventh lookup of the day without an account answers it too, with the link to a free account. No certificate or domain call ever does.
insufficient_credit
Credit ran out past the grace period. Top up, or let auto reload.
payment_grant_exceeded
A Shared Payment Token was used outside its grant: the amount, the seller or the time.
402 and 409: plan changes
plan_unchanged
The workspace is already on that plan and interval.
plan_pending
A change to the plan is being made, or one already waits for the period’s end. Try again in a moment, or cancel the waiting change first.
plan_past_due
The plan’s last payment failed. Pay the open invoice first; the plan can change once it is paid.
no_plan
The workspace has no paid plan to cancel, resume or change. Choose a plan on Billing and plan.
nothing_pending
No cancellation or change waits for the period’s end, so there is nothing to undo.
card_required
An upgrade is charged on the saved card, and there is none. Add a card on Billing and plan, then try again.
payment_declined
The bank declined the upgrade’s charge. The plan stays as it was.
payment_action_required
The bank asks the card holder to confirm the payment. Open details.url to confirm it; the plan changes once it is paid.
quote_changed
The price changed since the preview. Preview the change again and confirm the new price.
enterprise_by_sales
Enterprise is bought through widar’s sales team, never online. details links to a meeting.
paid_by_billing_workspace
Another workspace pays for this one, so its plan is that workspace’s. Change the plan there.
contract
The workspace’s plan is an Enterprise contract. Ask widar’s sales team about a change.
checkout_pending
A payment page for a plan is already open for this workspace. Finish it or wait a minute.
404, 405 and 409: the thing asked for
not_found
Nothing at this id or address in this workspace and mode.
method_not_allowed
The route exists but not with this method.
system_not_live
The system is a draft or retired. In live mode it needs product validation first.
certificate_required
The system has no live certificate.
certificate_revoked
The system’s certificate was revoked. Request a new one.
listing_not_eligible
The member listing cannot be submitted or published: details names what is missing, an active plan, a validated legal entity or a validated domain.
scheme_not_supported
The external scheme is not one widar reads. See External schemes.
document_signing_suspended
Document signing is suspended for the workspace. An owner or admin turns it back on.
pdf_already_signed
The PDF already carries a signature that adding one would break.
pdf_encrypted
The PDF is encrypted or password-protected.
pdf_a_not_supported
widar does not sign PDF/A files, so they keep their PDF/A conformance.
pdf_hybrid_not_supported
A hybrid-reference PDF. Save it again as a plain PDF.
idempotency_key_reused
This Idempotency-Key was used for a different request.
idempotency_in_progress
The first request with this key is still running. Retry after Retry-After.
413 and 415: the content
content_too_large
Over the size limit for its content type.
content_type_not_supported
The system does not make this content type.
format_not_supported
The format cannot carry a credential, and the policy refuses it.
unsupported_media_type
The request’s Content-Type is not one the route takes.
429 and 5xx: try again
rate_limited
Over a limit. Wait the seconds in Retry-After, then retry with the same Idempotency-Key.
overloaded
No room now. Retry after Retry-After.
api_unavailable
widar could not be reached. Retry with backoff.
api_timeout
widar did not answer in time. Retry with the same Idempotency-Key.
api_error
Something failed on widar’s side. It is never billed. Retry, and quote X-Request-Id to support if it repeats.
payments_not_configured
Card payments are not set up on this server, so nothing was charged, saved or changed. Trying again changes nothing until they are.