Skip to content
DocsMenu

Retrieve the receipt of a record

View as Markdown

Open this page inChatGPTClaudeCursor

In the Esign Comply API, GET /v1/records/{id}/receipt retrieves the signed receipt of a record, a compact JWS, together with its key ID and decoded payload. Call it from your server to store the receipt in your own database next to your acceptance row.

GET /v1/records/{id}/receipt · API version 2026-11-21

Authentication

Send a secret key in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY. The key needs any permission. Test keys and live keys both work, and each reads and writes the objects of its own environment. Call it from your server: a secret key never goes to a browser. Keys and permissions are described under Authentication.

Request example

cURL

curl https://esigncomply.com/v1/records/rec_Z4m8/receipt \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"

Node SDK

import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);

const { data, error } = await esc.records.receipt("rec_Z4m8");

This request ran against the API on November 26, 2026, and the response below is what came back. IDs are example values, and long values are shortened with ....

What it does

The receipt is a compact signed token (JWS, ES256, typ: esc-receipt+jwt). Store it in your own database next to your acceptance row. Its holder can check it against the published keys at /.well-known/jwks.json or through POST /v1/verify.

Claim Meaning
iss Issuer.
rid Record ID.
dom Registered domain.
hash Record hash.
iat Signed-at time, in seconds.
lvl Signature level.
asr Assurance level.
seq, prev Position in the domain's ledger and the hash of the previous entry.
live Live or test. A receipt signed by a test key never verifies as live evidence.

Parameters

Name In Type Required Description
id path string Yes ID of the record.

Headers: Esign-Comply-Version (optional, a dated API version). See API conventions.

Response

200 OK with a Receipt object.

{
  "object": "receipt",
  "record_id": "rec_Z4m8",
  "receipt": "eyJhbGciOiJFUzI1NiIsImtp...",
  "kid": "esc-us-test-2026-11",
  "payload": {
    "iss": "https://esigncomply.com",
    "rid": "rec_Z4m8",
    "dom": "sandbox:dom_4Kx9",
    "hash": "sha256:24ccd731...",
    "iat": 1795652174,
    "lvl": "simple",
    "asr": "L1",
    "seq": 1,
    "prev": "sha256:00000000...",
    "live": false
  }
}

Response fields

Field Type Description
object string
record_id string
receipt string Compact JWS, ES256.
kid string
payload object { iss, rid, dom, hash, iat, lvl, asr, seq, prev, live }.

Errors

Code HTTP When
not_found 404 No object with that ID exists in this domain and environment.
service_unavailable 503 With Retry-After: 5 while the record is pending_seal.

Like every call made with a secret key, it can also return missing_api_key, invalid_api_key, domain_not_verified, insufficient_permission, region_mismatch, rate_limit_exceeded and internal_error.

Every error has the same body: error.type, error.code, error.message, error.doc_url and error.request_id. See Errors.

Questions about GET /v1/records/{id}/receipt

Which credential does GET /v1/records/{id}/receipt need?

A secret key with any permission. Send it as a Bearer token in the Authorization header, from your server only. A session client token is refused with insufficient_permission.

Does GET /v1/records/{id}/receipt work with a test key?

Yes. It works with test keys and live keys. A test key reads and writes test objects only, and a live key works once the domain is verified.

Does GET /v1/records/{id}/receipt count as a signature event?

No. A signature event is counted when a live record is written, by completing a session or by submitting a deferred acceptance. This call writes no record.

Is GET /v1/records/{id}/receipt idempotent?

It is a read, so it is safe to repeat. It takes no Idempotency-Key header.

What is the rate limit for GET /v1/records/{id}/receipt?

The limit is counted for each key and depends on the plan: 2 requests per second on Free, 10 on Starter, 50 on Unlimited and 100 on Enterprise. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.

Does the Node SDK have a method for GET /v1/records/{id}/receipt?

Yes: esc.records.receipt() in the esigncomply package. It resolves to { data, error } and does not throw.

Last updated · API version 2026-11-21