Query subscription contract list
POST https://{handle}.myshopline.com/admin/openapi/v20260301/subscription/contract.json
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 .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
- next_billing_date_at_min stringSubscribe to next bill generation time ( start ) ( format see IOS8601 )
- updated_at_max stringSubscription contract update time ( end ) ( format see IOS8601 )
- created_at_min stringSubscription contract production time ( start ) ( format see IOS8601 )
- reverse booleanSort inversion
- updated_at_min stringSubscription contract update time ( start ) ( format see IOS8601 )
- user_ids arrayUser id list , up to 50Example:
[""] - first integerThe front n elements of return support up to 50 , and the last must and only one cannot be empty
- created_at_max stringSubscription contract production time ( end ) ( format see IOS8601 )
- ids arrayContract id listExample:
[""] - next_billing_date_at_max stringSubscribe to next bill-generation time ( end ) ( format see IOS8601 )
- status arraySubscription contract status ( ACTIVE , FAILED , CANCELLED , EXPIRED )Example:
[""] - after stringAfter a certain cursor , the value can be orderId , contractId , etc . , according to the specific api to indicate the specific business data id , before and after to only allow one to have value .
- before stringBefore , the value could be orderId , contractId , etc . according to the specific api , it means that the specific business data id , before and after only allow one to have value .
- last integerReturn last n elements , maximum support 50 , must be with first and only one cannot be empty
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
page_infoobject
Paging informationhas_next_page boolean1has_previous_page boolean1start_cursor string1end_cursor string1subscription_contractsobject[]
Subscription contract information listline_itemsobject[]
Contract associated Producttitle stringProduct titleamount stringProduct amount ( two precision string , like " 88.10 " )group_id stringItem group idimage_url stringProduct main imagesku stringProduct yardsvariant_attribute stringProduct attributesamount_setobject
Product amountpresentment_moneyobject
Currency informationamount stringAmountcurrency_code stringCurrencyshop_moneyobject
Sell side amountamount stringAmountcurrency_code stringCurrencypricing_policyobject[]
Subscription cycle discountcycle_discountsobject[]
Adjust per cycle of the subscribe to the lineadjustment_type stringDiscount type , FIXED_AMOUNT : minus , PERCENTAGE : discount ( minus percentage )adjustment_value longDiscount value subtraction amount ( points ) or ratiovariant_id stringProduct SKU serial numberversion stringProduct versionproduct_source stringProduct source main_site main station product、customize custom productattributesobject[]
Product attributeskey stringAttributes key or namevalue stringAttribute valuequantity integerProduct quantityid stringContract idlast_payment_status stringLast payment statusnext_billing_date stringNext bill datebilling_policyobject
Billing policy for the subscription agreementinterval stringInterval units , ( day , MONTH , weed , year )interval_count integerInterval valuemax_cycles integerLargest subscription cyclemin_cycles integerMinimum subscription cyclecustomer_payment_methodobject
payment methodinstrument_seq stringPayment tool idmethod_code stringPayment method encodingstore_payment_id stringPayment method idchannel_code stringPayment channel encodinginstrument_detailobject
Payment tool detailscardobject
Card informationbrand_icon stringCard iconexpire_month stringExpiration date : monthexpire_year stringExpiration date : yearfirst stringCard number front display bitholder stringCard holder namelast stringCard number rear display bitbrand stringCard brandtype stringType card / account. card : carnegie ; account : account baseupdated_at stringUpdate timecustomerobject
User informationshipping_addressobject
Shipping addresscompany stringCompany namefirst_name stringConsignee namecity_code stringConsignee city codeprovince stringConsignee provincecountry_code stringCountry or region , please refer to the country code specification biography , https : //aurogon-portal.yy.com/document/interface/478city stringConsignee citycountry stringCountry or regionprovince_code stringConsignee province codedistrict_code stringConsignee zone codelast_name stringConsignee last namezip stringPostal codedistrict stringConsignee zonephone stringConsignee contactaddress1 stringConsignee detailed addressaddress2 stringConsignee additional to the detailed addressemail stringUser mailboxid stringUser IDnick_name stringUser namephone stringUser phoneappobject
Subscription plug-in informationapp_key stringKey for app insertcreated_at stringCreation timeperiods integerDuration of current contract executionstatus stringSubscription contract status ( ACTIVE , FAILED , CANCELLED , EXPIRED )origin_orderobject
Original order informationid stringOrder numbercurrency_code stringCurrencydelivery_infoobject
Shipping informationdelivery_name stringScheme namedelivery_seq stringThe seq for the shipping program
API Explorer
Debugger
Was this article helpful to you?