查询订阅合同列表
POST https://{handle}.myshopline.com/admin/openapi/v20250601/subscription/contract.json
handle
:店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com
的店铺,其 handle
是 open001
。查询订阅合同列表
请求头
- Content-Type required字段值固定为
application/json; charset=utf-8
- Authorization string required资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
- after string某个cursor之后,值可以是 orderId, contractId等,根据具体的API表示具体的业务数据id,before 和 after 只允许其一有值
- before string某个之前,值可以是 orderId, contractId等,根据具体的API表示具体的业务数据id,before 和 after 只允许其一有值
- created_at_max string订阅合同生成时间(结束)(格式见IOS8601)
- created_at_min string订阅合同生成时间(开始)(格式见IOS8601)
- first integer返回前N个元素,最大支持50, 与last必须并且只有一个不能为空
- ids array合同id列表Example: ``
- last integer返回最后N个元素,最大支持50, 与first必须并且只有一个不能为空
- next_billing_date_at_max string订阅下一次账单生成时间(结束)(格式见IOS8601)
- next_billing_date_at_min string订阅下一次账单生成时间(开始)(格式见IOS8601)
- reverse boolean排序反转
- status array订阅合同状态( ACTIVE, FAILED, CANCELLED, EXPIRED)Example: ``
- updated_at_max string订阅合同更新时间(结束)(格式见IOS8601)
- updated_at_min string订阅合同更新时间(开始)(格式见IOS8601)
- user_ids array用户id列表,最多50个Example: ``
响应
- 200
- 401
- 429
更多状态码信息请参考 HTTP 状态码
响应头
traceId
traceId
响应体
page_infoobject
分页信息end_cursor string1has_next_page boolean1has_previous_page boolean1start_cursor string1subscription_contractsobject[]
订阅合同信息列表appobject
订阅插件信息app_key stringapp插件的keybilling_policyobject
订阅协议计费策略interval string间隔单位, (DAY,MONTH,WEEK,YEAR)interval_count integer间隔值max_cycles integer最大的订阅周期min_cycles integer最小的订阅周期created_at string创建时间currency_code string币种customerobject
用户信息email string用户邮箱id string用户idnick_name string用户名称phone string用户电话shipping_addressobject
收货地址address1 string收货人详细地址address2 string收货人详细地址附加city string收货人市city_code string收货人市codecompany string公司名称country string国家或者地区country_code string国家或地区,请参考国家代码规范传参,https://aurogon-portal.yy.com/document/interface/478district string收货人区district_code string收货人区codefirst_name string收货人名last_name string收货人姓phone string收货人联系方式province string收货人省份province_code string收货人省份codezip string邮编customer_payment_methodobject
付款方式channel_code string支付渠道编码instrument_detailobject
支付工具详情cardobject
卡信息brand string卡品牌brand_icon string卡图标expire_month string有效期:月expire_year string有效期:年first string卡号前置展示位holder string持卡人姓名last string卡号后置展示位type string类型 card / account. card: 卡基;account: 账基instrument_seq string支付工具IDmethod_code string支付方式编码store_payment_id string支付方式IDdelivery_infoobject
运送信息delivery_name string方案名称delivery_seq string运费方案的seqid string合同idlast_payment_status string上一次付款状态line_itemsobject[]
合同关联的商品amount string商品的金额(两位精度的字符串,如"88.10")amount_setobject
商品的金额presentment_moneyobject
买家侧金额amount string金额currency_code string货币shop_moneyobject
卖家侧金额amount string金额currency_code string货币attributesobject[]
商品属性key string属性key或者namevalue string属性值group_id string商品组idimage_url string商品主图pricing_policyobject[]
订阅周期折扣cycle_discountsobject[]
订阅行的每个周期的调整adjustment_type string优惠类型, FIXED_AMOUNT: 减额,PERCENTAGE: 折扣(减去百分比)adjustment_value long优惠值 扣减金额(分)或万分比product_source string商品来源 main_site主站商品、customize自定义商品quantity integer商品数量sku string商品码title string商品标题variant_attribute string商品属性variant_id string商品sku序列号version string商品版本next_billing_date string下一个账单日期origin_orderobject
原始订单信息id string订单号periods integer当前合同已执行的期数status string订阅合同状态( ACTIVE, FAILED, CANCELLED, EXPIRED)updated_at string更新时间
API Explorer
调试台
这篇文章对你有帮助吗?