ByRecordDocs
byrecord.com›

IDs

The public IDs that name every object in the API and in webhooks, and how to store and compare them.

Every object is named by a public ID, as Stripe names its objects: a prefix for the kind of object, an underscore, then 22 letters and digits.

TEXT

Prefixes you will see

PrefixObjectWhere
quo_QuoteQuotes, every webhook
acc_Account (the customer's company)Quotes, every webhook; customer.accountId in a request
con_ContractQuotes, every webhook from acceptance on
inv_Invoicebilling.live
sch_Billing schedulebilling.live
pme_Payment methodpayment_method.saved
evt_Webhook eventThe event's id and the X-ByRecord-Event-Id header
whd_Webhook deliveryThe X-ByRecord-Delivery-Id header
dec_A suspension or restore decisionoccurrenceId on service.suspended and service.restored
sva_A service change made on the vendor's sideoccurrenceId on service.reversed

Rules

  • Opaque. Treat an ID as a string: store it whole and compare it whole. Do not parse it, and do not assume anything about its characters beyond the prefix.
  • Typed. An ID of one kind is never accepted where another kind is expected: GET /quotes/acc_… answers 404, like an ID that does not exist.
  • Stable. An object keeps its ID for life.
  • Case-sensitive. Store IDs in a case-sensitive column.

Numbers are not IDs

Quote and invoice numbers (Q-001234, INV-2026-000123) are what people read on documents. They keep their own format and are not accepted where an ID is expected.

Your own ids

Location ids in service events are yours, exactly as your service API names them, not ByRecord IDs. So is the CRM opportunity id (opportunityId), taken from the opportunity link.

© 2026 ByRecord · byrecord.com · Status