Skip to main content

Documentation Index

Fetch the complete documentation index at: https://app.docs.circuly.io/llms.txt

Use this file to discover all available pages before exploring further.

Reference

Every trigger ships an event payload merchants can use as conditions or template variables in Shopify Flow. Reference fields (customer_reference, order_reference, product_reference) resolve to full Shopify resources inside Flow — you can branch on {{customer.amountSpent}}, {{order.totalPrice}}, etc.
Trigger handles are stable — once a workflow uses a handle, renaming it would break the workflow. Circuly will only add new handles, never modify existing ones.

Invoice triggers

invoice-created

Fires when Circuly creates a new invoice for a subscription billing cycle.
FieldTypeDescription
Customercustomer_referenceThe customer the invoice belongs to.
Invoice numberstringCirculy’s human-readable invoice number.
Total amountdecimalTotal invoice amount in shop currency.
CurrencystringISO currency code (EUR, USD, etc.).
Contract handlestringIdentifier of the subscription contract.

invoice-paid

Fires when an invoice is marked as paid following a successful billing attempt.
FieldTypeDescription
Customercustomer_referenceThe customer who paid.
Orderorder_referenceThe Shopify order created from the renewal.
Invoice numberstring
Total amountdecimal
CurrencystringISO currency code.
Contract handlestring

invoice-dunning

Fires when an invoice enters dunning — overdue with a retry scheduled — after a failed billing attempt.
FieldTypeDescription
Customercustomer_reference
Invoice numberstring
Total amountdecimal
Attempt countintegerNumber of failed billing attempts so far.
Contract handlestring

Subscription triggers

subscription-created

Fires when a new subscription or rental contract is created.
FieldTypeDescription
Customercustomer_reference
Orderorder_referenceThe origin order.
Contract handlestring
Contract typestringSubscription, Rental, Digital, or Consumable.

subscription-updated

Fires when a subscription contract is changed — frequency, quantity, address, or next billing date. Use the Changed fields property to filter.
FieldTypeDescription
Customercustomer_reference
Contract handlestring
Changed fieldsstringComma-separated list of changed fields.

subscription-paused

Fires when a subscription contract is paused.
FieldTypeDescription
Customercustomer_reference
Contract handlestring
ReasonstringEmpty if no reason given.

subscription-cancelled

Fires when a contract is cancelled (early termination).
FieldTypeDescription
Customercustomer_reference
Contract handlestring
Termination feedecimalZero if none.
Cancelled bystringmerchant or customer.

subscription-ended

Declared but not yet emitted — the fixed-term completion path will be wired in a follow-up. Configuring a workflow on this handle today won’t trigger anything.
Will fire when a fixed-term contract reaches its natural end. Use this for renewal-offer workflows — distinct from subscription-cancelled.
FieldTypeDescription
Customercustomer_reference
Contract handlestring

subscription-swapped

Fires when a product or variant is swapped on a subscription contract.
FieldTypeDescription
Customercustomer_reference
Productproduct_referenceThe new product.
Contract handlestring
Old variant idstring
New variant idstring

subscription-bought-out

Fires when a customer buys out a rental subscription.
FieldTypeDescription
Customercustomer_reference
Contract handlestring
Buyout pricedecimal
Cycles completedintegerBilling cycles completed before buyout.

Asset triggers

Asset is a Circuly-specific concept — a rental inventory unit. Asset id is a string (Shopify Flow has no native asset reference type).

asset-created

Fires when a new asset record is created.
FieldTypeDescription
Productproduct_reference
Asset idstringCirculy identifier.
Serial numberstring

asset-updated

Fires when an asset record is updated — condition, location, status, etc.
FieldTypeDescription
Asset idstring
Changed fieldsstringComma-separated list.

asset-assigned

Fires when an asset is assigned to a contract.
FieldTypeDescription
Customercustomer_reference
Asset idstring
Contract handlestring

asset-returned

Fires when an asset is returned by the customer.
FieldTypeDescription
Customercustomer_reference
Asset idstring
Contract handlestring
ConditionstringEmpty if not captured.

asset-bought-out

Fires when a customer buys out a specific asset.
FieldTypeDescription
Customercustomer_reference
Asset idstring
Contract handlestring
Buyout pricedecimal