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.
Prefixes you will see
| Prefix | Object | Where |
|---|---|---|
quo_ | Quote | Quotes, every webhook |
acc_ | Account (the customer's company) | Quotes, every webhook; customer.accountId in a request |
con_ | Contract | Quotes, every webhook from acceptance on |
inv_ | Invoice | billing.live |
sch_ | Billing schedule | billing.live |
pme_ | Payment method | payment_method.saved |
evt_ | Webhook event | The event's id and the X-ByRecord-Event-Id header |
whd_ | Webhook delivery | The X-ByRecord-Delivery-Id header |
dec_ | A suspension or restore decision | occurrenceId on service.suspended and service.restored |
sva_ | A service change made on the vendor's side | occurrenceId 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_…answers404, 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.