Chuyển tới nội dung chính

v2.payment.get_income_detail

GET /api/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).

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/payment/get_income_detail

Tham số chung

NameTypeSampleDescription
partner_idint1Partner 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.
timestamptimestamp1610000000Dùng để chỉ định thời điểm gửi 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_tokenstringc09222e3fc40ffb25fc947f738b1abf1Token dùng để truy cập API, xác định quyền của bạn. Có thể dùng nhiều lần và hết hạn sau 4 giờ.
shop_idint600000Mã đị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.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Chữ ký được tạo từ partner_id, đường dẫn api, timestamp, access_token, shop_id và partner_key qua thuật toán HMAC-SHA256. Chi tiết: https://open.shopee.com/documents?module=87&type=2&id=58&version=2

Tham số Request

NameTypeRequiredSampleDescription
date_fromstringTrue2025-09-25Ngày bắt đầu (YYYY-MM-DD) của kỳ tham chiếu thu nhập. Trường này chỉ dùng cho Trạng thái Thu nhập = Released.
date_tostringTrue2025-09-30Ngày kết thúc (YYYY-MM-DD) của kỳ tham chiếu thu nhập. Phải sau date_from. Trường này chỉ dùng cho Trạng thái Thu nhập = Released.
income_statusint32True1Status of Seller Income payout (Enum - Desc) Local 1 -Released 2 - Pending CB 0 - To Release 1 - Released 2 - Pending
cursorstringFalse176714986216530Pagination token for the next set of results. Use an empty string "" for the first request.
page_sizeint64True30Number of income detail records to retrieve per page

Tham số Response

NameTypeSampleDescription
errorstringCho biết loại lỗi nếu xảy ra. Trống nếu không có lỗi.
messagestringCho biết chi tiết lỗi nếu xảy ra. Trống nếu không có lỗi.
request_idstringMã định danh của yêu cầu API để theo dõi lỗi.
income_detail_listobjectList of income detail records returned for the specified time range and status.
next_pageobjectContains pagination metadata for fetching the next page.
cursorstring176714986216530Token to retrieve the next page of results. Returns empty if there is no more data.
page_sizeint3230Number of records returned per page.
income_detail_list_itemobjectList of income detail objects
payment_methodstringATM PaymentPayment channel or method used for the order
order_snstring2510102F4S56JWUnique order serial number associated with the income record.
descriptionstringOrder IncomeType of income or billing item — e.g., Order Income, Adjustment etc
statusstringThe payment has been successfully transferred.Status description of the order income or payout.
currencystringThai BahtCurrency in which the income was transacted.
estimated_escrow_amountfloat4709353.87Estimated escrow amount pending release for the order.
estimated_payout_timeint641755584911Estimated payout time (Unix timestamp). Applicable for Pending/To Release status.
to_release_amountfloat4709353.87Amount that is queued for release to seller (Cross Border only).
creation_dateint641694753463Order creation timestamp (Unix format).
released_amountfloat4709353.87Amount successfully released to the seller.
actual_payout_timeint641755584911Actual payout time (Unix timestamp) when funds were transferred.

}