Get active store plans
GET https://{handle}.myshopline.com/admin/openapi/v20260301/store/subscription
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Get active store plans, including the current plan and the next period plan (if any).
- Current plan: A store plan that is successfully activated and currently within its billing cycle.
- Next plan: A store plan that has been successfully activated and is pending the start of its billing cycle.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
- include_trial booleanWhether the returned results should include trial-type plans. Plans have two types: trial plans and paid plans.
true: Returns both trial and paid plans.false: Returns only paid plans, excluding trial plans.
Default value:falseExample:true
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
dataobject[]
A list of store plan details.auto_recurring booleanWhether the plan subscription has auto-renewal enabled.true: Auto-renewal is enabled for this plan subscription. The subscription will automatically renew upon expiration.false: Auto-renewal is not enabled for this plan subscription.
Example:truebilling_cycle stringThe billing cycle of the plan subscription.1year: Annual payment, the billing cycle is one year.monthly: Monthly payment, the billing cycle is one month.
Example:1yearbusiness_parameters mapAdditional information about the plan.Example:{"MCC_packageVersion":"pe","SLP":"Premium"}cancelled_at longThe cancellation time of the plan subscription, formatted as a 13-digit millisecond timestamp.DEPRECATEDThis parameter will be deprecated from version v20260301.Example:1689504361000created_at longThe creation time of the plan subscription, formatted as a 13-digit millisecond timestamp.Example:1689504361000enable booleanWhether the plan subscription has been activated.true: Activated, meaning the store bound to the plan subscription has completed setup.false: Not activated, meaning the store bound to the plan subscription has not completed setup.
DeprecatedThis parameter will be deprecated from version v20260301.Example:trueend_at longThe end time of the plan subscription, formatted as a 13-digit millisecond timestamp. This includes any complimentary duration but excludes the grace period.Example:1689504361000extend_peroid integerThe complimentary duration of the plan subscription (in seconds).Example:6grace_period integerThe grace period of the plan subscription (in seconds). The grace period is the duration during which the plan remains usable after reaching the end time, before the store is suspended due to non-payment.Example:7grace_period_end_at longThe end time of the grace period, formatted as a 13-digit millisecond timestamp.Example:1692182769000merchant_email stringThe merchant's email address.Example:open001@shopline.commerchant_id longThe unique identifier for the merchant's registered account.Example:4200320559next_recurring_at longThe next renewal time of the plan subscription, formatted as a 13-digit millisecond timestamp.DeprecatedThis parameter will be deprecated from version v20260301.Example:1692182769000payment_method stringThe payment method for the plan subscription.CreditCard: Credit card paymentUnionPayCard: China UnionPay paymentPayPal: PayPal paymentWeChat: WeChat Pay
DeprecatedThis parameter will be deprecated from version v20260301.Example:CreditCardproduct_line stringThe unique identifier for the store plan. Available plans may vary by region. Plans prefixed with global_ (e.g.,global_standard) are applicable to merchants in Singapore, Malaysia, and Thailand, while plans prefixed with cn_ (e.g.,cn_standard) are applicable to merchants in all other regions outside the aforementioned areas.enterprise: Enterprise.global_lite: Lite.global_starter: Starter.global_essential: Essential.global_standard: Standard.global_premium: Premium.cn_lite: Lite.cn_monthly_standard: Starter.cn_basic: Essential.cn_standard: Standard.cn_plus: Premium.retail: Retail.devstore: Development Store Plan.sandbox_enterprise: Sandbox Enterprise.
Example:cn_monthly_standardproduct_name mapThe name of the plan. Includes Simplified Chinese, English, Traditional Chinese, Malay, and Japanese.Example:{"en":"Starter","jp":"スターター","malay":"Versi pertama","zh-hans-cn":"入门版","zh-hant-tw":"入門版"}remarks stringRemarks provided when the plan was activated.DEPRECATEDThis parameter will be deprecated from version v20260301.start_at longThe start time of the plan subscription, formatted as a 13-digit millisecond timestamp.Example:1689504369000status stringThe status of the plan subscription.active: Active. The plan subscription is currently in effect.expired: Expired. The plan subscription has reached its end time but is still within the grace period.
Example:activestore_handle stringThe store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name isopen001.myshopline.com, the storehandleisopen001.store_id longStore ID.Example:1666942294702sub_id stringThe plan subscription ID, which can be used as a unique key.Example:SUB6025977562148654208type stringThe type of the plan subscription.trial: Trial (current period). A trial-type plan.paid: Paid (current period). A paid-type plan that has entered its billing cycle.preorder: Paid (next period). A paid-type plan that has not yet entered its billing cycle.
Example:trial- message stringResponse information.DEPRECATEDThis parameter will be deprecated from version v20260301.Example:
success
API Explorer
Debugger
Examples
Was this article helpful to you?