Skip to main content

Documentation Index

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

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

Stigg interacts with Zuora through two API clients: the Quickstart API (v2) and the V1 API. The sections below list every endpoint Stigg calls and why.

Subscription Lifecycle Management

Stigg uses the V1 Orders API to create, update, and cancel subscriptions. Order actions allow multiple changes to be applied atomically in a single request.

Create Subscription

Creates a new Zuora subscription for a customer by submitting a CreateSubscription order action with charge overrides for per-unit, flat-fee, and add-on pricing.

Update Subscription

Modifies an existing subscription’s plan, seat quantities, or add-ons by applying UpdateProduct, AddProduct, and RemoveProduct order actions in a single atomic request.

Cancel Subscription

Terminates an active subscription immediately using a CancelSubscription order action, optionally writing off any open invoice balance at cancellation time.

Scheduled Orders

Stigg creates orders with status: SCHEDULED and schedulingOptions to support future-dated subscription changes (downgrades, cancellations, and seat updates).

Get Orders by Subscription

Used to retrieve existing scheduled orders for a subscription before creating or replacing them.

Cancel Order

Used to cancel a pending scheduled order.

Preview Order

Used to generate an invoice preview before committing a subscription change.

Preview Next Invoice

Used to preview the next upcoming invoice for an existing subscription.

Customer Account Management

Stigg maps each Stigg customer to a Zuora account.

Create Account

Creates a new Zuora billing account for a Stigg customer, setting the billing contact, currency, default payment method, and Stigg-specific custom fields.

Get Account (Quickstart API)

Retrieves a Zuora account by ID to read current account state when syncing or updating a customer record.

Update Account (Quickstart API)

Updates a Zuora account with the latest name, billing contact, custom field metadata, and payment terms sourced from Stigg.

Get Account (V1 API)

Used when the Quickstart account object is insufficient (e.g., to obtain accountNumber for order creation).

Product Catalog Sync

Stigg syncs its plan and add-on catalog to Zuora products, plans (rate plans), and prices (charges).

Create / Get / Update Product

Syncs Stigg plan and add-on packages to Zuora products, creating a new product on first sync and patching it when the name, description, or custom fields change.

Create / Get Plan

Creates a Zuora rate plan (plan) under a product for each billing period, grouping all associated charges for a given Stigg plan or add-on.

Create Price (V1 API)

Stigg uses the V1 Product Rate Plan Charges API to create charges because it supports the full set of charge configuration options required (tiered pricing, volume pricing, min/max quantities, accounting codes).

Get Price (V1 API)

Used to detect drift between Stigg’s price configuration and what is stored in Zuora.

Get / Update Price (Quickstart API)

Reads or patches a Zuora price via the Quickstart API for lightweight price lookups and updates that don’t require the full V1 charge configuration options.

Create Unit of Measure

Stigg creates a unit of measure in Zuora for every usage-based feature, used when creating per-unit and usage-based charges.

Subscription Data Access

Get Subscription (Quickstart API)

Used when syncing usage data to resolve the correct subscription item and unit of measure.

Get Subscription (V1 API)

Used to read rate plan and charge details that are only available through the V1 API.

Payment Method Management

Stigg manages payment methods to support Zuora-hosted payment forms and payment method attachment.

Get Payment Method

Retrieves a payment method by ID to check its current account_id, used when determining whether the method needs to be transferred to a different Zuora account before being set as default.

Create Payment Method

Used to create a CC_REF payment method when attaching a payment method tokenized via Stripe.

Update Payment Method

Used to transfer a payment method to the correct account when a new default payment method is set.

Usage Reporting

Stigg reports metered feature usage to Zuora as usage records.

Create Usage Record

Submits a new metered usage record to Zuora for a subscription item when no pending record already exists for the current billing period.

Update Usage Record

Stigg upserts usage records within a billing period — if a pending record already exists for the current period, it is updated instead of creating a duplicate.

List Usage Records

Used to check for existing pending usage records before deciding whether to create or update.

Payment Processing

Get Invoice

Used to retrieve invoice details (balance, status, currency) when processing a paid invoice webhook.

Get Invoice Items

Used to look up the subscription associated with an invoice when processing invoice-paid webhooks.

Create Payment

Used to mark an invoice as paid, either externally (for invoice-based billing) or electronically (via a payment gateway).

Checkout & Hosted Payment Forms

Stigg supports Zuora’s hosted payment page (HPM) for collecting payment details without handling raw card data.

Get Hosted Page ID

Retrieves the available hosted payment page configuration to obtain the pageId required for payment form rendering.

Generate RSA Signature

Generates a signed token for rendering the Zuora hosted payment form securely in the browser.

Custom Field Management

Stigg provisions its own custom fields on Zuora objects (Account, Product, Subscription) to store Stigg metadata such as customer IDs and entity URLs.

Create / Update Custom Field Definitions

Webhook Setup

When a Zuora integration is created, Stigg automatically configures webhooks in Zuora so that billing events (subscription changes, invoice payments) are forwarded to Stigg in real time.

Custom Event Triggers

Stigg creates custom event triggers in Zuora that fire when specific subscription or account conditions are met.

Callout Templates (Notifications)

Callouts define the HTTP request Zuora sends to Stigg’s incoming webhook URL when an event fires.

Notification Definitions

Notification definitions link an event trigger to a callout template, activating the webhook delivery.

Settings

Get Payment Terms

Used to map Stigg’s invoiceDaysUntilDue setting to the matching Zuora payment term name when creating or updating a customer account.