POS365.VN APIs

<back to all web services

LedgerS2ADetailGet

The following routes are available for this service:
GET/api/ledger/detail/2a
LedgerGetBase Parameters:
NameParameterData TypeRequiredDescription
PeriodTypeformPeriodTypeNoLoại kỳ kế toán (1: Monthly, 2: Quarterly, 3: Yearly). Măc định là Monthly
PeriodYearformintYesNăm kế toán (VD: 2026)
PeriodValueformintYesGiá trị kỳ (Tháng: 1–12, Quý: 1–4)
IsFullDataformboolNoLấy toàn bộ dữ liệu hay chỉ dữ liệu phát sinh (true = full)
VersionformintNoPhiên bản kết xuất
BranchIdformintNoId chi nhánh
ODataReq Parameters:
NameParameterData TypeRequiredDescription
OrderbyformstringNo
SelectformstringNo
FilterformstringNo
Skipformint?No
Topformint?No
PeriodType Enum:
NameValue
Monthly1enum_Monthly
Quarterly2enum_Quarterly
Yearly3enum_Yearly
PagingDataSourceV2<T> Parameters:
NameParameterData TypeRequiredDescription
CountformintNo
ResultsformIList<T>No
FilterformObjectNo
ContextformObjectNo
SummaryformObjectNo
TimestampformDateTimeNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/ledger/detail/2a HTTP/1.1 
Host: api.pos365.vn 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	__count: 0,
	filter: {},
	context: {},
	summary: {},
	timestamp: 0001-01-01
}