Skip to content

Object IDs

Every Trile object has a string ID of the form <prefix>_<ULID>, e.g. sub_01ARZ3NDEKTSV4RRFFQ69G5FAZ.

  • Prefixed — the prefix tells you the object type at a glance (and in logs).
  • ULID-based — the 26-character suffix is a ULID: lexicographically sortable by creation time, so sorting IDs sorts by age.
  • Opaque — treat the whole string as the identifier. Don’t parse or construct IDs yourself; store them as given.
  • Stable — an object’s ID never changes.
PrefixObject
bizBusiness (merchant account)
cusCustomer
prodProduct
pricePrice
subSubscription
invInvoice
evtEvent (domain event in the log)
txnWallet transaction
ledWallet ledger entry
walWallet
pndPending top-up
wdrWithdrawal
csCheckout session
clinkCheckout link
whkWebhook endpoint
wdaWebhook delivery attempt
brBilling run
ipaIP allowlist entry
tmemTeam member
tinvTeam invite
audAudit log entry
reqRequest correlation ID (in meta.requestId; a short nanoid, not a ULID)