{"id":31917928,"url":"https://github.com/hiscaler/temu-go","last_synced_at":"2026-03-05T16:16:32.317Z","repository":{"id":253333679,"uuid":"843189485","full_name":"hiscaler/temu-go","owner":"hiscaler","description":"Temu SDK for Golang","archived":false,"fork":false,"pushed_at":"2025-09-25T08:21:43.000Z","size":1243,"stargazers_count":17,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T10:21:51.092Z","etag":null,"topics":["e-ecommerce","golang","pdd","temu"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hiscaler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-16T01:13:05.000Z","updated_at":"2025-09-25T08:21:47.000Z","dependencies_parsed_at":"2024-08-28T04:46:46.920Z","dependency_job_id":"913d33ad-2e5d-4be1-9af6-11d4c4f9ce7a","html_url":"https://github.com/hiscaler/temu-go","commit_stats":null,"previous_names":["hiscaler/temu-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hiscaler/temu-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Ftemu-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Ftemu-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Ftemu-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Ftemu-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiscaler","download_url":"https://codeload.github.com/hiscaler/temu-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Ftemu-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016923,"owners_count":26085913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["e-ecommerce","golang","pdd","temu"],"created_at":"2025-10-13T20:51:45.936Z","updated_at":"2026-03-05T16:16:32.304Z","avatar_url":"https://github.com/hiscaler.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Temu SDK for Golang\n===================\n\n## API 请求地址\n\n| 环境          | url                                              | 使用场景              |\n|-------------|--------------------------------------------------|-------------------|\n| 正式环境 CN     | https://openapi.kuajingmaihuo.com/openapi/router | 全/半托发品，全托寄样、备货和发货 |\n| 正式环境 US     | https://openapi-b-us.temu.com/openapi/router     | US半托订单、履约         |\n| 正式环境 EU     | https://openapi-b-eu.temu.com/openapi/router     | EU半托订单、履约         |\n| 正式环境 GLOBAL | https://openapi-b-global.temu.com/openapi/router | GLOBAL半托订单、履约     |\n| 正式环境 本本US   | https://openapi-b-us.temu.com/openapi/router     | US本本发品、订单和履约全流程   |\n| 测试环境 本本US   | https://openapi-b-us.temudemo.com/openapi/router | US本本发品、订单和履约全流程   |\n\n## 服务说明\n\n|   | 服务               | 说明  |\n|---|------------------|-----|\n| 1 | PurchaseOrder    | 备货单 |\n| 2 | ShipOrderStaging | 发货台 |\n| 3 | ShipOrder        | 发货单 |\n\n## 使用\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/goccy/go-json\"\n\t\"github.com/hiscaler/temu-go\"\n\t\"github.com/hiscaler/temu-go/config\"\n)\n\nfunc main() {\n\tb, err := os.ReadFile(\"./config/config_test.json\")\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"Read config error: %s\", err.Error()))\n\t}\n\tvar c config.Config\n\terr = json.Unmarshal(b, \u0026c)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"Parse config file error: %s\", err.Error()))\n\t}\n\ttemuClient := temu.NewClient(c)\n}\n```\n\n## 服务说明\n\n| 服务地址                                      | 说明             | 查询参数参考地址 |\n|-------------------------------------------|----------------|----------|\n| client.Services.PurchaseOrder.Query       | 备货单查询          |          |\n| client.Services.ShipOrder.Query           | 发货单查询          |          |\n| client.Services.Logistics.Companies       | 物流商            |          |\n| client.Services.Goods.Query               | 商品查询           |          |\n| client.Services.Goods.One                 | 根据商品 SKC ID 查询 |          |\n| client.Services.Goods.Create              | 创建商品           |          |\n| client.Services.Goods.Barcode.NormalGoods | 商品条码查询         |          |\n| client.Services.Goods.Brand.Query         | 查询可绑定的品牌接口     |          |\n\n## 参考文档\n\n\u003e [TEMU 开发者指南](https://seller.kuajingmaihuo.com/sop/view/634117628601810731)\n\n1. [全托管系统对接指南 - 备货及V3发货](https://seller.kuajingmaihuo.com/sop/view/889973754324016047#YSg2AE)\n\n\u003e [TEMU OPEN API 更新日志](https://seller.kuajingmaihuo.com/sop/view/512560460535865385)\n\n\u003e [Partner Platform 文档中心](https://partner.kuajingmaihuo.com/document?cataId=875196199516)\n\n\u003e [半托文档](https://partner-us.temu.com/documentation)\n\n\u003e **SMMS 服务商门户**\n\u003e \n\u003e [API 文档](https://agentpartner.temu.com/document?cataId=875198836203)\n\u003e\n\u003e [开发者文档](https://agentpartner.temu.com/document?cataId=875196199516)\n\u003e \n\u003e [平台公告](https://agentpartner.temu.com/announcement)\n\n## 全托管备货单\n\n### 流程\n\n1. 将备货单数据加入发货台；\n2. 将发货台数据生成采购单；\n3. 打印货物商标、箱唛进行平台发货操作。\n\n### 说明\n\n备货单、采购单是同一个含义，从平台的角度理解是平台向商家下采购单，从商家的角度理解是平台推送过来备货单。\n\n### 注意事项\n\n1. 加入发货台后是不能立即看到物流商数据的\n\n## 半托管\n\n### 名词解释\n\n1. PO 单：Parent Order\n2. O 单：Order\n\n### 半托官方物流下单发货处理\n\n1. 获取待发货订单\n2. 获取发货仓库\n3. 根据仓库、订单获取对应的物流服务商\n4. 下单\n5. 获取面单\n6. 第三方仓库执行发货\n7. 回写到第三方系统标记发货\n\n## 本本\n\n### 什么是本本\n\n只要主体不是大陆/香港的，都是本本","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiscaler%2Ftemu-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiscaler%2Ftemu-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiscaler%2Ftemu-go/lists"}