Chuyển tới nội dung chính

v2.ams.get_conversion_report

GET /api/v2/ams/get_conversion_report

Retrieve the shop's conversion report with details about each order, item, affiliate, campaign.You can filter results using one or multiple time ranges, and the final result will be the intersection of these ranges. Due to data volume limitations, the tối đa queryable time span is three months, etc.Tối đa data can be viewed is 500 pages, please export data for more details.

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/ams/get_conversion_report

Tham số chung

TênKiểuMẫuMô tả
partner_idint1Partner ID được gán khi đăng ký thành công. Bắt buộc cho tất cả các yêu cầu.
timestamptimestamp1610000000Dùng để chỉ định thời gian của yêu cầu. Bắt buộc cho tất cả các yêu cầu. Hết hạn sau 5 phút.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1Token truy cập API, dùng để xác định quyền của bạn đối với API. Có thể sử dụng nhiều lần và hết hạn sau 4 giờ.
shop_idint600000Mã định danh duy nhất của Shopee cho một cửa hàng. Tham số bắt buộc cho hầu hết các API.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature generated by partner_id, api path, timestamp, access_token, shop_id and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2

Tham số Request

TênKiểuBắt buộcMẫuMô tả
page_noint32True1Chỉ định số trang dữ liệu cần trả về in the current call. Starting from 1. If data is more than one page, the page_no can be some entry to start next call.
page_sizeint32True20Number of records returned per page, the tối đa limit is 500, and page_no * page_size must be <= 10000.
order_snstringFalseYSWVY8D7OUMã định danh duy nhất of the order.
affiliate_idint64False11346460002ID of the affiliate who promoted the item.
item_idint64False3903624400ID of the product purchased.
item_namestringFalseitem1Product's name.
l1_category_idint64False104136Hierarchical product category classification. (L1 Category)
l2_category_idint64False241360Hierarchical product category classification. (L2 category)
l3_category_idint64False404136Hierarchical product category classification. (L3 Category)
order_statusstringFalseUnpaidOrder Status. Các giá trị áp dụng: Unpaid Pending Completed Cancelled
verified_statusstringFalseUnverifiedVerified Status. Các giá trị áp dụng: Unverified Valid Invalid
buyer_statusstringFalseNewBuyer Status. Các giá trị áp dụng: New Existing
attr_campaign_idint64False18017ID referencing the campaign rule applied.
campaign_partnerstringFalseauto.1Name/ID of campaign partner.
seller_campaign_typestringFalseTargetCampaignSeller Campaign Type. Các giá trị áp dụng: TargetCampaign OpenCampaign MCNCampaign
deduction_statusstringFalsePendingDeductionDeduction Status. Các giá trị áp dụng: PendingDeduction Deducted
deduction_methodstringFalseOrderEscrowDeduction Method. Các giá trị áp dụng: OrderEscrow SellerWallet AutoAdjustment SVSPaymentLink OfflineSettlement AMSCredit
place_order_time_starttimestampFalse1753459200Start time (inclusive) of order placement, in timestamp format.
place_order_time_endtimestampFalse1756051199End time (inclusive) of order placement, in timestamp format.
order_completed_time_starttimestampFalse1753459200Start time (inclusive) of order completion, in timestamp format.
order_completed_time_endtimestampFalse1756051199End time (inclusive) of order completion, in timestamp format.
conversion_completed_time_starttimestampFalse1753459200Start time (inclusive) of final completion, in timestamp format.
conversion_completed_time_endtimestampFalse1756051199End time (inclusive) of final completion, in timestamp format.
ams_deduction_time_starttimestampFalse1753459200Start time (inclusive) of fee deduction, in timestamp format.
ams_deduction_time_endtimestampFalse1756051199End time (inclusive) of fee deduction, in timestamp format.

Tham số Response

TênKiểuMẫuMô tả
errorstringerror_paramLoại lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi.
messagestringInvalid page_sizeChi tiết lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi.
request_idstringb937c04e554847789cbf3fe33a0ad5f1Mã định danh của yêu cầu API dùng để theo dõi lỗi.
responseobjectResponse payload containing result data.
listobject[]Array of order records. Each object contains order and commission details.
order_snstringYSWVY8D7OUMã định danh duy nhất of the order.
order_statusstringPendingCurrent status of the order (e.g., Pending, Completed, Cancelled).
verified_statusstringUnverifiedVerification status of the order (Unverified, Verified).
place_order_timestring2025/8/10 15:36:22Time when the order was placed.
order_completed_timestring2025/8/10 13:10:00Time when the order was marked as completed.
conversion_completed_timestring2025/8/9 17:38:54Time when the conversion (affiliate action) was completed.
affiliate_idint6411393990003Mã định danh duy nhất of the affiliate.
affiliate_namestringYoyi popupShopee display name of the affiliate who promoted the item.
affiliate_usernamestringyiyi.test.0206.19Affiliate's Shopee login username.
linked_mcnstringauto.id.108MCN (Multi-Channel Network) linked with the affiliate, if any.
order_brand_commissionstring2999.7Commission (amount) for the whole order, paid by the seller.
channelstringTelegramTraffic channel or platform where the promotion took place.
order_typestringDirect OrderType of order: Direct Order or Indirect Order.
buyer_statusstringExistingBuyer Status. Các giá trị áp dụng: New Existing
itemsobject[]
item_idint643903624400Mã định danh duy nhất of the item in the order.
item_namestringitem1Name of the item in the order.
model_idint641232348722SKU/ID biến thểentifier for the item.
l1_category_idint64104136Level-1 global ID danh mục classification of the item.
l2_category_idint64204136Level-2 global ID danh mục classification of the item.
l3_category_idint64404136Level-3 global ID danh mục classification of the item.
promotion_idstring36262963_0_0Identifier of the promotion campaign linked to the order.
priceint649090Item price in cents (or smallest currency unit).
qtyint641Quantity of the item purchased.
seller_campaign_typestringSeller Open CampaignType of seller campaign: 1. Seller Open Campaign – Open to all affiliates. 2. Seller Target Campaign – Restricted to designated affiliates.
attr_campaign_idint641130273167000412Campaign attribute ID associated with the order.
purchase_valueint649099Total purchase value of the order in cents (or smallest currency unit).
refund_amountstring50Amount refunded for the order.
item_brand_commissionstring899.91Commission (amount) for the item, paid by the seller.
item_brand_commission_rate_to_affiliatestring10%Tỷ lệ hoa hồng allocated to the affiliate for the item.
item_brand_commission_to_affiliatestring899.91Commission (amount) allocated to the affiliate for the item.
item_brand_commission_rate_to_mcnstring33%Tỷ lệ hoa hồng allocated to the MCN for the item.
item_brand_commission_to_mcnstring2999.7Commission (amount) allocated to the MCN for the item.
campaign_partnerstringtestid.mcn.0Partner identifier for the campaign.
total_countint64345Tổng số entities that match the tình trạng.
has_morebooleantrueThis is to indicate whether the list is more than one page. If this value is true, you may want to continue to check next page to retrieve the rest of datas.

Unirest.setTimeouts(0, 0); HttpResponse<String> response = Unirest.get("https://partner.shopeemobile.com/api/v2/ams/get\_conversion\_report?access\_token=access\_token&affiliate\_id=11346460002&ams\_deduction\_time\_end=1756051199&ams\_deduction\_time\_start=1753459200&attr\_campaign\_id=18017&buyer\_status=New&campaign\_partner=auto.1&conversion\_completed\_time\_end=1756051199&conversion\_completed\_time\_start=1753459200&deduction\_method=OrderEscrow&deduction\_status=PendingDeduction&item\_id=3903624400&item\_name=item1&l1\_category\_id=104136&l2\_category\_id=241360&l3\_category\_id=404136&order\_completed\_time\_end=1756051199&order\_completed\_time\_start=1753459200&order\_sn=YSWVY8D7OU&order\_status=Unpaid&page\_no=1&page\_size=20&partner\_id=partner\_id&place\_order\_time\_end=1756051199&place\_order\_time\_start=1753459200&seller\_campaign\_type=TargetCampaign&shop\_id=shop\_id&sign=sign&timestamp=timestamp&verified\_status=Unverified") .asString();<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://partner.shopeemobile.com/api/v2/ams/get\_conversion\_report?access\_token=access\_token&affiliate\_id=11346460002&ams\_deduction\_time\_end=1756051199&ams\_deduction\_time\_start=1753459200&attr\_campaign\_id=18017&buyer\_status=New&campaign\_partner=auto.1&conversion\_completed\_time\_end=1756051199&conversion\_completed\_time\_start=1753459200&deduction\_method=OrderEscrow&deduction\_status=PendingDeduction&item\_id=3903624400&item\_name=item1&l1\_category\_id=104136&l2\_category\_id=241360&l3\_category\_id=404136&order\_completed\_time\_end=1756051199&order\_completed\_time\_start=1753459200&order\_sn=YSWVY8D7OU&order\_status=Unpaid&page\_no=1&page\_size=20&partner\_id=partner\_id&place\_order\_time\_end=1756051199&place\_order\_time\_start=1753459200&seller\_campaign\_type=TargetCampaign&shop\_id=shop\_id&sign=sign&timestamp=timestamp&verified\_status=Unverified', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; curl --location --request GET 'https://partner.shopeemobile.com/api/v2/ams/get\_conversion\_report?access\_token=access\_token&affiliate\_id=11346460002&ams\_deduction\_time\_end=1756051199&ams\_deduction\_time\_start=1753459200&attr\_campaign\_id=18017&buyer\_status=New&campaign\_partner=auto.1&conversion\_completed\_time\_end=1756051199&conversion\_completed\_time\_start=1753459200&deduction\_method=OrderEscrow&deduction\_status=PendingDeduction&item\_id=3903624400&item\_name=item1&l1\_category\_id=104136&l2\_category\_id=241360&l3\_category\_id=404136&order\_completed\_time\_end=1756051199&order\_completed\_time\_start=1753459200&order\_sn=YSWVY8D7OU&order\_status=Unpaid&page\_no=1&page\_size=20&partner\_id=partner\_id&place\_order\_time\_end=1756051199&place\_order\_time\_start=1753459200&seller\_campaign\_type=TargetCampaign&shop\_id=shop\_id&sign=sign&timestamp=timestamp&verified\_status=Unverified' import requests url = "https://partner.shopeemobile.com/api/v2/ams/get\_conversion\_report?access\_token=access\_token&affiliate\_id=11346460002&ams\_deduction\_time\_end=1756051199&ams\_deduction\_time\_start=1753459200&attr\_campaign\_id=18017&buyer\_status=New&campaign\_partner=auto.1&conversion\_completed\_time\_end=1756051199&conversion\_completed\_time\_start=1753459200&deduction\_method=OrderEscrow&deduction\_status=PendingDeduction&item\_id=3903624400&item\_name=item1&l1\_category\_id=104136&l2\_category\_id=241360&l3\_category\_id=404136&order\_completed\_time\_end=1756051199&order\_completed\_time\_start=1753459200&order\_sn=YSWVY8D7OU&order\_status=Unpaid&page\_no=1&page\_size=20&partner\_id=partner\_id&place\_order\_time\_end=1756051199&place\_order\_time\_start=1753459200&seller\_campaign\_type=TargetCampaign&shop\_id=shop\_id&sign=sign&timestamp=timestamp&verified\_status=Unverified" payload={} headers = { } response = requests.RPCRequest("GET",url,headers=headers, data=payload, allow_redirects=False) print(response.text)

], "campaign_partner": "testid.mcn.0" } ], "total_count": 345, "has_more": true } }