蝦皮API串接 取得蝦皮訂單 income 錢包入帳金額

v2.payment.get_escrow_detail

GET

/api/v2/payment/get_escrow_detail

Use this API to fetch the accounting detail of order.

Common Parameters

SurroundingsHTTP Address
URLhttps://partner.shopeemobile.com/api/v2/payment/get_escrow_detail
URL(Chinese Mainland)https://openplatform.shopee.cn/api/v2/payment/get_escrow_detail
Test URLhttps://partner.test-stable.shopeemobile.com/api/v2/payment/get_escrow_detail
Test URL(Chinese Mainland)https://openplatform.test-stable.shopee.cn/api/v2/payment/get_escrow_detail
NameTypeSampleDescription
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

Request Parameters

NameTypeRequiredSampleDescription
order_snstringTrue220914R9U7D3C6Shopee’s unique identifier for an order.

Response Parameters

NameTypeSampleDescription
responseobject
order_snstring220725D58XURJSShopee’s unique identifier for an order.
buyer_user_namestringxixxixiThe username of buyer.
return_order_sn_liststring[][]The list of the serial number of return.
order_incomeobject
escrow_amountfloat100.0The total amount that the seller is expected to receive for the order and will change before order is completed. For non cb sip affiliate shop: escrow_amount=buyer_total_amount+shopee_discount+voucher_from_shopee+coins+payment_promotion-buyer_transaction_fee-cross_border_tax-commission_fee-service_fee-seller_transaction_fee-seller_coin_cash_back-escrow_tax-final_product_vat_tax-final_shipping_vat_tax-drc_adjustable_refund-Reverse_shipping_fee+rsf_seller_protection_fee_claim_amount-rsf_seller_protection_fee_premium_amount+final_shipping_fee(could be postitive/negtive)-final_delivery_insurance_premium_amount. 
For cb sip affiliate shop: escrow_amount=escrow_amount_pri * exchange_rate
buyer_total_amountfloat99.0The total amount that paid by buyer.If a return refund is generated, the field is the actual amount paid by the buyer. eg. full return/refund will show 0.
original_pricefloat139.0The original price of the item before ANY promotion/discount in the listing currency. It returns the subtotal of that specific item if quantity exceeds 1.
seller_discountfloat10.0Final sum of each item seller discount of a specific order. (Only display for non cb sip affiliate shop. )
shopee_discountfloat10.0Final sum of each item Shopee discount of a specific order. This amount will rebate to seller. (Only display for non cb sip affiliate order. )
voucher_from_sellerfloat10.0Final value of voucher provided by Seller for the order. (Only display for non cb sip affiliate shop. )
voucher_from_shopeefloat10.0Final value of voucher provided by Shopee for the order. (Only display for non cb sip affiliate shop. )
coinsfloat0.0This value indicates the total amount offset when the buyer consumed Shopee Coins upon checkout. (Only display for non cb sip affiliate shop. )
buyer_paid_shipping_feefloat0.0The shipping fee paid by buyer. (Only display for non cb sip affiliate shop. )
buyer_transaction_feefloat0.0Tansaction fee paid by buyer for the order. (Only display for non cb sip affiliate shop. )
cross_border_taxfloat0.0Amount incurred by Buyer for purchasing items outside of home country or region. Amount may change after Return Refund. (Only display for non cb sip affiliate shop. )
payment_promotionfloat0.0The amount offset via payment promotion. (Only display for non cb sip affiliate shop. )
commission_feefloat0.0The commission fee charged by Shopee platform if applicable. 
For cb sip affiliate shop: commission_fee=commission_fee_pri * exchange_rate
service_feefloat0.0Amount charged by Shopee to seller for additional services.
For cb sip affiliate shop: service_fee=service_fee_pri * exchange_rate
seller_transaction_feefloat0.0Tansaction fee paid by seller for the order. (Only display for non cb sip affiliate shop. )
seller_lost_compensationfloat0.0Compensation to seller in case of lost parcel. (Only display for non cb sip affiliate shop. )
seller_coin_cash_backfloat0.0Value of coins provided by Seller for purchasing with his or her store for the order. (Only display for non cb sip affiliate shop. )
escrow_taxfloat0.0Cross-border tax imposed by the Indonesian government on sellers. (Only display for non cb sip affiliate shop. )
final_shipping_feefloat-10.0Final adjusted amount that seller has to bear as part of escrow. This amount could be negative or positive. (Only display for non cb sip affiliate shop. )
actual_shipping_feefloat10.0The final shipping cost of order and it is positive. For Non-integrated logistics channel is 0. (Only display for non cb sip affiliate shop. )
order_chargeable_weightint500For CB shop, display weight used to calculate actual_shipping_fee for this order.
shopee_shipping_rebatefloat0.0The platform shipping subsidy to the seller. (Only display for non cb sip affiliate shop. )
shipping_fee_discount_from_3plfloat0.0The discount of shipping fee from 3PL. Currently only applicable to ID. (Only display for non cb sip affiliate shop. )
seller_shipping_discountfloat0.0The shipping discount defined by seller. (Only display for non cb sip affiliate shop. )
estimated_shipping_feefloat10.0The estimated shipping fee is an estimation calculated by Shopee based on specific logistics courier’s standard. (Only display for non cb sip affiliate shop. )
seller_voucher_codestring[][]The list of voucher code provided by seller. (Only display for non cb sip affiliate shop. )
drc_adjustable_refundfloat0.0The adjustable refund amount from Shopee Dispute Resolution Center.
cost_of_goods_soldfloat1.0Final amount paid by the buyer for the items in a specific order. (Only display for non cb sip affiliate shop. )
original_cost_of_goods_soldfloat0.0Amount paid by the buyer for the items in a specific order. (Only display for non cb sip affiliate shop. )
original_shopee_discountfloat0.0Sum of each item Shopee discount of a specific order. (Only display for non cb sip affiliate shop. )
seller_return_refundfloat0.0Amount returned to Seller in the event of Partial Return.
itemsobject[]This object contains the detailed breakdown for all the items in this order, including regular items(non-activity) and activity items.
item_idint800062998ID of item
item_namestringProductName of item
item_skustringA item SKU (stock keeping unit) is an identifier defined by a seller, sometimes called parent SKU. Item SKU can be assigned to an item in Shopee Listings.
model_idint0ID of the model that belongs to the same item.
model_namestringName of the model that belongs to the same item. A seller can offer variations of the same item. For example, the seller could create a fixed-priced listing for a t-shirt design and offer the shirt in different colors and sizes. In this case, each color and size combination is a separate variation. Each variation can have a different quantity and price.
model_skustringA model SKU (stock keeping unit) is an identifier defined by a seller. It is only intended for the seller’s use. Many sellers assign a SKU to an item of a specific type, size, and color, which are variations of one item in Shopee Listings.
original_pricefloat139.0The original price of the item before ANY promotion/discount in the listing currency. It returns the subtotal of that specific item if quantity exceeds 1.
discounted_pricefloat99.0The after-discount price of the item in the listing currency. It returns the subtotal of that specific item if quantity exceeds 1. If there is no discount, this value will be the same as that of original_price.
seller_discountfloat10.0The discount provided by seller for this item
shopee_discountfloat10.0The discount provided by Shopee for this item
discount_from_coinfloat0.0The offset of this item when the buyer consumed Shopee Coins upon checkout. In case of bundle deal item, this value will return 0. Due to technical restriction, this field will return incorrect value under bundle deal case if we don’t configure it to 0.
discount_from_voucher_shopeefloat10.0The offset of this item when the buyer use Shopee voucher. In case of bundle deal item, this value will return 0. Due to technical restriction, this field will return incorrect value under bundle deal case if we don’t configure it to 0.
discount_from_voucher_sellerfloat10.0The offset of this item when the buyer use seller-specific voucher. In case of bundle deal item, this value will return 0. Due to technical restriction, this field will return incorrect value under bundle deal case if we don’t configure it to 0.
activity_typestringbundle_dealThe type of the item, default is “”. If the item is a bundle item the value is “bundle_deal”, and if a add on deal item, the value is “add_on_deal”
activity_idint0If bundle_deal the is id of bundle deal, if add_on_deal this is id of add on deal.
is_main_itembooleanfalseMeaning a main or sub item for add_on_deal.
quantity_purchasedint1This value indicates the number of identical items purchased at the same time by the same buyer from one listing/item.
is_b2c_shop_itembooleanfalseIndicates whether this is a B2C owned item.
escrow_amount_prifloat0.0The total amount in the prim currency that the seller is expected to receive for the order and will change before order completed . escrow_amount_pri=original_price_pri-seller_return_refund_pri-commission_fee_pri-service_fee_pri-drc_adjustable_refund_pri.(Only display for cb sip affiliate order. )
buyer_total_amount_prifloat0.0The total amount that paid by buyer in the primary currency. (Only display for cb sip affiliate order. )
original_price_prifloat0.0The original price of the item before ANY promotion/discount in the primary currency. It returns the subtotal of that specific item if quantity exceeds 1.(Only display for cb sip affiliate order. )
seller_return_refund_prifloat0.0Amount returned to Seller in the event of Partial Return in the primary currency. (Only display for cb sip affiliate shop. )
commission_fee_prifloat0.0The commission fee charged by Shopee platform if applicable in the primary currency. (Only display for cb sip affiliate shop. )
service_fee_prifloat0.0Amount charged by Shopee to seller for additional services in the primary currency. (Only display for cb sip affiliate shop. )
drc_adjustable_refund_prifloat0.0The adjustable refund amount from Shopee Dispute Resolution Center in the primary currency after proration. (Only applicable for cb sip affiliate shop.)
pri_currencystring0.0The currency of the country or region where the shop that real seller operates. (Only display for cb sip affiliate shop. )
aff_currencystring0.0The currency of the country or region where shop opened in. (Only display for cb sip affiliate shop. )
exchange_ratefloat0.0Exchange rate from primary shop currency to affiliate shop currency.
reverse_shipping_feefloat0.0Shopee charges the reverse shipping fee for the returned order.The value of this field will be non-negative.
final_product_protectionfloat0.0The total amount of product protection purchased during placing an order. 
credit_card_promotionfloat0.0This value indicate the offset via credit card promotion.
credit_card_transaction_feefloat0.0This value indicate the total transaction fee.credit_card_transaction_fee=buyer_transaction_fee+seller_transaction_fee
final_product_vat_taxfloat0.0Value-added Tax is required for online purchases based on EU Value-added Tax regulations . (Only display for non cb sip affiliate shop. )
final_shipping_vat_taxfloat0.0Value-added Tax for product price is required for online purchases based on EU Value-added Tax regulations. (Only applicable for non cb sip affiliate shop. )
campaign_feefloat0.0The campaign fee charged by Shopee platform. Only available for some local Indonesian shops.
sip_subsidyfloat0.57The SIP subsidy amount is the difference between the item settlement price set by seller and item price actually paid by buyer. (Only available for CB SIP A Shops)
sip_subsidy_prifloat2.8The SIP subsidy amount is the difference between the item settlement price set by seller and item price actually paid by buyer. This value is in the primary currency. (Only available for CB SIP A Shops)
rsf_seller_protection_fee_claim_amountfloatThe amount that shopee will payout to seller when buyer returns a parcel and incurs a return shipping fee (RSF). Only apply for PH local orders.
rsf_seller_protection_fee_premium_amountfloatAmount charged by Shopee to seller for additional services. Only apply for PH local orders.
final_escrow_product_gstfloat4.35Goods and Service Tax for product price is required for imported goods (overseas orders) based on Singapore GST regulations. (Only applicable for non cb sip affiliate shop selling in Singapore)
final_escrow_shipping_gstfloat0.07Goods and Service Tax for shipping fee is required for imported goods (overseas orders) based on Singapore GST regulations. (Only applicable for non cb sip affiliate shop selling in Singapore.)
request_idstring10fff653c945a390f8e1323c6bdffff4The identifier for an API request for error tracking.
errorstringError code
messagestringError message

Request Example-Java

{
    "order_sn": "220914R9U7D3C6"
}

Response Example

{
    "error": "",
    "message": "",
    "request_id": "d94e0796f1562cc43e6c5d1292f26300",
    "response": {
        "buyer_user_name": "moontewyekni",
        "order_income": {
            "actual_shipping_fee": 0,
            "buyer_paid_shipping_fee": 1,
            "buyer_total_amount": 59.69,
            "buyer_transaction_fee": 0,
            "campaign_fee": 0,
            "coins": 0,
            "commission_fee": 4,
            "cost_of_goods_sold": 65.75,
            "credit_card_promotion": 0,
            "credit_card_transaction_fee": 1.19,
            "cross_border_tax": 0,
            "delivery_seller_protection_fee_premium_amount": 0,
            "drc_adjustable_refund": 0,
            "escrow_amount": 49.47,
            "escrow_tax": 0,
            "estimated_shipping_fee": 1,
            "final_escrow_product_gst": 4.35,
            "final_escrow_shipping_gst": 0.07,
            "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,
            "items": [
                {
                    "activity_id": 0,
                    "activity_type": "",
                    "discount_from_coin": 0,
                    "discount_from_voucher_seller": 1.29,
                    "discount_from_voucher_shopee": 0,
                    "discounted_price": 20.22,
                    "is_b2c_shop_item": false,
                    "is_main_item": false,
                    "item_id": 11109159298,
                    "item_name": "MOES Smart Switch Tuya ZigBee No Neutral Wire No Capacitor Needed Smart Life 2/3 Way Works with Alexa and other voice-controlled devices 2mqtt",
                    "item_sku": "ZS-B-EU1-WH-MS-FZ2",
                    "model_id": 92533053388,
                    "model_name": "1 gang white,China",
                    "model_sku": "ZS-B-EU1-WH-MS-FZ3",
                    "original_price": 42.55,
                    "quantity_purchased": 1,
                    "seller_discount": 21.35,
                    "shopee_discount": 0.98
                },
                {
                    "activity_id": 202397450,
                    "activity_type": "bundle_deal",
                    "discount_from_coin": 0,
                    "discount_from_voucher_seller": 0,
                    "discount_from_voucher_shopee": 0,
                    "discounted_price": 42.47,
                    "is_b2c_shop_item": false,
                    "is_main_item": false,
                    "item_id": 11109159298,
                    "item_name": "MOES Smart Switch Tuya ZigBee No Neutral Wire No Capacitor Needed Smart Life 2/3 Way Works with Alexa and other voice-controlled devices 2mqtt",
                    "item_sku": "ZS-B-EU1-WH-MS-FZ2",
                    "model_id": 92533053391,
                    "model_name": "2 gang white,China",
                    "model_sku": "ZS-B-EU2-WH-MS-FZ3",
                    "original_price": 90.28,
                    "quantity_purchased": 2,
                    "seller_discount": 45.73,
                    "shopee_discount": 2.08
                }
            ],
            "order_chargeable_weight": 0,
            "original_cost_of_goods_sold": 65.75,
            "original_price": 85.45,
            "original_shopee_discount": 3.06,
            "payment_promotion": 0,
            "refund_amount_to_buyer": 0, --經詢問官方(Shopee Open Platform),此欄位已經不再回傳
            "reverse_shipping_fee": 0,
            "rsf_seller_protection_fee_claim_amount": 0,
            "rsf_seller_protection_fee_premium_amount": 0,
            "seller_coin_cash_back": 0,
            "seller_discount": 19.7,
            "seller_lost_compensation": 0,
            "seller_return_refund": 0,
            "seller_shipping_discount": 0,
            "seller_transaction_fee": 1.19,
            "seller_voucher_code": [
                "MORN50411"
            ],
            "service_fee": 3.67,
            "shipping_fee_discount_from_3pl": 0,
            "shopee_discount": 3.06,
            "shopee_shipping_rebate": 0,
            "voucher_from_seller": 4,
            "voucher_from_shopee": 0
        },
        "order_sn": "230102A5KA3BVH",
        "return_order_sn_list": []
    }
}

Error Example

{
    "error": "error_param",
    "message": "order_sn is required",
    "request_id": "d22d8d195ba4864b13e1a729145ad5f5"
}

Error Codes

ErrorError Description
error_paramThere is no access_token in query.
error_authInvalid access_token.
error_paramInvalid partner_id.
error_paramThere is no partner_id in query.
error_authNo permission to current api.
error_paramThere is no sign in query.
error_signWrong sign.
error_paramno timestamp
error_paramInvalid timestamp
error_networkInner http call failed

如果有什麼問題,也可以在下方留言處與我們分享,感謝您!!

手刀試用=>蝦皮對帳王

手刀試用=>康捷雲端ERP

相關文章

👉 進出貨一覽表 簡單王 操作步驟詳解

👉 簡單王-進出貨匯入上傳工具 操作步驟詳解

👉 蝦皮對帳王-蝦皮對帳結果一覽表-為什麼要對帳?無對應???

👉 蝦皮對帳王-對帳原理分析-有訂單,有撥款だいじょうぶ(大丈夫);有訂單,沒撥款 歐NO~~~~~!!!

[蝦皮服務] 訂單完成後什麼時候能夠收到款項呢?

期待您的留言

Comments

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *