Org-defined labels and their assignment to customers, products, plans, subscriptions, invoices, and credit notes.
Add tags to a credit-note (additive)
Applies the given tag IDs to the resource without removing existing tags. Returns the resulting set of tags. The current tag state also rides on the credit-note resource itself (its tags field).
path Parameters
idResource UUID
Resource UUID
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Add tags to a credit-note (additive) › Responses
OK
Remove tags from a credit-note
Detaches the tag IDs given in the tag_ids query parameter from the resource in one call. Other tags on the entity are unaffected; already-absent ids are ignored.
path Parameters
idResource UUID
Resource UUID
query Parameters
tag_idsTag UUIDs to remove
Tag UUIDs to remove
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Remove tags from a credit-note › Responses
No Content
Add tags to a customer (additive)
Applies the given tag IDs to the resource without removing existing tags. Returns the resulting set of tags. The current tag state also rides on the customer resource itself (its tags field).
path Parameters
idResource UUID
Resource UUID
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Add tags to a customer (additive) › Responses
OK
Remove tags from a customer
Detaches the tag IDs given in the tag_ids query parameter from the resource in one call. Other tags on the entity are unaffected; already-absent ids are ignored.
path Parameters
idResource UUID
Resource UUID
query Parameters
tag_idsTag UUIDs to remove
Tag UUIDs to remove
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Remove tags from a customer › Responses
No Content
Add tags to a invoice (additive)
Applies the given tag IDs to the resource without removing existing tags. Returns the resulting set of tags. The current tag state also rides on the invoice resource itself (its tags field).
path Parameters
idResource UUID
Resource UUID
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Add tags to a invoice (additive) › Responses
OK
Remove tags from a invoice
Detaches the tag IDs given in the tag_ids query parameter from the resource in one call. Other tags on the entity are unaffected; already-absent ids are ignored.
path Parameters
idResource UUID
Resource UUID
query Parameters
tag_idsTag UUIDs to remove
Tag UUIDs to remove
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Remove tags from a invoice › Responses
No Content
Add tags to a plan (additive)
Applies the given tag IDs to the resource without removing existing tags. Returns the resulting set of tags. The current tag state also rides on the plan resource itself (its tags field).
path Parameters
idResource UUID
Resource UUID
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Add tags to a plan (additive) › Responses
OK
Remove tags from a plan
Detaches the tag IDs given in the tag_ids query parameter from the resource in one call. Other tags on the entity are unaffected; already-absent ids are ignored.
path Parameters
idResource UUID
Resource UUID
query Parameters
tag_idsTag UUIDs to remove
Tag UUIDs to remove
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Remove tags from a plan › Responses
No Content
Add tags to a product (additive)
Applies the given tag IDs to the resource without removing existing tags. Returns the resulting set of tags. The current tag state also rides on the product resource itself (its tags field).
path Parameters
idResource UUID
Resource UUID
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Add tags to a product (additive) › Responses
OK
Remove tags from a product
Detaches the tag IDs given in the tag_ids query parameter from the resource in one call. Other tags on the entity are unaffected; already-absent ids are ignored.
path Parameters
idResource UUID
Resource UUID
query Parameters
tag_idsTag UUIDs to remove
Tag UUIDs to remove
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Remove tags from a product › Responses
No Content
Add tags to a subscription (additive)
Applies the given tag IDs to the resource without removing existing tags. Returns the resulting set of tags. The current tag state also rides on the subscription resource itself (its tags field).
path Parameters
idResource UUID
Resource UUID
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Add tags to a subscription (additive) › Responses
OK
Remove tags from a subscription
Detaches the tag IDs given in the tag_ids query parameter from the resource in one call. Other tags on the entity are unaffected; already-absent ids are ignored.
path Parameters
idResource UUID
Resource UUID
query Parameters
tag_idsTag UUIDs to remove
Tag UUIDs to remove
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Remove tags from a subscription › Responses
No Content
List tags
Returns a paginated list of tags. Filters use the unified field.op=value grammar; see /docs/pagination for the operator set. The archived state and usage-count toggle stay outside the grammar as control flags (see parameter descriptions).
query Parameters
limitPage size. Values above the server-side cap are clamped (standard default 50, cap 200; a few document-heavy lists use larger windows). Invalid values fall back to the default.
cursorOpaque continuation token from the previous response's pagination.cursor. Omit for the first page. Cursors are stateless and do not expire, but are only valid for the list and filters that produced them.
nameFilter by name; supports eq and contains operators
Filter by name; supports eq and contains operators
entity_typeFilter by entity type; supports eq and in operators
Filter by entity type; supports eq and in operators
colorFilter by color; supports eq and in operators
Filter by color; supports eq and in operators
created_atFilter by created_at; supports eq, gt, gte, lt, lte operators
Filter by created_at; supports eq, gt, gte, lt, lte operators
updated_atFilter by updated_at; supports eq, gt, gte, lt, lte operators
Filter by updated_at; supports eq, gt, gte, lt, lte operators
archivedTri-mode archived flag: true (include archived), only (only archived). Default returns active rows only.
Tri-mode archived flag: true (include archived), only (only archived). Default returns active rows only.
includeComma-separated includes. Currently supports usage_count to add the count of taggings per tag.
Comma-separated includes. Currently supports usage_count to add the count of taggings per tag.
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
List tags › Responses
OK
Create a tag
Creates a new tag scoped to the calling organization.
Headers
Idempotency-KeyUnique key that makes this POST safe to retry: repeats with the same key replay the first response instead of re-executing. Replays are scoped to the retrying principal (same API key / user) and kept for 24 hours. Required on every POST.
Client-generated idempotency key (e.g. a UUID).
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Create a tag › Request Body
colorOptional display color as a #RRGGBB hex string.
descriptionOptional free-text description of the tag's purpose.
entity_typeEntity kind the tag applies to: CUSTOMER, SUBSCRIPTION, PRODUCT, PLAN, INVOICE, or CREDIT_NOTE.
nameDisplay name; normalized (NFKC, trimmed, collapsed whitespace) and unique per (organization, entity_type).
Create a tag › Responses
Created
Get a tag
Returns a single tag by UUID.
path Parameters
idTag UUID
Tag UUID
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Get a tag › Responses
OK
Soft-delete a tag
Marks the tag deleted and cascades to drop all taggings that referenced it. Fails with 409 when the tag is still referenced by segment rules or promotion conditions - remove those references first.
path Parameters
idTag UUID
Tag UUID
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Soft-delete a tag › Responses
No Content
Update a tag
Applies partial updates to a tag. Setting archived: true archives the tag; passing archived: false un-archives. Setting description or color to an empty string clears the column.
path Parameters
idTag UUID
Tag UUID
Headers
X-Workspace-IdSelects the workspace this request operates in, by workspace UUID or slug (e.g. a sandbox workspace for test integrations). Omitted: the organization's default live workspace. Unknown workspace: 404; workspace outside your organization: 403. Discover workspaces via GET /workspaces.
Workspace UUID or slug.
Update a tag › Request Body
archivedSet true to archive the tag or false to restore it; omitted leaves it unchanged.
colorNew display color as #RRGGBB; omitted leaves it unchanged.
descriptionNew description; omitted leaves it unchanged.
nameNew display name; omitted leaves it unchanged.
Update a tag › Responses
OK