> For the complete documentation index, see [llms.txt](https://apidocs.abit.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.abit.vn/api-mo-rong/shopee-chi-tiet-doanh-thu.md).

# (Shopee) Chi tiết doanh thu

API lấy chi tiết doanh thu, chi phí của một đơn hàng Shopee, giá trị trả về API tương ứng với giá trị bạn nhìn thấy trong mục Doanh thu trên Seller Center của Shopee

URL API: [https://new.abitstore.vn](https://new.abitstore.vn/ecommerce/getEscrowDetailByPartner)

<mark style="color:green;">`POST /ecommerce/getEscrowDetailByPartner`</mark>

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

<table><thead><tr><th width="149">Name</th><th width="95">Type</th><th>Description</th></tr></thead><tbody><tr><td>access_token</td><td>string</td><td>Mã Access token được khởi tạo và cấp quyền bởi chủ tài khoản Abit, Xem hướng dẫn tạo <a href="https://apidocs.abit.vn/gioi-thieu-ve-abit-open-api.md#khoi-tao-access-token"><mark style="color:red;"><strong>Access Token</strong></mark> </a></td></tr><tr><td>partner_name</td><td>string</td><td>Mã shop khi đăng ký Abit</td></tr><tr><td>ecommerce_id</td><td>string</td><td>ID gian hàng Shopee , TikTok Shop ... được kết nối vào Abit, lấy thông tin ID trong mục <strong>Kết nối đa kênh =⇒ Kết nối sàn TMĐT</strong></td></tr><tr><td>order_id</td><td>string</td><td>ID của đơn hàng Shopee</td></tr></tbody></table>

{% tabs %}
{% tab title="Body" %}

```json
{
    "access_token": "Zjg5ZDYzNmFmOGFkYmQwODVmMzVmOWM4YTRlMDFiMWQ=",
    "partner_name": "Abit",
    "ecommerce_id":"208830782",
    "order_id": "2603253ME9W8MK"
}
```

{% endtab %}

{% tab title="Response" %}

```json
{
    "status": "success",
    "response": {
        "buyer_payment_info": {
            "bcrs_deposit": 0,
            "bulky_handling_fee": 0,
            "buyer_paid_extended_warranty": 0,
            "buyer_paid_installation_fee": 0,
            "buyer_payment_method": "ShopeePay Linked Bank Account",
            "buyer_service_fee": 0,
            "buyer_tax_amount": 0,
            "buyer_total_amount": 150750,
            "credit_card_promotion": 0,
            "discount_pix": 0,
            "footwear_tax": 0,
            "icms_tax_amount": 0,
            "import_duty_and_excise_tax": 0,
            "import_processing_charge": 0,
            "import_tax_amount": 0,
            "initial_buyer_txn_fee": 0,
            "insurance_premium": 0,
            "iof_tax_amount": 0,
            "is_paid_by_credit_card": false,
            "lvg_sales_tax_adjustment": 0,
            "merchant_subtotal": 225000,
            "seller_voucher": 0,
            "shipping_fee": 0,
            "shipping_fee_sst_amount": 0,
            "shopee_coins_redeemed": 0,
            "shopee_voucher": -74250,
            "total_tax_and_fees_amount": 0,
            "trade_in_bonus": 0,
            "trade_in_discount": 0,
            "vat": 0
        },
        "buyer_user_name": "hutrng847",
        "order_income": {
            "actual_installation_fee": 0,
            "actual_shipping_fee": 41000,
            "ads_escrow_top_up_fee_or_technical_support_fee": 0,
            "bcrs_deposit": 0,
            "buyer_paid_extended_warranty": 0,
            "buyer_paid_shipping_fee": 0,
            "buyer_payment_method": "ShopeePay Linked Bank Account",
            "buyer_total_amount": 150750,
            "buyer_transaction_fee": 0,
            "campaign_fee": 0,
            "coins": 0,
            "commission_fee": 30375,
            "cost_of_goods_sold": 225000,
            "credit_card_promotion": 0,
            "credit_card_transaction_fee": 11048,
            "cross_border_tax": 0,
            "delivery_seller_protection_fee_premium_amount": 0,
            "drc_adjustable_refund": 0,
            "escrow_amount": 175582,
            "escrow_amount_after_adjustment": 175582,
            "escrow_import_tax": 0,
            "escrow_tax": 0,
            "estimated_shipping_fee": 41000,
            "fbs_fee": 0,
            "final_escrow_product_gst": 0,
            "final_escrow_shipping_gst": 0,
            "final_product_protection": 0,
            "final_product_vat_tax": 0,
            "final_return_to_seller_shipping_fee": 0,
            "final_shipping_fee": 0,
            "final_shipping_vat_tax": 0,
            "fsf_seller_protection_fee_claim_amount": 0,
            "installation_fee_paid_by_buyer": 0,
            "instalment_plan": "N/A",
            "items": [
                {
                    "activity_id": 0,
                    "activity_type": "",
                    "ams_commission_fee": 0,
                    "bcrs_deposit": 0,
                    "buyer_paid_extended_warranty": 0,
                    "discount_from_coin": 0,
                    "discount_from_voucher_seller": 0,
                    "discount_from_voucher_shopee": 24750,
                    "discounted_price": 75000,
                    "installation_fee_paid_by_buyer": 0,
                    "is_b2c_shop_item": false,
                    "is_main_item": false,
                    "item_id": 57805219077,
                    "item_name": "Áo thun unisex nam nữ",
                    "item_sku": "",
                    "model_id": 400477744456,
                    "model_name": "ÁO TRẮNG - Việt Nam,M [41-48kg] [<1.62m]",
                    "model_sku": "AOTHUN",
                    "original_price": 150000,
                    "promotion_list": [
                        {
                            "promotion_id": 866137660375040,
                            "promotion_type": "seller_discount"
                        }
                    ],
                    "quantity_purchased": 1,
                    "seller_discount": 75000,
                    "seller_order_processing_fee": 0,
                    "selling_price": 75000,
                    "shopee_discount": 0
                },
                {
                    "activity_id": 0,
                    "activity_type": "",
                    "ams_commission_fee": 0,
                    "bcrs_deposit": 0,
                    "buyer_paid_extended_warranty": 0,
                    "discount_from_coin": 0,
                    "discount_from_voucher_seller": 0,
                    "discount_from_voucher_shopee": 24750,
                    "discounted_price": 75000,
                    "installation_fee_paid_by_buyer": 0,
                    "is_b2c_shop_item": false,
                    "is_main_item": false,
                    "item_id": 57805219077,
                    "item_name": "Áo thun unisex nam nữ",
                    "item_sku": "",
                    "model_id": 400477744458,
                    "model_name": "ÁO TRẮNG - Việt Nam,XL [58-65kg]",
                    "model_sku": "AOTHUN",
                    "original_price": 150000,
                    "promotion_list": [
                        {
                            "promotion_id": 866137660375040,
                            "promotion_type": "seller_discount"
                        }
                    ],
                    "quantity_purchased": 1,
                    "seller_discount": 75000,
                    "seller_order_processing_fee": 0,
                    "selling_price": 75000,
                    "shopee_discount": 0
                },
                {
                    "activity_id": 0,
                    "activity_type": "",
                    "ams_commission_fee": 0,
                    "bcrs_deposit": 0,
                    "buyer_paid_extended_warranty": 0,
                    "discount_from_coin": 0,
                    "discount_from_voucher_seller": 0,
                    "discount_from_voucher_shopee": 24750,
                    "discounted_price": 75000,
                    "installation_fee_paid_by_buyer": 0,
                    "is_b2c_shop_item": false,
                    "is_main_item": false,
                    "item_id": 57805219077,
                    "item_name": "Áo thun unisex nam nữ",
                    "item_sku": "",
                    "model_id": 410477750965,
                    "model_name": "ÁO TRẮNG - Việt Nam,S [30-40kg]",
                    "model_sku": "AOTHUN",
                    "original_price": 150000,
                    "promotion_list": [
                        {
                            "promotion_id": 866137660375040,
                            "promotion_type": "seller_discount"
                        }
                    ],
                    "quantity_purchased": 1,
                    "seller_discount": 75000,
                    "seller_order_processing_fee": 0,
                    "selling_price": 75000,
                    "shopee_discount": 0
                }
            ],
            "order_ams_commission_fee": 0,
            "order_chargeable_weight": 0,
            "order_discounted_price": 225000,
            "order_original_price": 450000,
            "order_seller_discount": 225000,
            "order_selling_price": 225000,
            "original_cost_of_goods_sold": 225000,
            "original_price": 450000,
            "original_shopee_discount": 0,
            "overseas_return_service_fee": 0,
            "payment_promotion": 0,
            "pix_discount": 0,
            "prorated_coins_value_offset_return_items": 0,
            "prorated_payment_channel_promo_bank_offset_return_items": 0,
            "prorated_payment_channel_promo_shopee_offset_return_items": 0,
            "prorated_pix_discount_offset_return_items": 0,
            "prorated_seller_voucher_offset_return_items": 0,
            "prorated_shopee_voucher_offset_return_items": 0,
            "return_to_seller_shipping_fee_sst": 0,
            "reverse_shipping_fee": 0,
            "reverse_shipping_fee_sst": 0,
            "rsf_seller_protection_fee_claim_amount": 0,
            "sales_tax_on_lvg": 0,
            "seller_coin_cash_back": 0,
            "seller_discount": 225000,
            "seller_lost_compensation": 0,
            "seller_order_processing_fee": 0,
            "seller_return_refund": 0,
            "seller_shipping_discount": 0,
            "seller_transaction_fee": 11048,
            "seller_voucher_code": [],
            "service_fee": 3000,
            "shipping_fee_discount_from_3pl": 0,
            "shipping_fee_sst": 0,
            "shipping_seller_protection_fee_amount": 1620,
            "shopee_discount": 0,
            "shopee_shipping_rebate": 41000,
            "tax_registration_code": "8056930682",
            "tenure_info_list": [
                {
                    "instalment_plan": "N/A"
                }
            ],
            "th_import_duty": 0,
            "total_adjustment_amount": 0,
            "trade_in_bonus_by_seller": 0,
            "vat_on_imported_goods": 0,
            "voucher_from_seller": 0,
            "voucher_from_shopee": 74250,
            "withholding_pit_tax": 1125,
            "withholding_tax": 0,
            "withholding_vat_tax": 2250
        },
        "order_sn": "2603253ME9W8MK",
        "return_order_sn_list": []
    },
    "code": 200
}
```

{% endtab %}
{% endtabs %}

Thông tin giá trị API trả về shop có thể tham khảo tại đây: <https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.abit.vn/api-mo-rong/shopee-chi-tiet-doanh-thu.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
