Skip to main content

Query Settlemet

querySettlement

Request Parameter

ParameterTypeMeaning
accountAccountAccount
rangestringQuery range, currently valid values are "0d" (today) and "3d".

Result Response

ParameterTypeMeaning
isSuccessboolInterface result
dataObjectSettlement list is returned
messagestring ? (optional)isSuccess = False error description is returned

SettlementData Parameter

Return type : Object

ParameterTypeMeaning
> AccountReslistObject
>> accountstringAccount
>> branchNostringBranch number
> detailslistObject
>> datestringQuery Date
>> settlementDatestring?Settlement Date
>> buyValueint?Buying Value
>> buyFeeint?Buying Fee
>> buySettlementint?Buying Payable / Received Amount
>> buyTaxint?Buying Tax
>> sellValueint?Selling Value
>> sellFeeint?Selling Fee
>> sellSettlementint?Selling Payable / Received Amount
>> sellTaxint?Selling Tax
>> totalBsValueint?Total Buying & Selling Value
>> totalFeeint?Total Fee
>> totalTaxint?Total Tax
>> totalSettlementAmountint?Total Payable & Received Amount
>> currencystring?Currency

Request Example

sdk.accounting.querySettlement(target_user,"3d");

Response Example

{
isSuccess: true,
data:{
account: { branchNo: '6460', account: '26' },
details:[
{
date: "2024/03/04",
settlementDate: "2024/03/06",
buyValue: 735500,
buyFee: 313,
buySettlement: -1429513,
buyTax: 0,
sellValue: 770500,
sellFee: 320,
sellSettlement: 0,
sellTax: 2309,
totalBsValue: 1506000,
totalFee: 633,
totalSettlementAmount: -1429513,
totalTax: 2309,
currency: "TWD"
},
{
date: "2024/03/05",
settlementDate: "2024/03/07",
buyValue: 2261470,
buyFee: 1065,
buySettlement: -3895335,
buyTax: 0,
sellValue: 2488170,
sellFee: 1137,
sellSettlement: 677626,
sellTax: 7412,
totalBsValue: 4749640,
totalFee: 2202,
totalSettlementAmount: -3217709,
totalTax: 7412,
currency: "TWD"
},
{
date: "2024/03/06"
}
]
}
}