Lấy danh sách ưu đãi Shopee

Truy vấn: shopeeOfferV2
Kiểu kết quả: ShopeeOfferConnectionV2!

Tham số truy vấn

Trường Kiểu Mô tả Ví dụ
keyword String Tìm kiếm theo tên ưu đãi quần áo
sortType Int LATEST_DESC = 1
Sắp xếp ưu đãi theo thời gian cập nhật mới nhất

HIGHEST_COMMISSION_DESC = 2
Sắp xếp ưu đãi theo tỷ lệ hoa hồng từ cao đến thấp
1
page Int Số trang 2
limit Int Số lượng dữ liệu mỗi trang 10

Tham số phản hồi

Trường Kiểu Mô tả Ví dụ
nodes [ShopeeOfferV2]! Danh sách dữ liệu
pageInfo PageInfo! Thông tin trang

Cấu trúc ShopeeOfferV2

Trường Kiểu Mô tả Ví dụ
commissionRate String Tỷ lệ hoa hồng, ví dụ: đặt "0.0123" nếu tỷ lệ là 1.23%
imageUrl String URL hình ảnh
offerLink String Liên kết ưu đãi
originalLink String Liên kết gốc
offerName String Tên ưu đãi
offerType Int CAMPAIGN_TYPE_COLLECTION = 1;
CAMPAIGN_TYPE_CATEGORY = 2;
categoryId Int64 Trả về categoryId khi offerType = CAMPAIGN_TYPE_CATEGORY
collectionId Int64 Trả về collectionId khi offerType = CAMPAIGN_TYPE_COLLECTION
periodStartTime Int Thời gian bắt đầu ưu đãi
periodEndTime Int Thời gian kết thúc ưu đãi

Cấu trúc PageInfo

Trường Kiểu Mô tả Ví dụ
page Int Số trang hiện tại 2
limit Int Số lượng dữ liệu mỗi trang 10
hasNextPage Bool Có trang tiếp theo hay không true

Ví dụ

curl -X POST 'https://open-api.affiliate.shopee.vn/graphql' \
-H 'Authorization:SHA256 Credential=123456, Signature=x9bc0bd3ba6c41d98a591976bf95db97a58720a9e6d778845408765c3fafad69d, Timestamp=1234567890' \
-H 'Content-Type: application/json' \
--data-raw '{"query":"{\n    shopeeOfferV2(keyword: \"thời trang\", sortType: 1, page: 1, limit: 10) {\n        nodes {\n            commissionRate\n            imageUrl\n            offerLink\n            offerName\n            offerType\n            periodStartTime\n            periodEndTime\n        }\n        pageInfo {\n            page\n            limit\n            hasNextPage\n        }\n    }\n}"}'

Thử ngay

Còn 5/5 lần thử
Tìm kiếm theo tên ưu đãi

Kết quả

Chưa có kết quả. Hãy thử API ở trên.