Query Settlemet
QuerySettlement
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
range | string | Query range, currently valid values are "0d" (today) and "3d". |
Result Reponse
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | SettlementData | SettlementResponse is returned |
message | string | isSuccess = False error description is returned |
SettlementData Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
> account | list | Object |
>> account | string | Account |
>> branchNo | string | Branch Number |
> details | list | Object |
>> date | string | Query Date |
>> settlementDate | string (Optional) | Settlement Date (If no data will return null value ) |
>> buyValue | int (Optional) | Buying Value (If no data will return null value) |
>> buyFee | int (Optional) | Buying Fee (If no data will return null value) |
>> buySettlement | int (Optional) | Buying Payable / Received Amount (If no data will return null value) |
>> buyTax | int (Optional) | Buying Tax (If no data will return null value) |
>> sellValue | int (Optional) | Selling Value (If no data will return null value) |
>> sellFee | int (Optional) | Selling Fee (If no data will return null value) |
>> sellSettlement | int (Optional) | Selling Payable / Received Amount(If no data will return null value) |
>> sellTax | int (Optional) | Selling Tax (If no data will return null value) |
>> totalBsValue | int (Optional) | Total Buying & Selling Value (If no data will return null value) |
>> totalFee | int (Optional) | Total Fee (If no data will return null value) |
>> totalTax | int (Optional) | Total Tax (If no data will return null value) |
>> totalSettlementAmount | int (Optional) | Total Payable & Received Amount (If no data will return null value) |
>> currency | string (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)
}
]
}
]
}