快工助手跨境电商知识与商机助手

v2.ams.get_validation_report

Shopee 官方资料 · Shopee Open Platform 接口参考 · 适合开发者

stable本次发布有变化全部展示

来自 Shopee 官方资料快照 ·

打开官方原文 ↗
  1. 当前资料结构化阅读页
  2. 固定快照已留存,可追溯
  3. 官方原文可核对
查看技术与溯源信息
平台 / profile
Shopee / profile.shopee.api_reference
语言
en-US
发布版本
cn-20260909-2
标签
zhuge/sourceplatform/shopeeaudience/developercategory/api_doctopic/apitopic/developer

资料正文

§1 v2.ams.get_validation_report

Retrieve detailed information for a specific validation bill

#

§2 Overview

Overview

FieldValue
ModuleAMS
API typeShop
HTTP methodGET
Path/api/v2/ams/get_validation_report
Production URLhttps://partner.shopeemobile.com/api/v2/ams/get_validation_report
Sandbox URLhttps://partner.test-stable.shopeemobile.com/api/v2/ams/get_validation_report
PermissionAffiliate Marketing Solution Management
#

§3 Request parameters

Request parameters

NameTypeRequiredSampleDescription
page_noint32Yes1Specifies the page number of data to return 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_sizeint32Yes20Number of records returned per page, the maximum limit is 500, and page_no * page_size must be <= 10000.
validation_idstringYes602516439202502Unique identifier of the billing entry.
validation_monthint32Yes202502Billing month in the format YYYYMM (e.g., 202405).
campaign_sourcestringYesShopeeManagedSource of campaign setup. Applicable values: ShopeeManaged; Seller
order_snstringNoCWTUQ80EF9Unique identifier of the order.
l1_category_idint64No104136Hierarchical product category classification. (L1 Category)
l2_category_idint64No241360Hierarchical product category classification. (L2 Category)
l3_category_idint64No404136Hierarchical product category classification. (L3 Category)
item_idint64No3702824955Unique identifier of the product.
item_namestringNoitem1The product's name.
verified_statusstringNoValidVerified Status. Applicable values: Valid; Invalid
attr_campaign_idint64No18071ID referencing the campaign rule applied. (Ties to the campaign seller created).
place_order_time_starttimestampYes1753459200Start time (inclusive) of order placement, in timestamp format.
place_order_time_endtimestampYes1756051199End time (inclusive) of order placement, in timestamp format.
#

§4 Response parameters

Response parameters

NameTypeRequiredSampleDescription
errorstringerror_paramIndicate error type if hit error. Empty if no error happened.
messagestringInvalid page_sizeIndicate error details if hit error. Empty if no error happened.
request_idstringb937c04e554847789cbf3fe33a0ad5f1The identifier for an API request for error tracking.
responseobjectResponse payload containing result data.
response.listobject[]Array of order records. Each object contains order and commission details.
response.list.order_snstringYSWVY8D7OUUnique identifier of the order.
response.list.order_statusstringPendingCurrent status of the order (e.g., Pending, Completed, Cancelled).
response.list.verified_statusstringUnverifiedVerification status of the order (Unverified, Verified).
response.list.place_order_timestring2025/8/10 15:36:22Time when the order was placed.
response.list.order_completed_timestring2025/8/10 13:10:00Time when the order was marked as completed.
response.list.conversion_completed_timestring2025/8/9 17:38:54Time when the conversion (affiliate action) was completed.
response.list.affiliate_namestringYoyi popupDisplay name of the affiliate who promoted the item.
response.list.affiliate_usernamestringyiyi.test.0206.19Login username of the affiliate.
response.list.linked_mcnstringauto.id.108MCN (Multi-Channel Network) linked with the affiliate, if any.
response.list.campaign_partnerstringtestid.mcn.0Partner identifier for the campaign.
response.list.order_typestringDirect OrderType of order: Direct Order or Indirect Order.
response.list.order_brand_commissionstring2999.7Commission (amount) for the whole order, paid by the seller.
response.list.channelstringShopeevideoTraffic channel or platform where the promotion took place.
response.list.affiliate_idint6411393990003Unique identifier of the affiliate.
response.list.buyer_statusstringExistingBuyer Status. Applicable values: New; Existing
response.list.itemsobject[]
response.list.items.item_idint643903624400Unique identifier of the item in the order.
response.list.items.item_namestringitem1Name of the item in the order.
response.list.items.model_idint641232348722SKU/model identifier for the item.
response.list.items.l1_category_idint64104136Level-1 global category id classification of the item.
response.list.items.l2_category_idint64204136Level-2 global category id classification of the item.
response.list.items.l3_category_idint64404136Level-3 global category id classification of the item.
response.list.items.promotion_idstring36262963_0_0Identifier of the promotion campaign linked to the order.
response.list.items.priceint6490Item price in cents (or smallest currency unit).
response.list.items.qtyint641Quantity of the item purchased.
response.list.items.seller_campaign_typestringSeller Open CampaignType of seller campaign: 1. Seller Open Campaign – Open to all affiliates. 2. Seller Target Campaign – Restricted to designated affiliates.
response.list.items.attr_campaign_idint641130273167000412ID referencing the campaign rule applied.
response.list.items.purchase_valueint649099Total purchase value of the order in cents (or smallest currency unit).
response.list.items.refund_amountstring50Amount refunded for the item.
response.list.items.item_brand_commissionstring899.91Commission (amount) for the item, paid by the seller.
response.list.items.item_brand_commission_rate_to_affiliatestring10%Commission rate allocated to the affiliate for the item.
response.list.items.item_brand_commission_to_affiliatestring899.98Commission (amount) allocated to the affiliate for the item.
response.list.items.item_brand_commission_rate_to_mcnstring33%Commission rate allocated to the MCN for the item.
response.list.items.item_brand_commission_to_mcnstring233.8Commission (amount) allocated to the MCN for the item.
response.list.items.seller_service_fee_ratestring14%Seller service fee rate applied to the item.
response.list.items.seller_service_feestring125.98Seller service fee amount charged for the item. seller_service_fee = item_brand_commission * seller_service_fee_rate
response.total_countint64345Total number of entities that match the condition.
response.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.
#

§5 Common parameters

Common parameters

NameTypeRequiredSampleDescription
partner_idint1Partner ID is assigned upon registration is successful. Required for all requests.
timestamptimestamp1610000000This is to indicate the timestamp of the request. Required for all requests. Expires in 5 minutes.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1The token for API access, using to identify your permission to the api. Valid for multiple use and expires in 4 hours.
shop_idint600000Shopee's unique identifier for a shop. Required param for most APIs.
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
#

§6 Request samples

Request samples

#

§7 Java

Java

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();
#

§8 PHP

PHP

<?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;
#

§9 cURL

cURL

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' 
#

§10 Python

Python

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)
#

§11 Response sample

Response sample

#

§12 JSON

JSON

{
    "error": "",
    "message": "",
    "request_id": "b937c04e554847789cbf3fe33a0ad5f1",
    "response": {
        "list": [
            {
                "order_sn": "YSWVY8D7OU",
                "order_status": "Pending",
                "verified_status": "Unverified",
                "place_order_time": "2025/8/10 15:36:22",
                "order_completed_time": "2025/8/10 13:10:00",
                "conversion_completed_time": "2025/8/9 17:38:54",
                "affiliate_name": "Yoyi popup",
                "affiliate_username": "yiyi.test.0206.19",
                "linked_mcn": "auto.id.108",
                "campaign_partner": "testid.mcn.0",
                "order_type": "Direct Order",
                "order_brand_commission": "2999.7",
                "channel": "Shopeevideo",
                "affiliate_id": 11393990003,
                "buyer_status": "Existing",
                "items": [
                    {
                        "item_id": 3903624400,
                        "item_name": "item1",
                        "model_id": 1232348722,
                        "l1_category_id": 104136,
                        "l2_category_id": 204136,
                        "l3_category_id": 404136,
                        "promotion_id": "36262963_0_0",
                        "price": 90,
                        "qty": 1,
                        "seller_campaign_type": "Seller Open Campaign",
                        "attr_campaign_id": 1130273167000412,
                        "purchase_value": 9099,
                        "refund_amount": "50",
                        "item_brand_commission": "899.91",
                        "item_brand_commission_rate_to_affiliate": "10%",
                        "item_brand_commission_to_affiliate": "899.98",
                        "item_brand_commission_rate_to_mcn": "33%",
                        "item_brand_commission_to_mcn": "233.8",
                        "seller_service_fee_rate": "14%",
                        "seller_service_fee": "125.98"
                    }
                ]
            }
        ],
        "total_count": 345,
        "has_more": true
    }
}
#

§13 Error example

Error example

#

§14 JSON

JSON

{
	"error": "error_param",
	"message": "Invalid page_size",
	"request_id": "b937c04e554847789cbf3fe33a0ad5f1"
}
#

§15 Errors

Errors

ErrorDescriptionSolution
error_paraminvalid campaign source
error_paraminvalid page_no
error_paraminvalid page_size
error_paraminvalid param
error_paraminvalid time range, detail:{detail}
error_paraminvalid validation month,detail:{detail}
#

§16 Common errors

Common errors

ErrorDescriptionSolution
error_authpartner_id is invalid
error_authThe App is deleted, and you'll be unable to make any API call.
error_authApp developer’s permissions for authorizations have been restricted. If you’re a seller, contact the developer for more information. If you’re the developer, refer to the Open Platform Console for details.
error_paramThere is no partner_id in query.
error_paramInvalid partner_id.
error_paramno timestamp
error_paramInvalid timestamp
error_paramThere is no sign in query.
error_signWrong sign.
invalid_partner_idInvalid partner_id, please have a check.
error_authNo permission to current api.
error_api_call_restrictedThe App permission for api call have been restricted. If you’re a seller, contact the developer for more information. If you’re the developer, refer to the Open Platform Console for details.
api_suspendedThe API is offline. Please call v2 API instead.
error_limitThe total API call number made by your APP has reached the daily API call limit, please try again after 00: 00 (UTC+08:00)
error_rate_limitToo many requests. You have reached the rate limit. Please try again later.
source_ip_undeclaredRequest Source IP ({ip}) is undeclared. Please declare all your IP addresses in the Shopee Open Platform Console > App list > IP Address Whitelist
error_paramPermission denied. This API is currently offline or the request path is incorrect.
error_paramPartner_id is invalid, should be an integer between 0 and 4294967295.
error_paramno timestamp.
error_paramTimestamp is invalid, should be an integer between 0 and 4294967295.
error_paramTimestamp is expired.
error_partner_key_expiredYour API partner key has expired, please reset the Live API Partner Key in Console to get a new valid partner key to call open api.
error_api_permissionThis app type has no permission to this API.
error_paramThere is no access_token in query.
error_authInvalid access_token.
error_authInvalid partner_id or shopid.
shop_no_linkedPartner and shop has no linked.
shop_bannedThe shop account has been banned. Permissions for shop authorization and API calls have been suspended until the shop account is restored.
invalid_acceess_tokenInvalid access_token, please have a check.
partner_shop_no_linkInvalid partner_id or shop_id, please have a check.
error_ashop_api_permissionThe shop is Affiliate shop has no permission to call this API.
error_kyc_authNo permission. Please inform the seller to complete the Seller Registration on Shopee Seller Center first, then this shop can call for this API.
error_authSystem error, please try again later.
error_paramThere is no shop_id in query.
error_paramshop_id is invalid, should be an integer between 0 and 4294967295.
#

§17 Update log

Update log

DateChange
2026-07-02Add seller_service_fee_rate and seller_service_fee response parameters under response.list[].items[].
-New API
#