Skip to main content

Query Settlemet

QuerySettlement

Request Parameter

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

Result Reponse

ParameterTypeMeaning
isSuccessboolInterface result
dataSettlementDataSettlementResponse is returned
messagestringisSuccess = False error description is returned

SettlementData Parameter

Return type : Object

ParameterTypeMeaning
> accountlistObject
>> accountstringAccount
>> branchNostringBranch Number
> detailslistObject
>> datestringQuery Date
>> settlementDatestring (Optional)Settlement Date (If no data will return null value )
>> buyValueint (Optional)Buying Value (If no data will return null value)
>> buyFeeint (Optional)Buying Fee (If no data will return null value)
>> buySettlementint (Optional)Buying Payable / Received Amount (If no data will return null value)
>> buyTaxint (Optional)Buying Tax (If no data will return null value)
>> sellValueint (Optional)Selling Value (If no data will return null value)
>> sellFeeint (Optional)Selling Fee (If no data will return null value)
>> sellSettlementint (Optional)Selling Payable / Received Amount(If no data will return null value)
>> sellTaxint (Optional)Selling Tax (If no data will return null value)
>> totalBsValueint (Optional)Total Buying & Selling Value (If no data will return null value)
>> totalFeeint (Optional)Total Fee (If no data will return null value)
>> totalTaxint (Optional)Total Tax (If no data will return null value)
>> totalSettlementAmountint (Optional)Total Payable & Received Amount (If no data will return null value)
>> currencystring (Optional)Currency (If no data will return null value)

Request Example

Console.WriteLine(sdk.Accounting.QuerySettlement(target_user,"3d"));

Response Example

{
isSuccess = True,
message = ,
data = SettlementData[
{
account = AccountRes { // Account Information
account = 26, // Account (string)
branchNo = 6460 // Branch number (string)
},
details = [
Settlement{ // Settlement Data
date = 2024/03/04, // Query Date (string)
settlementDate = 2024/03/06, // Settle Date (string)
buyValue = 735500, // Buying Value (int)
buyFee = 313, // Buying Fee (int)
buySettlement = -1429513, // Buying Payable / Received Amount (int)
buyTax = 0, // Buying Tax (int)
sellValue = 770500, // Selling Value (int)
sellFee = 320, // Selling Fee (int)
sellSettlement = 0, // Selling Payable / Received Amount (int)
sellTax = 2309, // Selling Tax (int)
totalBsValue = 1506000, // Total Buying & Selling Amount (int)
totalFee = 633, // Total Fee (int)
totalSettlementAmount = -1429513, // Total Payable & Received Amount (int)
totalTax = 2309, // Total Tax (int)
currency = TWD // Currency (string)
},
Settlement{
date = 2024/03/05, // Query Date (string)
settlementDate = 2024/03/07, // Settle Date (string)
buyValue = 2261470, // Buying Value (int)
buyFee = 1065, // Buying Fee (int)
buySettlement = -3895335, // Buying Payable / Received Amount (int)
buyTax = 0, // Buying Tax (int)
sellValue = 2488170, // Selling Value (int)
sellFee = 1137, // Selling Fee (int)
sellSettlement = 677626, // Selling Payable / Received Amount (int)
sellTax = 7412, // Selling Tax (int)
totalBsValue = 4749640, // Total Buying & Selling Amount (int)
totalFee = 2202, // Total Fee (int)
totalSettlementAmount = -3217709, // Total Payable & Received Amount (int)
totalTax = 7412, // Total Tax (int)
currency = TWD // Currency (string)
},
Settlement{
date = 2024/03/06, // Query Date (string)
settlementDate = , // Settle Date (string)
buyValue = , // Buying Value (int)
buyFee = , // Buying Fee (int)
buySettlement = , // Buying Payable / Received Amount (int)
buyTax = , // Buying Tax (int)
sellValue = , // Selling Value (int)
sellFee = , // Selling Fee (int)
sellSettlement = , // Selling Payable / Received Amount (int)
sellTax = , // Selling Tax (int)
totalBsValue = , // Total Buy & Selling Amount (int)
totalFee = , // Total Fee (int)
totalSettlementAmount = , // Total Payable & Received Amount (int)
totalTax = , // Total Tax (int)
currency = // Currency (string)
}
]
}
]
}