Tất cả API

Shopee Affiliate API

Đang bánE-commerce API

Cổng tiếp thị liên kết Shopee Affiliate & Open API GraphQL

  • 112 endpoint Shopee Affiliate
  • Cookie quản lý theo API key
  • Tạo link rút gọn shp.ee & s.shopee.vn
  • Hoa hồng Xtra & Ưu đãi độc quyền
  • Báo cáo chuyển đổi, Click & Thanh toán

Chọn gói

Mua là kích hoạt ngay trên API key của bạn. Mua nhiều tháng được giảm giá.

Free

Có API key là dùng được.

Miễn phí

Mặc định cho mọi API key, làm mới mỗi tháng

Hạn mức

1.000 lượt/tháng

Tốc độ

10 lượt/phút

  • Tự áp dụng cho mọi API key
  • Gọi được mọi endpoint Affiliate
  • Lượt làm mới đầu mỗi tháng

Basic

Cho KOC/KOL và tool cá nhân.

199.000đ/tháng

Thanh toán bằng số dư ví

Hạn mức

12.000 lượt/tháng

Tốc độ

40 lượt/phút

  • Tạo link rút gọn shp.ee & s.shopee.vn
  • Tra cứu Hoa hồng Xtra & Sản phẩm
  • Báo cáo chuyển đổi & lượt Click
Phổ biến nhất

Pro

Cho hệ thống hoàn tiền & MCN/Publisher.

399.000đ/tháng

Thanh toán bằng số dư ví

Hạn mức

50.000 lượt/tháng

Tốc độ

120 lượt/phút

  • Toàn bộ 112 endpoint Shopee Affiliate
  • Chuyển đổi hàng loạt & Open API GraphQL
  • Đối soát thanh toán, hóa đơn & thuế

Business

Cho team và lưu lượng lớn.

990.000đ/tháng

Thanh toán bằng số dư ví

Hạn mức

200.000 lượt/tháng

Tốc độ

300 lượt/phút

  • Mọi quyền lợi Pro
  • Báo trước khi API thay đổi
  • Nhóm hỗ trợ riêng

Doanh nghiệp

Hạn mức riêng, hợp đồng và xuất hoá đơn.

Liên hệ

Báo giá theo nhu cầu

Hạn mức

Không giới hạn

Tốc độ

Không giới hạn tốc độ

  • Hạn mức theo nhu cầu
  • Endpoint theo yêu cầu
  • Xuất hoá đơn VAT

Thuê Shopee Affiliate API trên ChoCode

Shopee Affiliate API của ChoCode là cổng RESTful JSON để lập trình viên và người bán kết nối với Shopee Affiliate từ hệ thống của mình, gồm 112 endpoint chia thành 13 nhóm. Giá thuê từ 199.000đ/tháng. Gói Free có 1.000 lượt/tháng, 10 lượt/phút.

ChoCode là dịch vụ độc lập, không phải đại diện chính thức của Shopee Affiliate.

Cách gọi Shopee Affiliate API

Tạo API key, gửi key trong header X-API-Key và gọi tới https://shopee-affiliate.chocode.com.vn. Tham số và dữ liệu mẫu của từng endpoint nằm trong tài liệu API.

Danh sách endpoint Shopee Affiliate API

Quản lý Cookie & Phiên (Session)

8
  • 1. 🔑 Thêm / Cập nhật Cookie Shopee Affiliate cá nhân theo API KeyPOST /v1/shopee_affiliate/add_cookie
  • 2. 🔑 Upload file cookies.txt (Netscape / JSON) lưu theo API KeyPOST /v1/shopee_affiliate/upload_cookie_file
  • 3. 🔑 Cập nhật / Bổ sung từng trường Cookie trên FirebasePOST /v1/shopee_affiliate/update_cookie_items
  • 4. 🔑 Kiểm tra trạng thái Cookie & Tài khoản Affiliate hiện tạiGET /v1/shopee_affiliate/get_cookie_status
  • 5. 🔑 Kiểm tra Cookie Shopee Affiliate còn sống (LIVE) hay hết hạnGET /v1/shopee_affiliate/verify_cookie
  • 6. 🔑 Bóc tách & Chuẩn hóa Cookie từ Netscape / cURL / JSON / HeaderPOST /v1/shopee_affiliate/parse_cookie
  • 7. 🔑 Xóa Cookie cá nhân đã lưu trên Firebase của API KeyPOST /v1/shopee_affiliate/delete_cookie
  • 8. 📖 Hướng dẫn chi tiết cách lấy & cấu hình Cookie Shopee AffiliateGET /v1/shopee_affiliate/get_cookie_guide

Tổng quan & Bảng xếp hạng (Dashboard)

5
  • 9. Chỉ số tổng quan Shopee Affiliate Dashboard (Clicks, Đơn hàng, Hoa hồng, GMV)GET /v1/shopee_affiliate/get_dashboard_detail
  • 10. Ngày cập nhật dữ liệu báo cáo mới nhất trên DashboardGET /v1/shopee_affiliate/get_latest_report_date
  • 11. Thời gian cập nhật Bảng xếp hạng sản phẩm trên DashboardGET /v1/shopee_affiliate/get_leaderboard_update_time
  • 12. Bảng xếp hạng Top 5 sản phẩm của tôi (Theo số lượng bán & Hoa hồng ước tính)POST /v1/shopee_affiliate/get_products_rank_list
  • 13. Tải xuống báo cáo chỉ số Dashboard theo ngàyGET /v1/shopee_affiliate/export_dashboard_daily

Hoa hồng Shopee & Danh mục (Shopee & Category Offers)

7
  • 14. Danh sách chiến dịch Hoa hồng Shopee (Shopee Campaign Offers)GET /v1/shopee_affiliate/get_shopee_campaign_offers
  • 15. Chi tiết chiến dịch Hoa hồng Shopee theo banner_id / campaign_idGET /v1/shopee_affiliate/get_shopee_campaign_offer_detail
  • 16. Danh sách Tab danh mục ngành hàng trên trang Hoa hồng (Offer Tabs)GET /v1/shopee_affiliate/get_offer_tab_list
  • 17. Tạo link rút gọn Affiliate cho chiến dịch / trang sự kiện ShopeePOST /v1/shopee_affiliate/create_campaign_affiliate_links
  • 18. Tạo link Affiliate cho danh sách Danh mục ngành hàng (Category Offer Links)POST /v1/shopee_affiliate/create_category_offer_links
  • 19. Cây danh mục ngành hàng sản phẩm Shopee Affiliate (API v1)GET /v1/shopee_affiliate/get_goods_category_list_v1
  • 20. Cây danh mục ngành hàng sản phẩm Shopee Affiliate (API v3)GET /v1/shopee_affiliate/get_goods_category_list_v3

Hoa hồng Xtra (Brand & Shop Offers)

7
  • 21. Danh sách gian hàng Hoa hồng Xtra (Brand / Shop Offers)GET /v1/shopee_affiliate/get_shop_offers
  • 22. Chi tiết mức Hoa hồng Xtra của một Cửa hàng theo shop_idGET /v1/shopee_affiliate/get_shop_offer_detail
  • 23. Tạo link rút gọn Affiliate (shp.ee / s.shopee.vn) cho Cửa hàngPOST /v1/shopee_affiliate/create_shop_affiliate_link
  • 24. Tạo hàng loạt link rút gọn Affiliate cho danh sách Cửa hàng (Shop Offer Links)POST /v1/shopee_affiliate/batch_create_shop_offer_links
  • 25. Danh sách Banner truyền thông của chiến dịch Hoa hồng XtraPOST /v1/shopee_affiliate/get_brand_offer_banners
  • 26. Chi tiết bộ Banner truyền thông của một chiến dịch Brand OfferGET /v1/shopee_affiliate/get_brand_offer_banner_detail
  • 27. Tạo link Affiliate cho Shop qua cổng v1 (/api/v1/link/gen_by_shop)POST /v1/shopee_affiliate/gen_link_by_shop_v1

Hoa hồng Sản phẩm & Ưu đãi độc quyền (Product & Exclusive Offers)

9
  • 28. Danh sách sản phẩm Hoa hồng Sản phẩm kèm link rút gọn s.shopee.vnGET /v1/shopee_affiliate/get_product_offers
  • 29. Danh sách Ưu đãi độc quyền dành riêng cho bạn (Offer For Me)GET /v1/shopee_affiliate/get_exclusive_offers
  • 30. Chi tiết hoa hồng Sản phẩm & Tạo link rút gọn theo shop_id, item_idGET /v1/shopee_affiliate/get_product_offer_detail
  • 31. Tạo link rút gọn Affiliate (shp.ee) cho Sản phẩm theo shop_id & item_idPOST /v1/shopee_affiliate/create_product_affiliate_link
  • 32. Tạo hàng loạt link rút gọn Affiliate (s.shopee.vn) cho danh sách Sản phẩmPOST /v1/shopee_affiliate/batch_create_product_offer_links
  • 33. Thông tin mã giảm giá (Voucher) đính kèm ưu đãi hoa hồngGET /v1/shopee_affiliate/get_offer_voucher_info
  • 34. Thông báo thay đổi mức hoa hồng mới nhất (Latest Offer Updates)POST /v1/shopee_affiliate/get_latest_offer_updates
  • 35. Lịch sử cập nhật chính sách & tỷ lệ hoa hồng (Offer Updates List)GET /v1/shopee_affiliate/get_offer_updates_list
  • 36. Truy vấn thông tin sản phẩm qua cổng Shopee Video Affiliate (WAF-Free)POST /v1/shopee_affiliate/get_sv_affiliate_items

Custom Link, Rút gọn Link & Giải mã Shortlink

10
  • 37. Tạo link rút gọn Shopee Affiliate chính thức (https://shp.ee/...) từ URL bất kỳPOST /v1/shopee_affiliate/create_custom_link
  • 38. Chuyển đổi hàng loạt URL Shopee sang link rút gọn chính thức (https://s.shopee.vn/...)POST /v1/shopee_affiliate/batch_create_custom_links
  • 39. Tạo hàng loạt Custom Link qua GraphQL (batchGetCustomLink)POST /v1/shopee_affiliate/gql_batch_custom_links
  • 40. Giải mã link rút gọn Shopee (s.shopee.vn, shp.ee, vn.shp.ee) & Bóc tách UTM/Sub_IDPOST /v1/shopee_affiliate/resolve_shortlink
  • 41. Bóc tách shop_id & item_id từ mọi định dạng URL Shopee kèm tạo link rút gọnPOST /v1/shopee_affiliate/parse_product_url
  • 42. Tạo Universal Link & App Deeplink (shopeevn://) mở thẳng ứng dụng ShopeePOST /v1/shopee_affiliate/generate_universal_deeplink
  • 43. Tạo Custom Link qua cổng v1 (/api/v1/link/gen_by_custom)POST /v1/shopee_affiliate/gen_link_by_custom_v1
  • 44. Tạo link Sản phẩm qua cổng v1 (/api/v1/link/gen_by_item)POST /v1/shopee_affiliate/gen_link_by_item_v1
  • 45. Tạo hàng loạt link Sản phẩm qua cổng v1 (/api/v1/link/batch_item_links)POST /v1/shopee_affiliate/batch_item_links_v1
  • 46. Lấy thông tin biểu mẫu Excel tạo Custom Link hàng loạtGET /v1/shopee_affiliate/get_batch_custom_link_excel_template

Chiến dịch liên kết (Affiliate Campaigns)

3
  • 47. Danh sách Chiến dịch liên kết (Affiliate Campaigns List)POST /v1/shopee_affiliate/get_affiliate_campaigns_list
  • 48. Kiểm tra có Chiến dịch liên kết mới chưa xem hay khôngGET /v1/shopee_affiliate/check_no_impression_campaign
  • 49. Ghi nhận thao tác xem / bấm vào thẻ Chiến dịch liên kếtPOST /v1/shopee_affiliate/report_campaign_operation

Creative — Product Feed (Datafeed)

2
  • 50. Danh sách nguồn cấp dữ liệu sản phẩm (Product Feed / Datafeed List)GET /v1/shopee_affiliate/get_product_feed_list
  • 51. Lấy danh sách link tải file CSV của một Product DatafeedGET /v1/shopee_affiliate/get_product_feed_links

Báo cáo chuyển đổi, Báo cáo Click & Xuất dữ liệu

9
  • 52. Báo cáo chuyển đổi đơn hàng Shopee Affiliate (Conversion Report)GET /v1/shopee_affiliate/get_conversion_report
  • 53. Chi tiết đối soát chuyển đổi đơn hàng (/api/v3/report/validation_detail/v2)GET /v1/shopee_affiliate/get_conversion_validation_detail
  • 54. Thời gian cập nhật dữ liệu Báo cáo chuyển đổi mới nhấtGET /v1/shopee_affiliate/get_conversion_report_update_time
  • 55. Kiểm tra hạn mức hoa hồng tối đa mỗi đơn hàng (Checkout Commission Cap)GET /v1/shopee_affiliate/get_checkout_commission_cap
  • 56. Báo cáo lượt Click Shopee Affiliate (Click Report)GET /v1/shopee_affiliate/get_click_report
  • 57. Xuất dữ liệu Báo cáo Click ra file CSV (Tối đa 7 ngày/lần)GET /v1/shopee_affiliate/export_click_report
  • 58. Danh sách file báo cáo đã xuất (Export Management v1)GET /v1/shopee_affiliate/get_export_task_list_v1
  • 59. Gửi yêu cầu xuất file báo cáo bất đồng bộ (submitAsyncExportTask)POST /v1/shopee_affiliate/submit_async_export_task
  • 60. Truy vấn tiến trình xuất file báo cáo bất đồng bộ (AsyncExportTaskListQuery)POST /v1/shopee_affiliate/get_async_export_task_list

Thanh toán, Hóa đơn đối soát, Lịch sử thanh toán & Thuế

17
  • 61. Danh sách Hóa đơn đối soát (Settlement Billing List)GET /v1/shopee_affiliate/get_settlement_billing_list
  • 62. Chi tiết một kỳ Hóa đơn đối soát (/api/v3/payment/billing_detail)GET /v1/shopee_affiliate/get_settlement_billing_detail
  • 63. Danh sách hóa đơn đối soát theo tháng (/api/v3/payment/month/bills)GET /v1/shopee_affiliate/get_monthly_bills
  • 64. Giải thích chi tiết cách tính hóa đơn tháng (/api/v3/payment/month/bills/explanation)GET /v1/shopee_affiliate/get_monthly_bills_explanation
  • 65. Chỉ số tổng hợp thanh toán & hạn mức tháng (/api/v3/payment/bill/indices)GET /v1/shopee_affiliate/get_payment_bill_indices
  • 66. Kiểm tra tài khoản có phát sinh hóa đơn đối soát hay chưaGET /v1/shopee_affiliate/check_normal_bill_exist
  • 67. Kiểm tra hóa đơn đối soát mới nhất đang chờ bổ sung chứng từGET /v1/shopee_affiliate/get_latest_unready_invoice_bill
  • 68. Lịch sử thanh toán hoa hồng (Payout Record — getPaymentPayoutBillingList)POST /v1/shopee_affiliate/get_payout_records
  • 69. Chi tiết đợt thanh toán hoa hồng theo payoutId (PayoutDetailQuery)POST /v1/shopee_affiliate/get_payout_detail
  • 70. Kiểm tra đợt thanh toán mới nhất chưa hoàn tất hóa đơn (getLatestUnreadyInvoicePayout)GET /v1/shopee_affiliate/get_latest_unready_invoice_payout
  • 71. Danh sách Hóa đơn phí dịch vụ (Service Fee Invoice List)POST /v1/shopee_affiliate/get_service_fee_invoices
  • 72. Kiểm tra quy định áp dụng phí dịch vụ hóa đơn (GetBillAdditionalInfoQuery)POST /v1/shopee_affiliate/get_bill_additional_info
  • 73. Báo cáo đối soát hoa hồng RPA hàng tháng (QueryAffiliateMonthlyReportQuery)POST /v1/shopee_affiliate/get_affiliate_monthly_report
  • 74. Trạng thái kê khai thuế thu nhập Affiliate (GetIncomeDeclarationStatusInfoQuery)GET /v1/shopee_affiliate/get_income_declaration_status
  • 75. Kiểm tra tính hợp lệ của Mã số thuế / CCCD (IsValidTinQuery)POST /v1/shopee_affiliate/validate_tax_tin
  • 76. Danh sách chứng từ khấu trừ thuế thu nhập năm (Yearly Tax File List)GET /v1/shopee_affiliate/get_yearly_tax_file_list
  • 77. Chi tiết chứng từ khấu trừ thuế năm theo kỳ (/api/v3/payment/yearly_tax_file/detail)GET /v1/shopee_affiliate/get_yearly_tax_file_detail

Thiết lập thanh toán & Ngân hàng (Payment Settings & Banks)

10
  • 78. Thông tin Thiết lập thanh toán, Tài khoản ngân hàng & Hồ sơ thuế hiện tạiGET /v1/shopee_affiliate/get_payment_setting_display
  • 79. Chi tiết bản ghi thiết lập thanh toán (/api/v3/payment_setting/details)GET /v1/shopee_affiliate/get_payment_setting_details
  • 80. Lịch sử các lần cập nhật Thiết lập thanh toán (/api/v3/payment_setting/setting_records)GET /v1/shopee_affiliate/get_payment_setting_records
  • 81. Dữ liệu điền sẵn biểu mẫu Thiết lập thanh toán (/api/v3/payment_setting/prefilled)GET /v1/shopee_affiliate/get_payment_setting_prefilled
  • 82. Thông tin biểu phí & thuế suất khấu trừ thanh toán (/api/v1/payment_setting/setting_rate_info)GET /v1/shopee_affiliate/get_payment_setting_rate_info
  • 83. Danh sách toàn bộ Ngân hàng hỗ trợ nhận thanh toán Shopee AffiliateGET /v1/shopee_affiliate/get_payment_bank_list
  • 84. Danh sách Chi nhánh ngân hàng theo bank_id (/api/v3/payment_setting/bank_branch_list)GET /v1/shopee_affiliate/get_payment_bank_branch_list
  • 85. Danh sách tài khoản ngân hàng của người dùng qua GraphQL (getBankAccountsByUserId)GET /v1/shopee_affiliate/get_user_bank_accounts_gql
  • 86. Danh sách khu vực ngân hàng qua GraphQL (getBankRegions)GET /v1/shopee_affiliate/get_bank_regions_gql
  • 87. Danh sách chi nhánh ngân hàng theo bankNameId qua GraphQL (fetchBankBranchList)POST /v1/shopee_affiliate/get_bank_branches_gql

Open API (open-api.affiliate.shopee.vn/graphql)

9
  • 88. Truy vấn thông tin khóa AppId & Secret trên cổng Open API (/api/v1/open_api/query_auth)GET /v1/shopee_affiliate/get_open_api_auth
  • 89. Tạo chữ ký SHA256 Authorization Header cho Shopee Affiliate Open APIPOST /v1/shopee_affiliate/sign_open_api_payload
  • 90. Truy vấn danh sách Hoa hồng Shopee qua Open API GraphQL (shopeeOfferV2)POST /v1/shopee_affiliate/open_api_shopee_offer_v2
  • 91. Truy vấn danh sách Hoa hồng Xtra qua Open API GraphQL (brandOffer)POST /v1/shopee_affiliate/open_api_brand_offer
  • 92. Truy vấn danh sách Hoa hồng Sản phẩm qua Open API GraphQL (productOfferV2)POST /v1/shopee_affiliate/open_api_product_offer_v2
  • 93. Tạo link rút gọn qua Open API GraphQL (mutation generateShortLink)POST /v1/shopee_affiliate/open_api_generate_short_link
  • 94. Truy vấn Báo cáo chuyển đổi qua Open API GraphQL (conversionReport)POST /v1/shopee_affiliate/open_api_conversion_report
  • 95. Truy vấn Báo cáo đối soát hoa hồng đã duyệt qua Open API GraphQL (validatedReport)POST /v1/shopee_affiliate/open_api_validated_report
  • 96. Thực thi truy vấn GraphQL tùy chỉnh lên https://open-api.affiliate.shopee.vn/graphqlPOST /v1/shopee_affiliate/open_api_raw_graphql

Tài khoản, Cấu hình, Thông báo, Giới thiệu & MCN

16
  • 97. Hồ sơ cá nhân KOL/KOC Shopee Affiliate (/api/v3/user/profile)GET /v1/shopee_affiliate/get_user_profile
  • 98. Trạng thái tài khoản & xét duyệt Shopee Affiliate (/api/v3/user/status)GET /v1/shopee_affiliate/get_user_status
  • 99. Thông tin chi tiết người dùng Shopee Affiliate (/api/v3/user/detail & /api/v1/users/detail)GET /v1/shopee_affiliate/get_user_detail
  • 100. Cấu hình toàn hệ thống Shopee Affiliate (/api/v3/config/website)GET /v1/shopee_affiliate/get_website_config
  • 101. Cấu hình công khai trang chủ Shopee Affiliate (/api/v3/not_login/config/website)GET /v1/shopee_affiliate/get_public_website_config
  • 102. Lấy CSRF Token & Cấu hình phiên v1 (/api/v1/configs)GET /v1/shopee_affiliate/get_v1_configs
  • 103. Cấu hình giao diện trang chủ Shopee Affiliate (/api/v1/homepage/setting)GET /v1/shopee_affiliate/get_homepage_setting
  • 104. Kiểm tra quyền tham gia chương trình Shopee Affiliate (/api/v3/user/check_program_permission)GET /v1/shopee_affiliate/check_program_permission
  • 105. Kiểm tra trạng thái Whitelist AMS (/api/v3/offer/checkInAmsWhiteList)GET /v1/shopee_affiliate/check_ams_whitelist
  • 106. Kiểm tra quyền đối tác Doanh nghiệp (/api/v3/affiliates/check_user_in_enterprise_whitelist)GET /v1/shopee_affiliate/check_enterprise_whitelist
  • 107. Danh sách khung số lượng người theo dõi mạng xã hội (/api/v3/user/follower_range_list)GET /v1/shopee_affiliate/get_follower_range_list
  • 108. Số lượng thông báo chưa đọc trong Hộp thư Affiliate (/api/v1/inbox_message/unread_num)GET /v1/shopee_affiliate/get_inbox_unread_count
  • 109. Danh sách thông báo trong Hộp thư Shopee Affiliate (/api/v1/inbox_message/list)GET /v1/shopee_affiliate/get_inbox_messages
  • 110. Chi tiết nội dung một thông báo trong Hộp thư (/api/v1/inbox_message/detail)GET /v1/shopee_affiliate/get_inbox_message_detail
  • 111. Thông tin Mã giới thiệu bạn bè & Link giới thiệu KOL (/api/v1/referral)GET /v1/shopee_affiliate/get_referral_info
  • 112. Kiểm tra trạng thái liên kết đối tác MCN & Điều khoản AffiliateGET /v1/shopee_affiliate/get_mcn_partnership_info