Skip to main content

Querying for subscriptions

GET 

/api/v3/package

Available query parameter values for filtering:

  • package_id
  • customer_id
  • token
  • brand_id
  • custom_N - Example: custom_1, custom_2, etc.
  • paymethod
  • paycycle
  • nickname
  • bill_state
  • ship_state
  • package_status_str
  • package_status_state
  • external_key
  • write_datetime - date/time created
  • mod_datetime - date/time last modified
  • cancel_datetime
  • quote.quote_id - Get the subscription that originated from a specific quote
  • line_items.external_key
  • line_items.custom_1
  • line_items.item_id - Get subscriptions that contain a specific product/discount
  • customer.superuser_email - Get subscriptions for a specific primary contact email address
  • customer.users.email - Get subscriptions with this email address

Valid values for package_status_state:

  • a (for active packages)
  • c (for cancelled packages)
  • e (for expired packages)
  • s (for suspended packages)

Valid values for package_status_str:

  • active-trial
  • active-current
  • active-overdue
  • canceled-nonpayment
  • canceled-manual
  • expired-expired
  • expired-trial
  • suspended-suspended

Request

Query Parameters

    where string

    package_status_state:EQUALS:a

    order string

    package_id:ASC

    limit string

    2

    offset string

    8

Responses

Object was fetched successfully

Schema

    code integer
    status string
    message stringnullable
    details objectnullable
    response object
Loading...