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

v2.ams.get_validation_report

GET /api/v2/ams/get_validation_report

Retrieve detailed information for a specific validation bill

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/ams/get_validation_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.
validation_idstringTrue602516439202502Mã định danh duy nhất of the billing entry.
validation_monthint32True202502Billing month in the format YYYYMM (e.g., 202405).
campaign_sourcestringTrueShopeeManagedSource of campaign setup. Các giá trị áp dụng: ShopeeManaged Seller
order_snstringFalseCWTUQ80EF9Mã định danh duy nhất of the order.
l1_category_idint64False104136Hierarchical product category classification. (L1 Category)
l2_category_idint64False241360Hierarchical product category classification. (L2 Category)
l3_category_idint64False404136Hierarchical product category classification. (L3 Category)
item_idint64False3702824955Mã định danh duy nhất of the product.
item_namestringFalseitem1The product's name.
verified_statusstringFalseValidVerified Status. Các giá trị áp dụng: Valid Invalid
attr_campaign_idint64False18071ID referencing the campaign rule applied. (Ties to the campaign seller created).
place_order_time_starttimestampTrue1753459200Start time (inclusive) of order placement, in timestamp format.
place_order_time_endtimestampTrue1756051199End time (inclusive) of order placement, 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_namestringYoyi popupDisplay name of the affiliate who promoted the item.
affiliate_usernamestringyiyi.test.0206.19Login username of the affiliate.
linked_mcnstringauto.id.108MCN (Multi-Channel Network) linked with the affiliate, if any.
campaign_partnerstringtestid.mcn.0Partner identifier for the campaign.
order_typestringDirect OrderType of order: Direct Order or Indirect Order.
order_brand_commissionstring2999.7Commission (amount) for the whole order, paid by the seller.
channelstringShopeevideoTraffic channel or platform where the promotion took place.
affiliate_idint6411393990003Mã định danh duy nhất of the affiliate.
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.
priceint6490Item 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_idint641130273167000412ID referencing the campaign rule applied.
purchase_valueint649099Total purchase value of the order in cents (or smallest currency unit).
refund_amountstring50Amount refunded for the item.
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.98Commission (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_mcnstring233.8Commission (amount) allocated to the MCN for the item.
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\_validation\_report?access\_token=access\_token&attr\_campaign\_id=18071&campaign\_source=ShopeeManaged&item\_id=3702824955&item\_name=item1&l1\_category\_id=104136&l2\_category\_id=241360&l3\_category\_id=404136&order\_sn=CWTUQ80EF9&page\_no=1&page\_size=20&partner\_id=partner\_id&place\_order\_time\_end=1756051199&place\_order\_time\_start=1753459200&shop\_id=shop\_id&sign=sign&timestamp=timestamp&validation\_id=602516439202502&validation\_month=202502&verified\_status=Valid") .asString();<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://partner.shopeemobile.com/api/v2/ams/get\_validation\_report?access\_token=access\_token&attr\_campaign\_id=18071&campaign\_source=ShopeeManaged&item\_id=3702824955&item\_name=item1&l1\_category\_id=104136&l2\_category\_id=241360&l3\_category\_id=404136&order\_sn=CWTUQ80EF9&page\_no=1&page\_size=20&partner\_id=partner\_id&place\_order\_time\_end=1756051199&place\_order\_time\_start=1753459200&shop\_id=shop\_id&sign=sign&timestamp=timestamp&validation\_id=602516439202502&validation\_month=202502&verified\_status=Valid', 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\_validation\_report?access\_token=access\_token&attr\_campaign\_id=18071&campaign\_source=ShopeeManaged&item\_id=3702824955&item\_name=item1&l1\_category\_id=104136&l2\_category\_id=241360&l3\_category\_id=404136&order\_sn=CWTUQ80EF9&page\_no=1&page\_size=20&partner\_id=partner\_id&place\_order\_time\_end=1756051199&place\_order\_time\_start=1753459200&shop\_id=shop\_id&sign=sign&timestamp=timestamp&validation\_id=602516439202502&validation\_month=202502&verified\_status=Valid' import requests url = "https://partner.shopeemobile.com/api/v2/ams/get\_validation\_report?access\_token=access\_token&attr\_campaign\_id=18071&campaign\_source=ShopeeManaged&item\_id=3702824955&item\_name=item1&l1\_category\_id=104136&l2\_category\_id=241360&l3\_category\_id=404136&order\_sn=CWTUQ80EF9&page\_no=1&page\_size=20&partner\_id=partner\_id&place\_order\_time\_end=1756051199&place\_order\_time\_start=1753459200&shop\_id=shop\_id&sign=sign&timestamp=timestamp&validation\_id=602516439202502&validation\_month=202502&verified\_status=Valid" payload={} headers = { } response = requests.RPCRequest("GET",url,headers=headers, data=payload, allow_redirects=False) print(response.text)

] } ], "total_count": 345, "has_more": true } }