Subscription
List subscriptions
Returns a paginated list of subscriptions, newest first.
query Parameters
searchFull-text search across the reference and company name.
company_idsOnly return subscriptions for these companies. Accepts a comma-separated list of UUIDs.
website_idsOnly return subscriptions for these websites. Accepts a comma-separated list of UUIDs.
project_idsOnly return subscriptions for these projects. Accepts a comma-separated list of UUIDs.
statusesOnly return subscriptions in these statuses. Accepts a comma-separated list of concept, active, cancelling, cancelled.
sort_fieldField to sort by: start_next_period or status.
sort_directionSort direction: asc or desc.
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List subscriptions › Responses
Array of SubscriptionListResource
Create a subscription
Creates a new subscription for a company and contact with its recurring line items. Set
start_next_period to activate billing (requires at least one item).
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create a subscription › Request Body
company_idUUID of the company the subscription is for.
contact_idUUID of the contact the subscription is billed to.
referenceReference/title of the subscription.
flow_idUUID of the invoice flow used for billing.
style_idUUID of the invoice style used for billing.
website_idUUID of the website the subscription relates to.
project_idUUID of the recurring project whose periodic amount this subscription bills. Only a recurring project is accepted.
po_numberPurchase-order number.
period_intervalBilling interval count.
period_interval_typeBilling interval unit: days, weeks, months or years.
minimum_periodsMinimum number of billing periods.
days_in_advanceNumber of days before the period start to generate the invoice (0–28).
start_next_periodDate the next period starts (Y-m-d). Setting this activates the subscription.
Recurring line items (at least one). The price of a line, the amount of a line and the total of all lines are each limited to 10,000,000 excluding tax.
Create a subscription › Responses
SubscriptionResource
idreferencepo_numbertotal_excluding_taxtotal_including_taxperiod_intervalperiod_interval_typeminimum_periodsdays_in_advancestart_first_periodstart_current_periodstart_next_periodend_last_periodstatuscancelled_atpayment_conditionsdeletableupdated_atcreated_atGet a subscription
Returns a single subscription by ID, including its line items and billing schedule.
path Parameters
subscriptionThe subscription UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get a subscription › Responses
SubscriptionResource
idreferencepo_numbertotal_excluding_taxtotal_including_taxperiod_intervalperiod_interval_typeminimum_periodsdays_in_advancestart_first_periodstart_current_periodstart_next_periodend_last_periodstatuscancelled_atpayment_conditionsdeletableupdated_atcreated_atUpdate a subscription
Updates a subscription. Only the fields present in the request are changed. When items is
present, it replaces the full set of line items.
path Parameters
subscriptionThe subscription UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update a subscription › Request Body
company_idUUID of the company the subscription is for.
contact_idUUID of the contact the subscription is billed to.
referenceReference/title of the subscription.
flow_idUUID of the invoice flow used for billing.
style_idUUID of the invoice style used for billing.
website_idUUID of the website the subscription relates to.
project_idUUID of the recurring project whose periodic amount this subscription bills. Only a recurring project is accepted.
po_numberPurchase-order number.
period_intervalBilling interval count.
period_interval_typeBilling interval unit: days, weeks, months or years.
minimum_periodsMinimum number of billing periods.
days_in_advanceNumber of days before the period start to generate the invoice (0–28).
start_next_periodDate the next period starts (Y-m-d). Setting this activates the subscription.
reactivateReactivate a cancelled/cancelling subscription.
Recurring line items (at least one). Replaces the current items. The price of a line, the amount of a line and the total of all lines are each limited to 10,000,000 excluding tax.
Update a subscription › Responses
SubscriptionResource
idreferencepo_numbertotal_excluding_taxtotal_including_taxperiod_intervalperiod_interval_typeminimum_periodsdays_in_advancestart_first_periodstart_current_periodstart_next_periodend_last_periodstatuscancelled_atpayment_conditionsdeletableupdated_atcreated_atDelete a subscription
Deletes a subscription. A subscription that has already generated invoices cannot be deleted.
path Parameters
subscriptionThe subscription UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a subscription › Responses
SubscriptionResource
idreferencepo_numbertotal_excluding_taxtotal_including_taxperiod_intervalperiod_interval_typeminimum_periodsdays_in_advancestart_first_periodstart_current_periodstart_next_periodend_last_periodstatuscancelled_atpayment_conditionsdeletableupdated_atcreated_atCancel a subscription
Cancels the subscription. With direct set to true it stops immediately and minimum periods
are dropped. Otherwise it is cancelled at the end of the current commitment.
path Parameters
subscriptionThe subscription UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Cancel a subscription › Request Body
directCancel immediately (true) or at the end of the running period (false).
Cancel a subscription › Responses
SubscriptionResource
idreferencepo_numbertotal_excluding_taxtotal_including_taxperiod_intervalperiod_interval_typeminimum_periodsdays_in_advancestart_first_periodstart_current_periodstart_next_periodend_last_periodstatuscancelled_atpayment_conditionsdeletableupdated_atcreated_atList activities
Returns a paginated list of activities logged on the parent resource, newest first. Activities cover both system-generated events and manually logged remarks.
With include_related the list is the timeline of the resource: its own activities together with
those of the records that belong to it, such as the domain names, applications and mailbox domains
of a website. Each activity then names the record it belongs to in subject.
path Parameters
subscriptionThe subscription UUID
query Parameters
typeOnly return activities of this type (for example remark).
include_relatedAlso return the activities of the records that belong to the resource, each naming its record in subject.
sourceWith include_related: only return the activities of one record, as <type>:<id>, for example domain:<uuid>. The record has to be the resource itself or belong to it.
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List activities › Responses
Array of ActivityWithSubjectResource
Array of ActivityResource
Log a remark
Logs a manual remark as an activity on the parent resource. The remark may contain basic HTML
(p, br, b, strong, i, em, u, s, ul, ol, li, a, span). Other tags
and attributes are stripped and line breaks become <br>. To mention an employee and notify
them, add a span with a data-employee-id attribute holding the employee's UUID, for example
<span data-employee-id="…">@Jan</span>. The answer names the record in subject, like the
timeline does.
path Parameters
subscriptionThe subscription UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Log a remark › Responses
ActivityWithSubjectResource
idtypetitledataThe contact who did it in the customer portal, if any.
The AI connection the activity was done through, if any.
updated_atcreated_atnull when the record is gone