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ên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| partner_id | int | 1 | Partner 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. |
| timestamp | timestamp | 1610000000 | Dù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_token | string | c09222e3fc40ffb25fc947f738b1abf1 | Token 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_id | int | 600000 | Mã đị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. |
| sign | string | e318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2 | Signature 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ên | Kiểu | Bắt buộc | Mẫu | Mô tả |
|---|---|---|---|---|
| page_no | int32 | True | 1 | Chỉ đị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_size | int32 | True | 20 | Number of records returned per page, the tối đa limit is 500, and page_no * page_size must be <= 10000. |
| validation_id | string | True | 602516439202502 | Mã định danh duy nhất of the billing entry. |
| validation_month | int32 | True | 202502 | Billing month in the format YYYYMM (e.g., 202405). |
| campaign_source | string | True | ShopeeManaged | Source of campaign setup. Các giá trị áp dụng: ShopeeManaged Seller |
| order_sn | string | False | CWTUQ80EF9 | Mã định danh duy nhất of the order. |
| l1_category_id | int64 | False | 104136 | Hierarchical product category classification. (L1 Category) |
| l2_category_id | int64 | False | 241360 | Hierarchical product category classification. (L2 Category) |
| l3_category_id | int64 | False | 404136 | Hierarchical product category classification. (L3 Category) |
| item_id | int64 | False | 3702824955 | Mã định danh duy nhất of the product. |
| item_name | string | False | item1 | The product's name. |
| verified_status | string | False | Valid | Verified Status. Các giá trị áp dụng: Valid Invalid |
| attr_campaign_id | int64 | False | 18071 | ID referencing the campaign rule applied. (Ties to the campaign seller created). |
| place_order_time_start | timestamp | True | 1753459200 | Start time (inclusive) of order placement, in timestamp format. |
| place_order_time_end | timestamp | True | 1756051199 | End time (inclusive) of order placement, in timestamp format. |
Tham số Response
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| error | string | error_param | Loại lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi. |
| message | string | Invalid page_size | Chi tiết lỗi nếu có lỗi xảy ra. Trống nếu không có lỗi. |
| request_id | string | b937c04e554847789cbf3fe33a0ad5f1 | Mã định danh của yêu cầu API dùng để theo dõi lỗi. |
| response | object | Response payload containing result data. | |
| list | object[] | Array of order records. Each object contains order and commission details. | |
| order_sn | string | YSWVY8D7OU | Mã định danh duy nhất of the order. |
| order_status | string | Pending | Current status of the order (e.g., Pending, Completed, Cancelled). |
| verified_status | string | Unverified | Verification status of the order (Unverified, Verified). |
| place_order_time | string | 2025/8/10 15:36:22 | Time when the order was placed. |
| order_completed_time | string | 2025/8/10 13:10:00 | Time when the order was marked as completed. |
| conversion_completed_time | string | 2025/8/9 17:38:54 | Time when the conversion (affiliate action) was completed. |
| affiliate_name | string | Yoyi popup | Display name of the affiliate who promoted the item. |
| affiliate_username | string | yiyi.test.0206.19 | Login username of the affiliate. |
| linked_mcn | string | auto.id.108 | MCN (Multi-Channel Network) linked with the affiliate, if any. |
| campaign_partner | string | testid.mcn.0 | Partner identifier for the campaign. |
| order_type | string | Direct Order | Type of order: Direct Order or Indirect Order. |
| order_brand_commission | string | 2999.7 | Commission (amount) for the whole order, paid by the seller. |
| channel | string | Shopeevideo | Traffic channel or platform where the promotion took place. |
| affiliate_id | int64 | 11393990003 | Mã định danh duy nhất of the affiliate. |
| buyer_status | string | Existing | Buyer Status. Các giá trị áp dụng: New Existing |
| items | object[] | ||
| item_id | int64 | 3903624400 | Mã định danh duy nhất of the item in the order. |
| item_name | string | item1 | Name of the item in the order. |
| model_id | int64 | 1232348722 | SKU/ID biến thểentifier for the item. |
| l1_category_id | int64 | 104136 | Level-1 global ID danh mục classification of the item. |
| l2_category_id | int64 | 204136 | Level-2 global ID danh mục classification of the item. |
| l3_category_id | int64 | 404136 | Level-3 global ID danh mục classification of the item. |
| promotion_id | string | 36262963_0_0 | Identifier of the promotion campaign linked to the order. |
| price | int64 | 90 | Item price in cents (or smallest currency unit). |
| qty | int64 | 1 | Quantity of the item purchased. |
| seller_campaign_type | string | Seller Open Campaign | Type of seller campaign: 1. Seller Open Campaign – Open to all affiliates. 2. Seller Target Campaign – Restricted to designated affiliates. |
| attr_campaign_id | int64 | 1130273167000412 | ID referencing the campaign rule applied. |
| purchase_value | int64 | 9099 | Total purchase value of the order in cents (or smallest currency unit). |
| refund_amount | string | 50 | Amount refunded for the item. |
| item_brand_commission | string | 899.91 | Commission (amount) for the item, paid by the seller. |
| item_brand_commission_rate_to_affiliate | string | 10% | Tỷ lệ hoa hồng allocated to the affiliate for the item. |
| item_brand_commission_to_affiliate | string | 899.98 | Commission (amount) allocated to the affiliate for the item. |
| item_brand_commission_rate_to_mcn | string | 33% | Tỷ lệ hoa hồng allocated to the MCN for the item. |
| item_brand_commission_to_mcn | string | 233.8 | Commission (amount) allocated to the MCN for the item. |
| total_count | int64 | 345 | Tổng số entities that match the tình trạng. |
| has_more | boolean | true | This 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×tamp=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×tamp=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×tamp=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×tamp=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 } }