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

v2.payment.get_billing_transaction_info

POST /api/v2/payment/get_billing_transaction_info

This API is applicable for Cross Border (CB) sellers only to get the detailed payout transaction data, both released and to-be released transaction can be found in here

Đường dẫn Endpoint

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

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
billing_transaction_info_typeintTrue1Billing transaction types: 1: TO_RELEASE, 2: RELEASED
encrypted_payout_idsstring[]False["10376329180766","637926329180767"]encrypted_payout_id get from API: v2.get_payout_info when encrypted_payout_id provided and billing_transaction_info_type=2, we will return the "released" billing items under this payout. when encrypted_payout_id not provided, we will return the "to release" billing items under hasn't form payout yet Max length: 100
cursorstringTrue""Specifies the starting entry of data to return in the current call. Default is "". If data is more than one page, the offset can be some entry to start next call.
page_sizeintTrue100Number of pages returned max:100

Tham số Response

NameTypeSampleDescription
errorstringError code
messagestringError message
request_idstring10fff653c945a390f8e1323c6bdffff4Mã định danh của yêu cầu API dùng để theo dõi lỗi.
responseobject
transactionsobject
amountfloat-594.78each transaction's amount
currencystringSGDtransaction currency
order_snstringSGDtransaction currency
cost_headerstringRefund Amounttransaction belongs to which type
scenariostringReturn Refund After Order Completedtransaction detailed scenarios
remarkstringDeduction on return refund requests raised after order is completeddetailed description for this transactions
levelstringOrderTo define this transaction happen at order level or shop level. e.g. shop level adjustment
billing_transaction_typestringADJUSTMENTcould be Escrow (Order Income) or Adjustment (for this order)
billing_transaction_statusstringReleasedWill be either "To Release" or "Released".
morebooleanfalse
next_cursorstringfalse