Query subscription contract details
GET https://{handle}.myshopline.com/admin/openapi/v20260301/subscription/:id/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 .query a subscription contract
Path Parameters
- id string requiredContract single number
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
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
subscription_contractobject
Subscription contract information detailsid stringContract single numberlast_payment_status stringLast payment statusstatus stringSubscription contract statusupdated_at stringUpdate time , 2019-09-07T15 : 50 : 00 zdelivery_infoobject
Shipping informationdelivery_name stringScheme namedelivery_seq stringThe seq for the shipping programbilling_policyobject
Billing policy for the subscription agreementmax_cycles integerLargest subscription cyclemin_cycles integerMinimum subscription cycleinterval stringInterval units , ( day , MONTH , weed , year )interval_count integerInterval valueline_itemsobject[]
Associated Productpricing_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_attribute stringProduct attributesamount_setobject
Product amount , multi-currency formatpresentment_moneyobject
presentment moneyamount stringAmountcurrency_code stringCurrencyshop_moneyobject
shop moneyamount stringAmountcurrency_code stringCurrencyproduct_source stringProduct source main_site main station product、customize custom productvariant_id stringProduct SKU serial numbergroup_id stringItem group idquantity integerProduct quantitysku stringItem no .title stringProduct titleversion stringProduct versionamount stringProduct amount ( two precision string , like " 88.10 " )attributesobject[]
Product attributes : name , attribute valuekey stringAttributes key or namevalue stringAttribute valueimage_url stringProduct main imagenext_billing_date stringNext bill dateappobject
Subscription plug-in informationapp_key stringKey for app insertcustomerobject
User informationid stringUser id , buyerIdnick_name stringUser nicknamephone stringUser phoneshipping_addressobject
Shipping addressdistrict stringConsignee zoneprovince_code stringConsignee province codeprovince stringConsignee provincecity stringConsignee citycity_code stringConsignee city codezip stringPostal codecountry stringCountry or regionfirst_name stringConsignee namephone stringConsignee contactcompany stringCompany namelast_name stringConsignee last namecountry_code stringCountry or region , please refer to the country code specification biography , https : //aurogon-portal.yy.com/document/interface/478district_code stringConsignee zone codeaddress1 stringConsignee detailed addressaddress2 stringConsignee additional to the detailed addressemail stringUser mailcreated_at stringCreated time , 2019-09-07T15 : 50 : 00 zcurrency_code stringStore currencyorigin_orderobject
Original order informationid stringOrder numberperiods integerDuration of current contract executioncustomer_payment_methodobject
payment methodmethod_code stringPayment method encodingstore_payment_id stringPayment method idchannel_code stringPayment channel encodinginstrument_detailobject
Payment tool detailscardobject
Card number informationfirst stringCard number front display bitholder stringCard holder namelast stringCard number rear display bitbrand stringCard brandbrand_icon stringCard iconexpire_month stringExpiration date : monthexpire_year stringExpiration date : yeartype stringType card / account. card : carnegie ; account : account baseaccountobject
Account informationname stringAccount nameinstrument_seq stringPayment tool id
API Explorer
Debugger
Was this article helpful to you?