领兴ERP
v1.0.0LinkFox 包装的领星(Lingxing)ERP 技能「linkfox-lingxing-erp」:由 LinkFox Skills 仓库收录分发,封装领星官方 OpenAPI 文档与脚本用法,底层仍直连 openapi.lingxing.com(非 LinkFox 自建网关)。覆盖约 373 个接口场景,含...
运行时依赖
安装命令
点击复制技能文档
领星 ERP OpenAPI(LinkFox 包装版) 本 skill 是 LinkFox 对领星(Lingxing)官方开放能力的包装:name 为 linkfox-lingxing-erp,内容与领星侧 OpenAPI 文档及 scripts/lingxing.py 保持一致,由 LinkFox 仓库统一版本管理;认证与请求仍发往 领星官方域名。速查见 references/api.md。 查询领星 ERP 全模块数据,支持 373 个接口,覆盖广告、销售、产品、财务、统计、FBA、仓库、采购、客服、多平台等全业务线。 环境变量配置 export LINGXING_APP_ID=your_app_id export LINGXING_APP_SECRET=your_app_secret # 可选:设置默认店铺 SID,无需每次在 --params 中传入 export LINGXING_SID=your_sid 在领星 ERP -> 开放接口菜单中获取 AppID 和 AppSecret。 使用方式 以下命令均在 本 skill 根目录(含 SKILL.md 与 scripts/ 的目录)下执行。 # 列出所有已授权亚马逊店铺,获取 SID python3 scripts/lingxing.py --list-stores # 查看所有支持的接口 python3 scripts/lingxing.py --api help # 基础调用 python3 scripts/lingxing.py --api <接口名> --params '' # 自动翻页获取全部数据 python3 scripts/lingxing.py --api <接口名> --params '' --all # 自定义翻页大小 python3 scripts/lingxing.py --api <接口名> --params '' --all --page-size 50 输出为 JSON 到 stdout,翻页进度输出到 stderr。 调用示例 # 第一步:查询店铺列表获取 SID python3 scripts/lingxing.py --list-stores export LINGXING_SID=813 # 广告报表 python3 scripts/lingxing.py \ --api spCampaignReports \ --params '{"report_date": "2024-01-01"}' # 亚马逊订单(自动翻页) python3 scripts/lingxing.py \ --api mwsOrders \ --params '{"start_date": "2024-01-01", "end_date": "2024-01-31"}' --all # 亚马逊 Listing python3 scripts/lingxing.py \ --api mwsListing \ --params '{"sid": "813", "is_pair": 1, "is_delete": 0}' --all # 产品列表 python3 scripts/lingxing.py \ --api ProductLists --params '{"offset": 0, "length": 20}' # 利润报表(ASIN维度) python3 scripts/lingxing.py \ --api profitAsin \ --params '{"sids": "813", "start_date": "2024-01-01", "end_date": "2024-01-31"}' # ASIN日销量 python3 scripts/lingxing.py \ --api AsinDailyLists \ --params '{"sid": 813, "start_date": "2024-01-01", "end_date": "2024-01-07"}' --all # FBA发货单列表 python3 scripts/lingxing.py \ --api FBAShipmentList \ --params '{"sid": 813}' --all # 亚马逊源表-全部订单 python3 scripts/lingxing.py \ --api AllOrders \ --params '{"sid": 813, "start_date": "2024-01-01", "end_date": "2024-01-31"}' --all # 仓库列表 python3 scripts/lingxing.py \ --api WarehouseLists --params '{"offset": 0, "length": 50}' # Review列表(v2,支持更多筛选) python3 scripts/lingxing.py \ --api reviewV2 --params '{"sid": 813, "offset": 0, "length": 20}' # 多平台订单(V2) python3 scripts/lingxing.py \ --api MultiPlatOrderV2 \ --params '{"start_date": 1704067200, "end_date": 1706745600}' --all # TikTok广告主列表 python3 scripts/lingxing.py \ --api queryAdvertiserList \ --params '{"length": 100}' # 补货建议汇总 python3 scripts/lingxing.py \ --api GetSummaryList \ --params '{"sid_list": [813]}' --all 接口总览(373个) 新广告报表(37个) 接口详见 references/newad-report.md。 分组 接口 SP报表(8) spCampaignReports, campaignPlacementReports, spAdGroupReports, spProductAdReports, spKeywordReports, spTargetReports, asinReports, queryWordReports SB报表(8) hsaCampaignReports, hsaCampaignPlacementReports, hsaAdGroupReports, listHsaTargetingReport, hsaQueryWordReports, hsaPurchasedAsinReports, listHsaProductAdReport, listHsaKeywordPlacementReport SD报表(6) sdCampaignReports, sdAdGroupReports, sdProductAdReports, sdTargetReports, sdAsinReports, sdMatchTargetReports SP小时(5) spCampaignHourData, spAdPlacementHourData, spAdGroupHourData, spAdvertiseHourData, spTargetHourData SB小时(4) sbCampaignHourData, sbAdGroupHourData, sbTargetHourData, sbAdPlacementHourData SD小时(4) sdCampaignHourData, sdAdGroupHourData, sdAdvertiseHourData, sdTargetHourData 其他(2) dspReportOrderList, ProductAnalysisList 广告基础数据(21个) 接口详见 references/basedata.md。 分组 接口 账号(1) dspAccountList 组合(1) portfolios SP(6) spCampaigns, spAdGroups, spProductAds, spKeywords, spTargets, spNegativeTargetsOrKeywords SB(6) hsaCampaigns, hsaAdGroups, hsaProductAds, sbTargeting, hsaNegativeKeywords, hsaNegativeTargets, sbDivideAsinReports SD(5) sdCampaigns, sdAdGroups, sdProductAds, sdTargets, sdNegativeTargets 报表下载(1) abaReport 基础数据(8个) 接口详见 references/basicdata-full.md。 AccoutLists(GET), AllMarketplace(GET), AttachmentDownload, ConceptSellerLists(GET), Currency, CustomAttachmentDownload, StateList, WorldStateLists 销售(39个) 接口详见 references/sale-ops.md(订单/Listing核心4个)+ references/sale-full.md(其余35个)。 分组 接口 订单(7) mwsOrders, OrderDetail, FBMOrderList, FBMOrderDetail, MCFOrderList, RefundOrder, afterSaleList Listing(5) mwsListing, sale_ProductList, QueryProductList, GetPrices, listingOperateLogPageList 退货(3) orderReturnInformation, ProductInformation, LogisticsInformation 促销(12) promotionListingList, promotionListingDetailCoupon/Manage/PrimeDiscount/SecKill, promotionalActivitiesCouponList/ManageList/SecKillList, promotionCouponAllDetailBatch/ManagementAllDetailBatch/PrimeDiscountAllDetailBatch/SecKillAllDetailBatch 运营(7) scOrderSetRemark, adjustPriceAdjustPriceManual, fbaFeeDifferenceList/MskuList, globalTagPageList, queryListingRelationTagList, GetFulfillmentResult 刊登(5) PublishManageCategoryRoot/Children, PublishManageGetProductType, GetMerchantShippingGroup 产品(14个) 接口详见 references/product.md。 ProductLists, ProductDetails, BrandLists, BrandDetails, ProductImage, ProductVideo, ProductSpec, ProductCategory, ProductTag, ProductReview, ProductQuestion, ProductAnswer, ProductSku, ProductInventory