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

v2.payment.get_income_detail

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.payment.get_income_detail

Retrieves detailed order-level income information across various income statuses for a specified time period. This API enables partners to display granular transaction-level income data consistent with Seller Center’s “Income Details” view, segmented by income status and payout stage. The API dynamically adapts data fields based on the seller’s shop type (Local or Cross Border) and the selected income status (e.g., Pending, To Release, Released).

#

§2 Overview

Overview

FieldValue
ModulePayment
API typeShop
HTTP methodGET
Path/api/v2/payment/get_income_detail
Production URLhttps://partner.shopeemobile.com/api/v2/payment/get_income_detail
Sandbox URLhttps://partner.test-stable.shopeemobile.com/api/v2/payment/get_income_detail
PermissionERP System; Seller In House System; Accounting And Finance
#

§3 Request parameters

Request parameters

NameTypeRequiredSampleDescription
date_fromstringYes2025-09-25Start date (YYYY-MM-DD) of the income reference period. This field is only used for Income Status = Released, the other statuses will display all records currently in that status.; For income Status = Released, For Released → Payout released date: 1. date_to must be later than date_from; 2. date range cannot exceed 14 days; 3. Input must follow valid date format.
date_tostringYes2025-09-30End date (YYYY-MM-DD) of the income reference period. Must be later than date_from. This field is only used for Income Status = Released, the other statuses will display all records currently in that status.; For income Status = Released, For Released → Payout released date: 1. date_to must be later than date_from; 2. date range cannot exceed 14 days; 3. Input must follow valid date format.
income_statusint32Yes1Status of Seller Income payout (Enum - Desc); Local; 1 -Released; 2 - Pending; CB; 0 - To Release; 1 - Released; 2 - Pending
cursorstringNo176714986216530Pagination token for the next set of results. Use an empty string "" for the first request.
page_sizeint64Yes30Number of income detail records to retrieve per page
#

§4 Response parameters

Response parameters

NameTypeRequiredSampleDescription
errorstringIndicate error type if hit error. Empty if no error happened.
messagestringIndicate error details if hit error. Empty if no error happened.
request_idstringThe identifier for an API request for error tracking.; <path></path><path></path>
income_detail_listobjectList of income detail records returned for the specified time range and status.
income_detail_list.next_pageobjectContains pagination metadata for fetching the next page.
income_detail_list.next_page.cursorstring176714986216530Token to retrieve the next page of results. Returns empty if there is no more data.
income_detail_list.next_page.page_sizeint3230Number of records returned per page.
income_detail_list.income_detail_list_itemobjectList of income detail objects
income_detail_list.income_detail_list_item.payment_methodstringATM PaymentPayment channel or method used for the order
income_detail_list.income_detail_list_item.order_snstring2510102F4S56JWUnique order serial number associated with the income record.
income_detail_list.income_detail_list_item.descriptionstringOrder IncomeType of income or billing item — e.g., Order Income, Adjustment etc
income_detail_list.income_detail_list_item.statusstringThe payment has been successfully transferred.Status description of the order income or payout.
income_detail_list.income_detail_list_item.currencystringThai BahtCurrency in which the income was transacted.
income_detail_list.income_detail_list_item.estimated_escrow_amountfloat4709353.87Estimated escrow amount pending release for the order.
income_detail_list.income_detail_list_item.estimated_payout_timeint641755584911Estimated payout time (Unix timestamp). Applicable for Pending/To Release status.
income_detail_list.income_detail_list_item.to_release_amountfloat4709353.87Amount that is queued for release to seller (Cross Border only).
income_detail_list.income_detail_list_item.creation_dateint641694753463Order creation timestamp (Unix format).
income_detail_list.income_detail_list_item.released_amountfloat4709353.87Amount successfully released to the seller.
income_detail_list.income_detail_list_item.actual_payout_timeint641755584911Actual payout time (Unix timestamp) when funds were transferred.
#

§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

{
    "shop_id": 406906,
    "income_status": 1,
    "date_from": "2025-08-08",
    "date_to": "2025-08-20",
    "cursor": "",
    "limit": 5
    }
}
#

§8 Response sample

Response sample

#

§9 JSON

JSON

{
    "error": "",
    "income_detail_list": {
        "list": [
            {
                "actual_payout_time": 1762532978,
                "currency": "IDR",
                "order_sn": "251101MPY3RDD3",
                "payment_method": "Cash on Delivery",
                "released_amount": 19246,
                "status": "Dana telah dilepaskan"
            },
            {
                "actual_payout_time": 1762532566,
                "currency": "IDR",
                "order_sn": "251102PVD4RMNF",
                "payment_method": "Cash on Delivery",
                "released_amount": 19125,
                "status": "Dana telah dilepaskan"
            },
            {
                "actual_payout_time": 1762530072,
                "currency": "IDR",
                "order_sn": "251101KV5GUESA",
                "payment_method": "ShopeePay Balance",
                "released_amount": 21455,
                "status": "Dana telah dilepaskan"
            },
            {
                "actual_payout_time": 1762529568,
                "currency": "IDR",
                "order_sn": "251101MMCCDJ3N",
                "payment_method": "Cash on Delivery",
                "released_amount": 19246,
                "status": "Dana telah dilepaskan"
            },
            {
                "actual_payout_time": 1762529117,
                "currency": "IDR",
                "order_sn": "251103RVWNM3HC",
                "payment_method": "Cash on Delivery",
                "released_amount": 39743,
                "status": "Dana telah dilepaskan"
            },
            {
                "actual_payout_time": 1762528957,
                "currency": "IDR",
                "order_sn": "251103RBJT4SNQ",
                "payment_method": "Cash on Delivery",
                "released_amount": 31619,
                "status": "Dana telah dilepaskan"
            },
            {
                "actual_payout_time": 1762528198,
                "currency": "IDR",
                "order_sn": "251028ABKCKESK",
                "payment_method": "Cash on Delivery",
                "released_amount": 40993,
                "status": "Dana telah dilepaskan"
            },
            {
                "actual_payout_time": 1762527039,
                "currency": "IDR",
                "order_sn": "2510251MRCQ5NM",
                "payment_method": "Cash on Delivery",
                "released_amount": 21472,
                "status": "Dana telah dilepaskan"
            },
            {
                "actual_payout_time": 1762526637,
                "currency": "IDR",
                "order_sn": "251103SE7GQU1Y",
                "payment_method": "Online Payment",
                "released_amount": 224214,
                "status": "Dana telah dilepaskan"
            },
            {
                "actual_payout_time": 1762524417,
                "currency": "IDR",
                "order_sn": "251102PTG2QQNT",
                "payment_method": "Cash on Delivery",
                "released_amount": 19246,
                "status": "Dana telah dilepaskan"
            }
        ],
        "next_page": {
            "cursor": "216223606250140",
            "page_size": 10
        }
    },
    "message": "",
    "request_id": "956651be4362b78fb565545dcc83a400"
}
#

§10 Error example

Error example

#

§11 JSON

JSON

{
    "error": "error_param",
    "message": "release_time_from and/or release_time_to parameter is missing or invalid. Please provide both a valid start date and end date to query, where the start date cannot be later than the end date, and the date range must not exceed 14 days.",
    "request_id": "e3e3e7f341549a4efbbe99ba66b54501"
}
#

§12 Errors

Errors

ErrorDescriptionSolution
error_paramparameter invalid
error_paramInvalid Time Range: Only records from the past 5 years are supported for the TW region.
error_paramrelease_time_from and/or release_time_to parameter is missing or invalid. Please provide both a valid start date and end date to query, where the start date cannot be later than the end date, and the date range must not exceed 14 days.
error_shopshopid is invalid
error_paramAccess blocked for Mart shops, please retrieve income details using Outlet Shop ID instead.
error_user_refresh_tokenYour refresh token is error, please check refresh token or user_id.
#

§13 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.
#

§14 Update log

Update log

DateChange
2025-10-31-
2025-10-21Update to add request and response example
2025-10-14New API
#