All help articles

Developer Platform

Understand API responses and retries

Distinguish a passed test, an accepted event and completed processing, and handle failures safely.

Updated 7 November 2026

Every application connection JSON response includes request_id, matching its X-Request-Id header. Keep this reference with your event and receipt IDs when asking for support. Verify API keeps its existing response fields at the root and adds the same reference.

Read a successful response

| HTTP result | Meaning | Next step | | --- | --- | --- | | 200 signed test | data.status is TEST_PASSED; no business effect ran | Check data.ready. Admin activation still requires every approved event contract to pass | | 201 key creation | The scoped key was created | Save the one-time secret securely; existing keys remain valid until revoked or expired | | 200 lifecycle change | The reviewed change was saved | Read the returned application status and generation | | 202 event admission | The event has a durable receipt | Save data.receiptId and check processing status | | 202 identical replay | data.duplicate is true | Use the same original receipt; Qcom does not apply a second effect | | 200 receipt polling | The status request succeeded | Read data.processing; HTTP success alone does not mean business completion |

An identical replay returns the existing receipt's current state, which may already be applied or need review.

Follow processing

data.processing.state is pending, processing, retrying, review_required, completed, failed, superseded or conflicted. Check complete and successful; a terminal failure is complete but unsuccessful. Poll after poll_after_seconds when it is present. Stop automatic polling when it is null and follow the indicated action.

For Documents, an applied event may still have a pending PDF. Overall processing completes successfully only when the document reaches private storage. completion_scope distinguishes event_application from document_storage. Neither proves a Journey completed or a customer message was delivered.

Receipt and document-processing error objects provide a public code, a one-sentence message, retryable and retry_owner, and may include action, the next step to take. Branch on the code; show the message. When Qcom owns a retry, retain the receipt and keep checking. Do not resubmit an accepted event. Workspace-owned review requires an authorised person to resolve the issue.

Handle an HTTP failure

Errors use error.type, error.code, error.message, error.request_id and error.retryable. A safe param identifies an applicable request field. Branch on the code, not the message.

  • 400: repair JSON or the event contract.
  • 401: check credentials, timestamp, exact-byte signature and approved source network. Qcom deliberately returns the same request_unverified code for unverified connections and unknown receipts.
  • 403: review approved events, Contact operations, document test subjects or key purpose. A Test key cannot submit business events or read business receipts.
  • 409: review changed/inactive setup or an event-ID conflict. Never overwrite an earlier event identity.
  • 413 or 415: reduce the body size or send uncompressed JSON.
  • 429: inspect the code. connection_backlog_full permits a delayed retry; connection_storage_full requires capacity review and is not automatically retryable.
  • 500 or 503: retain the original event and use bounded backoff with jitter when retryable.

When supplied, Retry-After matches error.retry_after_seconds. If a response is lost, times out or comes back as non-JSON from a network intermediary, the outcome is uncertain. Re-sign a current timestamp and retry the exact original bytes with the same event/idempotency identity. Never create a new event ID merely because the response was lost. Keep credentials, signatures, customer contents and PDF bytes out of ordinary logs.

Was this article helpful?

Understand API responses and retries — Qcom Help