What’s an item?
Items are optional. Nothing requires one: a billable metric or fee filed directly into a product bills exactly as it always has. Paygentic doesn’t create items for you — you create them when you have something to map. Items are also deliberately thin. An item has:- A name - the canonical, customer-facing SKU name
- A catalog ID - the product it belongs to, if you’ve filed it into one
- Metadata - optional key-value pairs for internal tracking
- External references - links to your CRM, ERP, or tax provider
itemId.
Creating an item
catalogId is optional at creation time — you can file an item into a
product later by updating it, and you can move a filed item to a different
product at any time. Re-filing carries the item’s tagged billable metrics
and fees to the new product with it, in one transaction.
You cannot, however, un-file an item (set catalogId back to null) while
billable metrics or fees are still tagged with it — untag them first.
Tagging metrics and fees with an item
Billable metrics and fees accept anitemId that points at the item they
bill for:
productId or itemId — at least one is required. Set
itemId and the product is resolved from the item’s catalogId for you; set
productId and the metric or fee is filed directly, with no item tag. If you
pass both, they must resolve to the same product. productId is always
populated on the response either way.
Archiving items
Archiving retires an item from your catalog so it can no longer be attached to new pricing, while keeping it readable so historical invoices and line items still resolve to it.
To archive an item, set
archived: true on an update:
archived: false.
By default, a GET /v0/items list omits archived items. Pass
includeArchived=true to include them:
provider and externalId
always returns its match, archived or not, so an external code never silently
resolves to nothing.