{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-linkedmall/cancel-refund-order":{"post":{"operationId":"cloud_aliyun_linkedmall_cancel_refund_order","summary":"Cancels a refund order","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds/{disputeId}/commands/cancel","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["disputeId"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"disputeId":{"type":"string","description":"The ID of the refund order"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/confirm-disburse":{"post":{"operationId":"cloud_aliyun_linkedmall_confirm_disburse","summary":"Confirms the receipt of goods","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/orders/commands/confirmDisburse","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"orderId":{"type":"string","description":"The primary distribution order ID"},"purchaseOrderId":{"type":"string","description":"The distribution transaction ID"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/create-goods-shipping-notice":{"post":{"operationId":"cloud_aliyun_linkedmall_create_goods_shipping_notice","summary":"Backfill shipping notice information","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds/command/createGoodsShippingNotice","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["cpCode","disputeId","logisticsNo"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"cpCode":{"type":"string","description":"Company code"},"disputeId":{"type":"string","description":"Dispute ID"},"logisticsNo":{"type":"string","description":"Logistics tracking number"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/create-purchase-order":{"post":{"operationId":"cloud_aliyun_linkedmall_create_purchase_order","summary":"Creates a purchase order and returns the purchase order ID. The specific result of order creation is…","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaseOrders","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["buyerId","deliveryAddress","outerPurchaseOrderId","productList"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"buyerId":{"type":"string","description":"The user ID in the distributor business, which is defined by the distributor. Assign different buyerIds to different buyers."},"deliveryAddress":{"type":"object","description":"The address information"},"extInfo":{"type":"object","description":"The extended information"},"outerPurchaseOrderId":{"type":"string","description":"The order ID in the distributor business, which is defined by the distributor"},"productList":{"type":"array","description":"The product list. Maximum number of SKUs per purchase order: 20"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/create-refund-order":{"post":{"operationId":"cloud_aliyun_linkedmall_create_refund_order","summary":"Create a support ticket","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["applyReasonTextId","applyRefundCount","applyRefundFee","bizClaimType","goodsStatus","orderLineId"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"applyReasonTextId":{"type":"integer","description":"The refund reason ID"},"applyReasonTips":{"type":"string","description":"The refund reason text"},"applyRefundCount":{"type":"integer","description":"The return quantity"},"applyRefundFee":{"type":"integer","description":"The requested refund amount in cents"},"bizClaimType":{"type":"integer","description":"The refund type. Valid values: 1: Refund only. 3: Return and refund"},"goodsStatus":{"type":"integer","description":"The goods status. Valid values: 4: Not shipped. 1: Not received. 2: Received"},"leaveMessage":{"type":"string","description":"The message"},"leavePictureLists":{"type":"array","description":"The image list"},"orderLineId":{"type":"string","description":"The sub-distribution order ID"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/get-order":{"get":{"operationId":"cloud_aliyun_linkedmall_get_order","summary":"Queries the details of an order","description":"GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/orders/{orderId}","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}},{"name":"orderId","in":"query","required":true,"description":"The ID of the order","schema":{"type":"string","description":"The ID of the order"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/get-purchase-order-status":{"get":{"operationId":"cloud_aliyun_linkedmall_get_purchase_order_status","summary":"Retrieve the purchase order status","description":"GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaseOrders/{purchaseOrderId}/status","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}},{"name":"purchaseOrderId","in":"query","required":true,"description":"Purchase order ID","schema":{"type":"string","description":"Purchase order ID"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/get-purchaser-shop":{"get":{"operationId":"cloud_aliyun_linkedmall_get_purchaser_shop","summary":"Retrieves the purchaser's shop","description":"GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaserShops/{purchaserId}","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}},{"name":"purchaserId","in":"query","required":true,"description":"Purchaser ID","schema":{"type":"string","description":"Purchaser ID"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/get-refund-order":{"get":{"operationId":"cloud_aliyun_linkedmall_get_refund_order","summary":"Retrieve details of an after-sales order","description":"GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds/{disputeId}","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}},{"name":"disputeId","in":"query","required":true,"description":"ID of the after-sales order","schema":{"type":"string","description":"ID of the after-sales order"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/get-selection-product":{"get":{"operationId":"cloud_aliyun_linkedmall_get_selection_product","summary":"Queries the details of a product in the selection pool","description":"GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products/{productId}","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}},{"name":"productId","in":"query","required":true,"description":"The product ID","schema":{"type":"string","description":"The product ID"}},{"name":"purchaserId","in":"query","required":true,"description":"The ID of the purchaser","schema":{"type":"string","description":"The ID of the purchaser"},"example":"PID22000009"},{"name":"divisionCode","in":"query","required":false,"description":"The division code. We recommend using a level-5 township or subdistrict address code","schema":{"type":"string","description":"The division code. We recommend using a level-5 township or subdistrict address code"},"example":"330106109"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/get-selection-product-sale-info":{"get":{"operationId":"cloud_aliyun_linkedmall_get_selection_product_sale_info","summary":"Queries sales information for products in the selection pool","description":"GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products/{productId}/saleInfo","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}},{"name":"productId","in":"query","required":true,"description":"Product ID","schema":{"type":"string","description":"Product ID"}},{"name":"purchaserId","in":"query","required":true,"description":"Purchaser ID","schema":{"type":"string","description":"Purchaser ID"},"example":"PID22000009"},{"name":"divisionCode","in":"query","required":false,"description":"Administrative division code. We recommend using a five-level code (township or subdistrict level)","schema":{"type":"string","description":"Administrative division code. We recommend using a five-level code (township or subdistrict level)"},"example":"330106109"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/list-categories":{"post":{"operationId":"cloud_aliyun_linkedmall_list_categories","summary":"Lists categories","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/categories/commands/list","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"categoryIds":{"type":"array","description":"Collection of category IDs"},"parentCategoryId":{"type":"integer","description":"Parent category ID"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/list-logistics-orders":{"get":{"operationId":"cloud_aliyun_linkedmall_list_logistics_orders","summary":"Query logistics information for an order","description":"GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/orders/{orderId}/logisticsOrders","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}},{"name":"orderId","in":"query","required":true,"description":"Order ID","schema":{"type":"string","description":"Order ID"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/list-purchaser-shops":{"get":{"operationId":"cloud_aliyun_linkedmall_list_purchaser_shops","summary":"Lists purchaser shops","description":"GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaserShops","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}},{"name":"pageNumber","in":"query","required":false,"description":"Page number of the request","schema":{"type":"integer","description":"Page number of the request"},"example":"1"},{"name":"pageSize","in":"query","required":false,"description":"Number of items per page","schema":{"type":"integer","description":"Number of items per page"},"example":"10"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/list-selection-product-sale-infos":{"post":{"operationId":"cloud_aliyun_linkedmall_list_selection_product_sale_infos","summary":"Query product sales information for the selection pool in batches","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products/saleInfo/commands/list","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["productIds","purchaserId"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"divisionCode":{"type":"string","description":"Area code (recommended to use a five-level township/street-level address code)"},"productIds":{"type":"array","description":"Collection of product IDs to query, supporting batch queries of 1 to 10 items"},"purchaserId":{"type":"string","description":"Purchaser ID"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/list-selection-products":{"get":{"operationId":"cloud_aliyun_linkedmall_list_selection_products","summary":"Retrieves a list of products from a product selection pool","description":"GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}},{"name":"pageSize","in":"query","required":true,"description":"The number of entries per page. Valid values: 1 to 20","schema":{"type":"integer","description":"The number of entries per page. Valid values: 1 to 20"},"example":"10"},{"name":"pageNumber","in":"query","required":true,"description":"The page number. The value must be 1 or greater","schema":{"type":"integer","description":"The page number. The value must be 1 or greater"},"example":"1"},{"name":"purchaserId","in":"query","required":true,"description":"The ID of the purchaser","schema":{"type":"string","description":"The ID of the purchaser"},"example":"PID22000009"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/list-selection-sku-sale-infos":{"post":{"operationId":"cloud_aliyun_linkedmall_list_selection_sku_sale_infos","summary":"Query SKU sales information for items in the selection pool in batch","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/skus/saleInfo/commands/list","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["purchaserId","skuQueryParams"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"divisionCode":{"type":"string","description":"The division code. A level-5 township or sub-district address code is recommended"},"purchaserId":{"type":"string","description":"The purchaser ID"},"skuQueryParams":{"type":"array","description":"The product query parameters. The maximum number of SKUs that can be queried in a single request is 20"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/query-child-division-code":{"post":{"operationId":"cloud_aliyun_linkedmall_query_child_division_code","summary":"Queries child division codes","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/division/commands/queryChildDivisionCode","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["divisionCode"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"divisionCode":{"type":"string","description":"divisionCode"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/query-orders":{"post":{"operationId":"cloud_aliyun_linkedmall_query_orders","summary":"Lists orders","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/orders/commands/query","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["pageNumber","pageSize"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"orderIdList":{"type":"array","description":"The collection of primary order IDs"},"outPurchaseOrderId":{"type":"string","description":"The external purchase order ID"},"pageNumber":{"type":"integer","description":"The page number"},"pageSize":{"type":"integer","description":"The number of entries per page"},"purchaseOrderId":{"type":"string","description":"The purchase order ID"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/render-purchase-order":{"post":{"operationId":"cloud_aliyun_linkedmall_render_purchase_order","summary":"Renders a purchase order and returns both sellable and unsellable products. Customers can then select the…","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaseOrders/commands/render","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["buyerId","deliveryAddress","productList"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"buyerId":{"type":"string","description":"The actual buyer ID for distribution. Assign a unique ID to each buyer. Do not use the same ID for different buyers."},"deliveryAddress":{"type":"object","description":"The address information"},"extInfo":{"type":"object","description":"The extension information"},"productList":{"type":"array","description":"The product list. Maximum number of SKUs per purchase order: 20"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/render-refund-order":{"post":{"operationId":"cloud_aliyun_linkedmall_render_refund_order","summary":"Reverse Single Rendering","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds/commands/render","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bizClaimType","goodsStatus","orderLineId"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"bizClaimType":{"type":"integer","description":"Refund Type: 1 for refund only, 3 for return and refund"},"goodsStatus":{"type":"integer","description":"Goods Status: 4 for not shipped, 1 for not received, 2 for received"},"orderLineId":{"type":"string","description":"Sub-distribution order ID"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/search-products":{"post":{"operationId":"cloud_aliyun_linkedmall_search_products","summary":"Queries products based on various conditions and returns paginated results","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/selection-group/product/command/searchProduct","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["pageNumber","pageSize","purchaserId"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"brandName":{"type":"string","description":"The brand name"},"categoryIds":{"type":"array","description":"The category IDs"},"createEndTime":{"type":"string","description":"The end time of the creation. Format: yyyy-MM-dd HH:mm:ss"},"createStartTime":{"type":"string","description":"The start time of the creation. Format: yyyy-MM-dd HH:mm:ss"},"distributionHighPrice":{"type":"integer","description":"The maximum distribution purchase price. Unit: cents"},"distributionHighPriceRatio":{"type":"integer","description":"The maximum distribution premium rate. A value of 244 indicates 2.44%"},"distributionLowPrice":{"type":"integer","description":"The minimum distribution purchase price. Unit: cents"},"distributionLowPriceRatio":{"type":"integer","description":"The minimum distribution premium rate. A value of 133 indicates 1.33%"},"highMarkPrice":{"type":"integer","description":"The maximum strikethrough price. Unit: cents"},"highPrice":{"type":"integer","description":"The maximum suggested retail price. Unit: cents"},"inGroup":{"type":"string","description":"Specifies whether the product is added to the inventory"},"inGroupEndTime":{"type":"string","description":"The end time when the product was added to the inventory. Format: yyyy-MM-dd HH:mm:ss"},"inGroupStartTime":{"type":"string","description":"The start time when the product was added to the inventory. Format: yyyy-MM-dd HH:mm:ss"},"inventoryRiskLevel":{"type":"string","description":"The inventory risk level"},"lmItemId":{"type":"string","description":"The LM product ID"},"lowMarkPrice":{"type":"integer","description":"The minimum strikethrough price. Unit: cents"},"lowPrice":{"type":"integer","description":"The minimum suggested retail price. Unit: cents"},"modifyEndTime":{"type":"string","description":"The end time of the modification. Format: yyyy-MM-dd HH:mm:ss"},"modifyStartTime":{"type":"string","description":"The start time of the modification. Format: yyyy-MM-dd HH:mm:ss"},"orderBy":{"type":"string","description":"The field used for sorting. This parameter must be used in combination with the sort direction parameter"},"orderDirection":{"type":"string","description":"The sort direction. This parameter must be used in combination with the sort field parameter"},"pageNumber":{"type":"integer","description":"The page number"},"pageSize":{"type":"integer","description":"The number of entries per page. Maximum value: 20"},"platform":{"type":"string","description":"The source platform"},"productId":{"type":"string","description":"The product ID"},"productName":{"type":"string","description":"The product name"},"productStatus":{"type":"string","description":"The product status"},"purchaserId":{"type":"string","description":"The ID of the purchaser"},"taxRate":{"type":"string","description":"The tax rate. You can combine multiple tax rate enum values as input parameters. Separate them with commas (,). Example: Rate0,Rate1.…"},"tradeModeAndCredit":{"type":"string","description":"The sales mode"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/selection-group-add-product":{"post":{"operationId":"cloud_aliyun_linkedmall_selection_group_add_product","summary":"The distributor takes delivery of goods","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/selection-group/product/command/addProduct","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["productIds","purchaserId"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"productIds":{"type":"array","description":"Collection of product IDs to add You can add up to 30 products per call"},"purchaserId":{"type":"string","description":"Purchaser ID"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/selection-group-remove-product":{"post":{"operationId":"cloud_aliyun_linkedmall_selection_group_remove_product","summary":"Removes products from a distributor's stock","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/selection-group/product/command/removeProduct","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["productIds","purchaserId"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"productIds":{"type":"array","description":"A list of IDs for the products to be removed from stock. A single call supports a maximum of 30 products"},"purchaserId":{"type":"string","description":"The ID of the purchaser"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/split-purchase-order":{"post":{"operationId":"cloud_aliyun_linkedmall_split_purchase_order","summary":"Splits a purchase order and renders the resulting parent-child order structure. This API returns a list of…","description":"POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaseOrders/commands/split","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["buyerId","deliveryAddress","productList"],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"},"buyerId":{"type":"string","description":"The actual buyer ID for distribution. Assign a unique ID to each buyer. Do not use the same ID for different buyers."},"deliveryAddress":{"type":"object","description":"The address information"},"extInfo":{"type":"object","description":"The extension information"},"productList":{"type":"array","description":"The product list. Maximum number of SKUs per purchase order: 20"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-linkedmall/version":{"post":{"operationId":"cloud_aliyun_linkedmall_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://linkedmall-distributor.cn-zhangjiakou.aliyuncs.com","https://linkedmall.aliyuncs.com","https://linkedmall.cn-hangzhou.aliyuncs.com"],"default":"https://linkedmall.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://linkedmall.cn-hangzhou.aliyuncs.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}