id
string

ID of the legacy subscription

product_subscription_id
string

ID of product subscription for subscriptions 2.0

shop_id
integer

The shop ID to which this subscription belongs

product_id
string

ID of the product subscription

product_plan_id
string

ID of the subscriptions 2.0 active product plan

customer_id
string

ID of the store's customer

type
enum<string>

The subscription version

Available options:
v1,
v2
created_at
integer

Timestamp for the creation of the subscription

updated_at
integer

When this subscription was last updated

status
enum<string>

Subscription status

Available options:
PENDING,
CANCELED,
TRIALING,
ACTIVE
gateway
enum<string>

Gateway chosen for this subscription. A new invoice monthly will be created using this gayeway

Available options:
PAYPAL,
STRIPE,
SKRILL,
PERFECT_MONEY,
CASH_APP,
BINANCE,
BITCOIN,
LITECOIN,
ETHEREUM,
BITCOIN_CASH,
NANO,
MONERO,
SOLANA,
RIPPLE,
BINANCE_COIN,
USDC,
USDT,
TRON,
BITCOIN_LN,
CONCORDIUM,
POLYGON,
PEPE,
DAI,
WETH,
APE,
SHIB,
USDC_NATIVE,
DOGECOIN,
PYTH,
BONK,
JUP,
JITO,
WEN,
RENDER,
MOBILE,
HNT
custom_fields

The custom fields passed by the user at checkout. The type is map<string, string>

coupon_id
string

The ID of the coupon used when paying for the subscription. Will be null if no coupon was used

current_period_end
integer

When the current billing period will end

upcoming_email_1_week_sent
boolean

Whether or not the email for an upcoming renewal has been sent

trial_period_ending_email_sent
boolean

Whether or not the email for the trial period expiring has been sent

renewal_invoice_created
boolean

If true, the renewal invoice has already been created

status_details
enum<string>

Details about the subscription status

Available options:
PAYMENT_FAILED,
CART_PARTIAL_OUT_OF_STOCK
canceled_at
integer

When this subscription was canceled

stripe_customer_id
string

ID of the customer created on STRIPE

stripe_account
string

ID of the Stripe connected account

stripe_subscription_id
string

ID of the Stripe subscription

paypal_account
string

The ID of the PayPal account used to complete the subscription payments

paypal_subscription_id
string

The ID of the PayPal subscription

product_title
string

Digital Software

product_plan_title
string

The title of the product plan for this subscription (only for type: v2)

cloudflare_image_id
string

The cloudflare image ID of this product, replaces image_attachment and image_name. Format https://imagedelivery.net/95QNzrEeP7RU5l5WdbyrKw/<cloudflare_image_id>/<variant_name> where variant_name can be shopItem, avatar, icon, imageAvatarFeedback, public, productImageCart

customer_name
string

Customer name

customer_surname
string

Customer surname

customer_phone
string

Customer phone

customer_phone_country_code
string

Customer phone country code

customer_country_code
string

Customer country code

customer_street_address
string

Customer street address

customer_additional_address_info
string

Customer street address additional info

customer_city
string

Customer city

customer_postal_code
string

Customer postal code

customer_state
string

Customer state

customer_email
string

Customer email

shop_name
string

The name of the shop the subscription was made for

invoices
object[]
approved_address
object
gateways_available
enum<string>[]

Gateways available for this invoice

Available options:
PAYPAL,
STRIPE,
SKRILL,
PERFECT_MONEY,
CASH_APP,
BINANCE,
BITCOIN,
LITECOIN,
ETHEREUM,
BITCOIN_CASH,
NANO,
MONERO,
SOLANA,
RIPPLE,
BINANCE_COIN,
USDC,
USDT,
TRON,
BITCOIN_LN,
CONCORDIUM,
POLYGON,
PEPE,
DAI,
WETH,
APE,
SHIB,
USDC_NATIVE,
DOGECOIN,
PYTH,
BONK,
JUP,
JITO,
WEN,
RENDER,
MOBILE,
HNT