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