SUQODocs
User GuideAPI ReferenceSDKs

Object fields

Every shared object shape in one place. These are referenced from the endpoint pages rather than repeated on each of them, so a field is documented once.

Pagination envelope

Returned by every list endpoint. See Page through list results.

FieldTypeDescription
countintegerTotal rows across all pages
nextstring | nullURL of the next page, null on the last
previousstring | nullURL of the previous page, null on the first
resultsarrayThe page of objects

Subscriptions extends this with status counts.

Subscription item

The shape of each element of results[] on Subscriptions.

FieldTypeDescription
subscription_idstring (UUID)
statusstringSee Subscription statuses
is_activebooleanstatus == "active"
clientobjectSee client object
productobjectSee product object
current_period_startdatetime | null
current_period_enddatetime | null= billing_cycle
next_billing_cycledatetime | nullThe date the subscription bills next (same value as billing_cycle). Use this as the next-billing date.
created_atdatetime

client object

Buyer details. Sent when creating a subscription, and returned on each subscription item.

FieldTypeRequired on createDescription
phonestringYesBuyer identity — matches or creates the buyer
full_namestringYes
emailstringYes
addressstringYes
billingobjectNo{billing_business_name*, billing_email*, billing_address*, billing_pan_vat} (* required if billing present; billing_pan_vat 9 numbers)
shippingobjectNo{phone*, full_name*, email*, address} (* required if shipping present)

On a read, billing and shipping are nullable and use unprefixed keys (business_name, email, address, pan_vat).

product object

The product snapshot carried on a subscription item.

FieldTypeDescription
product_idstring (UUID)
namestringProduct name
plan_namestringThe plan the buyer is on
pbp_idstringThe billing period they subscribed to
labelstringDisplay label, e.g. Monthly
pricedecimal stringSent as a string to avoid float rounding
currencystringe.g. NPR

Plan object

Each element of plan[] on Products.

FieldTypeDescription
plan_idstring
plan_namestring
descriptionstring
billing_periodsarraySee Billing period object

Billing period object

Each element of billing_periods[]. The pbp_id here is what you pass to create a subscription.

FieldTypeDescription
pbp_idstringPublic id — pass this to create a subscription
interval_typestringe.g. month, year
interval_countinteger
labelstringDisplay label
pricedecimal string
currencystringe.g. NPR
is_current / is_limited / is_archivedboolean
offersarrayAttached offers

Billing periods are returned inline as part of each product; there is no separate billing-periods endpoint.

On this page