Quote a certificate
In the Esign Comply API, POST /v1/certificates/quote calculates the charge a certificate request would incur, without issuing a certificate or creating a charge. Call it first and show the quote to an administrator before you send confirm_charge: true. It takes a secret key with full_access or read_only permission.
POST /v1/certificates/quote · API version 2026-11-21
Authentication
Send a secret key in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY. The key needs full_access or read_only 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/certificates/quote \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "contemporaneous_record_set",
"filter": {
"version_id": "dv_3kT9",
"created_after": "2026-01-01T00:00:00Z"
}
}'
Node SDK
import { EsignComply } from "esigncomply";
const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);
const { data, error } = await esc.certificates.quote(
{
type: "contemporaneous_record_set",
filter: { version_id: "dv_3kT9", created_after: "2026-01-01T00:00:00Z" },
},
);
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
Accepts any certificate request body and returns the charge it would incur. It never issues and never charges. For one record send an empty body, or the body you would send to the issue endpoint. For a set send type and filter. On the Free plan a quote for a live record returns 403 plan_feature_unavailable.
| Field | Description |
|---|---|
record_count |
Records the request would cover. 1 unless a set is requested. |
units |
One per single-record certificate, or one per 100 records or part of 100 in a set. |
unit_amount, amount, currency |
Integers in the smallest currency unit. amount is what would be charged after the allowance. |
allowance_remaining |
Included units left this subscription year. null when the plan has no cap. |
units_included, units_charged |
How the units split between the allowance and a charge. |
month_to_date, spend_limit |
This month's certificate charges and the domain's monthly limit. |
charge_class |
See the billing object. |
requires_confirmation |
true when the request needs confirm_charge: true. |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type |
body | string | No | Certificate type. |
wording |
body | string | No | "auto" (the packs applied on the record) or a pack code naming the forum variant. |
reference |
body | string | No | Requester reference, 120 characters at most. Printed as asserted. |
include |
body | array of strings | No | Optional sections: "supplements", "network". |
share |
body | object | No | { expires_in } in seconds, 90 days at most: creates a share link. |
confirm_charge |
body | boolean | No | Required when a charge would result. Without it the API returns 402 certificate_charge_unconfirmed with a quote. |
reissue_of |
body | string | No | ID of an earlier certificate to re-issue. |
record_id |
body | string | No | For a single-record certificate. |
filter |
body | object | No | For a set certificate. |
Headers: Idempotency-Key (optional, up to 255 characters) and Esign-Comply-Version (optional, a dated API version). See API conventions.
Response
200 OK with a CertificateQuote object.
{
"object": "certificate_quote",
"record_count": 5,
"units": 1,
"unit_amount": 2000,
"amount": 0,
"currency": "usd",
"allowance_remaining": null,
"month_to_date": 0,
"spend_limit": 20000,
"charge_class": "test",
"units_included": 0,
"units_charged": 0,
"requires_confirmation": false
}
Response fields
| Field | Type | Description |
|---|---|---|
object |
string | |
units |
integer | |
unit_amount |
integer | |
amount |
integer | |
currency |
string | |
allowance_remaining |
integer | |
month_to_date |
integer | |
spend_limit |
integer | |
charge_class |
string | |
units_included |
integer | |
units_charged |
integer | |
requires_confirmation |
boolean | |
record_count |
integer |
Errors
| Code | HTTP | When |
|---|---|---|
invalid_request |
400 | The request is malformed: the body is not valid JSON, a known field has the wrong type, a required field is missing, a value is out of range, or a limit was passed (for example metadata over 50 keys, context.extra over 16 KB, event data over 256 KB, an Idempotency-Key over 255 characters, an unknown Esign-Comply-Version). |
plan_feature_unavailable |
403 | The feature is not on the domain's plan: signer verification (assurance level L2 or L3) on Free or Starter, more webhook endpoints than the plan includes, a certificate request or quote for a live record on Free, a region the plan does not offer, or a custodian-signed certification on a plan or environment that does not have it. |
Like every call made with a secret key, it can also return missing_api_key, invalid_api_key, domain_not_verified, insufficient_permission, idempotency_conflict, 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 POST /v1/certificates/quote
Which credential does POST /v1/certificates/quote need?
A secret key with full_access or read_only 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 POST /v1/certificates/quote 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 POST /v1/certificates/quote 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 POST /v1/certificates/quote idempotent?
Yes, with an Idempotency-Key header of up to 255 characters. A repeat with the same key and the same bytes in the body returns the original response, with the header Idempotent-Replayed: true. The same key with a different body answers 409 idempotency_conflict.
What is the rate limit for POST /v1/certificates/quote?
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 POST /v1/certificates/quote?
Yes: esc.certificates.quote() in the esigncomply package. It resolves to { data, error } and does not throw.
Related
- Certificates: the overview of the resource and all of its operations.
- List certificates:
GET /v1/certificates - Retrieve a certificate:
GET /v1/certificates/{id} - Download a certificate as PDF:
GET /v1/certificates/{id}/pdf - Create a certificate share link:
POST /v1/certificates/{id}/share - Certificates
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21