0% found this document useful (0 votes)
29 views

Layanan Setup: 1.1.1.1. List User

The document outlines the API endpoints, methods, bodies, and headers for performing various user, department, role, permission, company info, and account type management operations. These include getting lists, filtering, adding, editing, deleting, and getting details. All requests require an authorization header with a bearer token obtained during login.

Uploaded by

pras towo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Layanan Setup: 1.1.1.1. List User

The document outlines the API endpoints, methods, bodies, and headers for performing various user, department, role, permission, company info, and account type management operations. These include getting lists, filtering, adding, editing, deleting, and getting details. All requests require an authorization header with a bearer token obtained during login.

Uploaded by

pras towo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

1.1.

Layanan Setup
1.1.1. User

1.1.1.1. List User


Endpoint : http://185.210.144.80:2112/user
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.1.2. Filter/Search User
Endpoint : http://185.210.144.80:2112/user/filter
Method : POST
Body JSON : {"search" : "superadmin" }
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.1.3. Add User


Endpoint : http://185.210.144.80:2112/user
Method : POST

Body JSON : {
"unitId" : 1,
"roleId" : 1,
"departmentId" : 1,
"code" : "A02",
"name" : "admin",
"address" : "",
"email" : "[email protected]",
"phone" : "122323",
"password" : "admin"
}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.1.4. Edit User


Endpoint : http://185.210.144.80:2112/user/1
Method : PUT

Body JSON : {
"unitId" : 1,
"roleId" : 1,
"departmentId" : 1,
"code" : "A02",
"name" : "admin",
"address" : "Jln Mahameru No 100",
"email" : "[email protected]",
"phone" : "08574367261",
"password" : ""
}
Param URL : 1 => <<id user>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
password : (kosongkan, jika tidak ada perubahan)
1.1.1.5. Detail User
Endpoint : http://185.210.144.80:2112/user/1
Method : GET

Param URL : 1 => <<id user>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.1.6. Soft Delete User
Endpoint : http://185.210.144.80:2112/user/1
Method : DELETE
Param URL : 1 => <<id user>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.2. Department

1.1.2.1. List Department


Endpoint : http://185.210.144.80:2112/department
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.2.2. Filter Department


Endpoint : http://185.210.144.80:2112/department/filter
Method : POST
Body JSON : {"search" : "Accounting" }
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.2.3. Add Department


Endpoint : http://185.210.144.80:2112/department
Method : POST
Body JSON : { "code" : "FIV", "name" : "Keuangan"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.2.4. Edit Department
Endpoint : http://185.210.144.80:2112/department/1
Method : PUT

Body JSON : { "code" : "FIV", "name" : "Financial"}


Param URL : 1 => <<id department>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.2.5. Soft Delete Department
Endpoint : http://185.210.144.80:2112/department/1
Method : DELETE
Param URL : 1 => <<id department>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.3. Role
1.1.3.1. List Role
Endpoint : http://185.210.144.80:2112/role
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.3.2. Filter Role
Endpoint : http://185.210.144.80:2112/role/filter
Method : POST

Body JSON : {"search" : "Admin" }


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.3.3. Add Role


Endpoint : http://185.210.144.80:2112/role
Method : POST
Body JSON : { "code" : "ADM", "name" : "Admin"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.3.4. Edit Role
Endpoint : http://185.210.144.80:2112/role/1
Method : PUT
Body JSON : { "code" : "ADM", "name" : "Financial"}
Param URL : 1 => <<id role>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.3.5. Soft Delete Role


Endpoint : http://185.210.144.80:2112/role/1
Method : DELETE

Param URL : 1 => <<id user>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.4. Role Management

1.1.4.1. List Role


Endpoint : http://185.210.144.80:2112/permissionLink
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.4.2. Detail Role


Endpoint : http://185.210.144.80:2112/permissionLink/detail/1
Method : GET

Param URL : 1 => <<id role>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.4.3. List Permission
Endpoint : http://185.210.144.80:2112/permission
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.4.4. Edit Permission
Endpoint : http://185.210.144.80:2112/permission/1
Method : PUT
Body JSON : {"permission" : "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18"}
Param URL : 1 => <<id role>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.5. Company Info

1.1.5.1. Edit Company Info


Endpoint : http://185.210.144.80:2112/companyInfo/1
Method : PUT
Body JSON : { "value" : "PT Komuri Indonesia"}
Param URL : 1 => <<id company info>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.5.2. Detail Company Info


Endpoint : http://185.210.144.80:2112/companyInfo/detail/1
Method : GET

Param URL : 1 => <<id company info>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.5.3. List Company Info


Endpoint : http://185.210.144.80:2112/companyInfo
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.6. Account Type

1.1.6.1. List Account Type


Endpoint : http://185.210.144.80:2112/accountType
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.6.2. Search Account Type


Endpoint : http://185.210.144.80:2112/accountType/search
Method : POST
Body JSON : { "search: "Asset"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.6.3. Add Account Type


Endpoint : http://185.210.144.80:2112/accountType
Method : POST

Body JSON : {"code" : "ACT", "name" : "Ekuitas"}


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.6.4. Edit Account Type


Endpoint : http://185.210.144.80:2112/accountType
Method : PUT

Body JSON : {"code" : "ACT", "name" : "Ekuitas"}


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.6.5. Soft Delete Account Type


Endpoint : http://185.210.144.80:2112/accountType/1
Method : DELETE
Param URL : 1 => <<id account type>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.7. Account Category

1.1.7.1. List Account Category


Endpoint : http://185.210.144.80:2112/accountCategory
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.7.2. Search Account Category


Endpoint : http://185.210.144.80:2112/accountCategory/search
Method : POST

Body JSON : { "search: "Aset Lancar"}


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.7.3. Add Account Category


Endpoint : http://185.210.144.80:2112/accountCategory
Method : POST

Body JSON : {
"code" : AC1",
"name" : "Piutang",
"accountTypeId" : "1"
}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.7.4. Edit Account Category


Endpoint : http://185.210.144.80:2112/accountCategory/1
Method : PUT
Body JSON : {
"code" : AC1",
"name" : "Piutang",
"accountTypeId" : "1"
}
Param URL : 1 => <<id account category>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.7.5. Soft Delete Account Category


Endpoint : http://185.210.144.80:2112/accountCategory/1
Method : DELETE
Param URL : 1 => <<id account category>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.8. Account (COA)

1.1.8.1. List Account


Endpoint : http://185.210.144.80:2112/account
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.8.2. Filter Account


Endpoint : http://185.210.144.80:2112/account/filter
Method : POST

Body JSON : { "search: "Aset"}


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.8.3. Search Account


Endpoint : http://185.210.144.80:2112/account/search
Method : POST
Body JSON : { "search: "Aset"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.8.4. Add Account


Endpoint : http://185.210.144.80:2112/account
Method : POST

Body JSON : {
"accountCategoryId" : 1,
"accountTypeId" : 1,
"parentId" : 0,
"parentCode" : "0",
"code" : "1",
"name" : "Asset",
"normalBalance" : "D",
"isHeader" : 1,
"description" : "asset level 1"
}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.8.5. Edit Account


Endpoint : http://185.210.144.80:2112/account/1
Method : PUT
Body JSON : {
"accountCategoryId" : 1,
"accountTypeId" : 1,
"parentId" : 0,
"parentCode" : "0",
"code" : "1",
"name" : "Asset",
"normalBalance" : "D",
"isHeader" : 1,
"description" : "asset level 1"
}
Param URL : 1 => <<id account>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.8.6. Detail Account


Endpoint : http://185.210.144.80:2112/account/1
Method : GET

Param URL : 1 => <<id account>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.8.7. Soft Delete Account


Endpoint : http://185.210.144.80:2112/account/1
Method : DELETE

Param URL : 1 => <<id account category>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.9. Unit

1.1.9.1. List Unit


Endpoint : http://185.210.144.80:2112/unit
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.9.2. Filter Unit
Endpoint : http://185.210.144.80:2112/unit/filter
Method : POST

Body JSON : {"search" : "EDP" }


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.9.3. Add Unit
Endpoint : http://185.210.144.80:2112/unit
Method : POST
Body JSON : { "code" : "UT1", "name" : "EDP"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.9.4. Edit Unit


Endpoint : http://185.210.144.80:2112/unit/1
Method : PUT

Body JSON : { "code" : " UT2", "name" : "EDP"}


Param URL : 1 => <<id unit>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.9.5. Soft Delete Unit


Endpoint : http://185.210.144.80:2112/unit/1
Method : DELETE

Param URL : 1 => <<id unit>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.10. Transaction Type

1.1.10.1. List Transaction Type


Endpoint : http://185.210.144.80:2112/transactionType
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.10.2. Add Transaction Type
Endpoint : http://185.210.144.80:2112/transactionType
Method : POST
Body JSON : {"code" : "CON", "name" : "Konsinyasi"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.10.3. Edit Transaction Type


Endpoint : http://185.210.144.80:2112/transactionType/1
Method : PUT

Body JSON : {"code" : "CON", "name" : "Konsinyasi"}


Param URL : 1 => <<id transaction type>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.10.4. Soft Delete Transaction Type


Endpoint : http://185.210.144.80:2112/transactionType/1
Method : DELETE
Param URL : 1 => <<id account category>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.11. Journal Type

1.1.11.1. List Journal Type


Endpoint : http://185.210.144.80:2112/journalType
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.11.2. Add Journal Type


Endpoint : http://185.210.144.80:2112/journalType
Method : POST
Body JSON : {"code" : "JU", "name" : "Jurnal Umum"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.11.3. Edit Journal Type


Endpoint : http://185.210.144.80:2112/journalType/1
Method : PUT

Body JSON : {"code" : "JU", "name" : "Jurnal Umum"}


Param URL : 1 => <<id journal type>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.11.4. Soft Delete Journal Type


Endpoint : http://185.210.144.80:2112/journalType/1
Method : DELETE
Param URL : 1 => <<id journal type>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.12. T Code

1.1.12.1. List T Code


Endpoint : http://185.210.144.80:2112/tCode
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.12.2. Add T Code


Endpoint : http://185.210.144.80:2112/tCode
Method : POST
Body JSON : {"code" : "TC1", "name" : "Aset"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.12.3. Edit T Code


Endpoint : http://185.210.144.80:2112/tCode/1
Method : PUT

Body JSON : {"code" : " TC1", "name" : "Aset"}


Param URL : 1 => <<id t code>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.12.4. Soft Delete T Code


Endpoint : http://185.210.144.80:2112/tCode/1
Method : DELETE
Param URL : 1 => <<id t code>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.13. Year

1.1.13.1. List Year


Endpoint : http://185.210.144.80:2112/year
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.13.2. Add Year


Endpoint : http://185.210.144.80:2112/year
Method : POST
Body JSON : {"code" : "YR1", "name" : "2021"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.13.3. Edit Year


Endpoint : http://185.210.144.80:2112/year/1
Method : PUT

Body JSON : {"code" : " YR1", "name" : "2022"}


Param URL : 1 => <<id year>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.13.4. Soft Delete Year


Endpoint : http://185.210.144.80:2112/year/1
Method : DELETE

Param URL : 1 => <<id year>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.14. Periode

1.1.14.1. List Periode


Endpoint : http://185.210.144.80:2112/periodeTrans
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.14.2. Add Periode


Endpoint : http://185.210.144.80:2112/periodeTrans
Method : POST
Body JSON : { "user" : {"id" : 1}, "month" : "01", "year" : "2021"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.14.3. Edit Periode


Endpoint : http://185.210.144.80:2112/periodeTrans/1
Method : PUT
Body JSON : {"month" : "01", "year" : "2021"}
Param URL : 1 => <<id periode>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.14.4. Soft Delete Periode


Endpoint : http://185.210.144.80:2112/periodeTrans/1
Method : DELETE

Param URL : 1 => <<id periode>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.15. Report Type

1.1.15.1. List Report Type


Endpoint : http://185.210.144.80:2112/reportType
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.15.2. Add Report Type


Endpoint : http://185.210.144.80:2112/reportType
Method : POST
Body JSON : {"code" : "RT1", "name" : "Neraca"}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.15.3. Edit Report Type


Endpoint : http://185.210.144.80:2112/reportType/1
Method : PUT

Body JSON : {"code" : " RT1", "name" : "Calk"}


Param URL : 1 => <<id report type>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.1.15.4. Soft Delete Report Type
Endpoint : http://185.210.144.80:2112/reportType/1
Method : DELETE

Param URL : 1 => <<id report type>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.1.16. Configuration

1.1.16.1. Edit Configuration


Endpoint : http://185.210.144.80:2112/configuration/1
Method : PUT

Body JSON : {"item" : " fontSize", "value" : "15px"}


Param URL : 1 => <<id configuration>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.2. Layanan Transaksi


1.2.1. Management Periode

1.2.1.1. Select Periode


Endpoint : http://185.210.144.80:2112/periodeLink
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.2.1.2. Open Periode


Endpoint : http://185.210.144.80:2112/periodeLink
Method : POST
Body JSON : {
"periode" : { "id": 1 },
"user" : { "id" : 1 }
}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.2.1.3. Close Periode


Endpoint : http://185.210.144.80:2112/periodeLink/1
Method : PUT
Headers : Authorization Bearer <<token>>
Param URL : 1 => <<id periode>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.2.2. Journal

1.2.2.1. List Journal


Endpoint : http://185.210.144.80:2112/transaction
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.2.2.2. Add Journal


Endpoint : http://185.210.144.80:2112/transaction
Method : POST
Body JSON : {
"user" : {"id" : 1},
"journalType" : {"id" : 1},
"transactionType" : {"id" : 1},
"periode" : {"id" : 3},
"code" : "TRX/JU/0001",
"date" : "2021-08-25 14:01:12",
"note" : "Contr Aug 2021",
"attachment" : "faktur.png",
"transactionDetail" : [
{"account" : {"id" : 1},
"debet" : 1650000,
"kredit" : 0,
"tblTCode" : "[{\"id\": 1,\"value\": \"DPPK\"}]"
},
{"account" : {"id" : 2},
"debet" : 0,
"kredit" : 1650000,
"tblTCode" : “”
}
]}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.2.2.3. Edit Journal


Endpoint : http://185.210.144.80:2112/transaction/1
Method : PUT

Body JSON : {
"user" : {"id" : 1},
"journalType" : {"id" : 1},
"transactionType" : {"id" : 1},
"periode" : {"id" : 3},
"code" : "TRX/JU/0001",
"date" : "2021-08-25 15:11:19",
"note" : "Contr Aug 2021",
"attachment" : "faktur.png",
"transactionDetail" : [
{"account" : {"id" : 1},
"debet" : 1650000,
"kredit" : 0,
"tblTCode" : "[{\"id\": 1,\"value\": \"DPPK\"}]”
},
{"accountId" : {"id" : 1},
"debet" : 0,
"kredit" : 1650000,
" tblTCode " : "[{\"id\": 1,\"value\": \"DPPK\"},
{\"id\": 2,\"value\": \"DPR\"}]"
}]
}
Param URL : 1 => <<id transaction>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.2.2.4. Soft Delete Journal


Endpoint : http://185.210.144.80:2112/transaction/1
Method : DELETE
Param URL : 1 => <<id transaction>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.2.2.5. Detail Journal


Endpoint : http://185.210.144.80:2112/transaction/detail/1
Method : GET

Param URL : 1 => <<id transaction>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.2.2.6. Filter Journal


Endpoint : http://185.210.144.80:2112/transaction/filter
Method : POST
Body JSON : {"search" : "TRX/JU/0001" }
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.2.2.7. Search Journal
Endpoint : http://185.210.144.80:2112/transaction/search
Method : POST
Body JSON : {"search" : "TRX/JU/0001" }
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.3. Layanan Report


1.3.1. Export Excel

1.3.1.1. Trial Balance (TB) (OnReady – Version)


Endpoint : http://185.210.144.80:2112/printTB/excel/<startdate>/<enddate>
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
<startdate> => 2021-01-01 (tanggal awal filter)
<enddate> => 2021-12-31 (tanggal akhir filter)
Contoh : http://185.210.144.80:2112/printTB/excel/2021-01-01/2021-12-31

1.3.1.2. Statements of Net Assets (NA) (Dummy – Version)


Endpoint : http://185.210.144.80:2112/printNA/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.3.1.3. Statements of Net Assets (NA-Detail) (Dummy – Version)


Endpoint : http://185.210.144.80:2112/printNA/detail/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.3.1.4. Balance Sheets (BS) (Dummy – Version)
Endpoint : http://185.210.144.80:2112/printBS/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.3.1.5. Balance Sheets (BS-Detail) (Dummy – Version)


Endpoint : http://185.210.144.80:2112/printBS/detail/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.3.1.6. Statements of Changes in Net Assets (CNA) (Dummy – Version)


Endpoint : http://185.210.144.80:2112/printCNA/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.3.1.7. Statements of Changes in Net Assets (CAN-Detail) (Dummy – Version)


Endpoint : http://185.210.144.80:2112/printCNA/detail/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.3.1.8. Statements of Income (IS) (Dummy – Version)


Endpoint : http://185.210.144.80:2112/printIS/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.3.1.9. Statements of Income (IS-Detail)
Endpoint : http://185.210.144.80:2112/printIS/detail/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.3.1.10. Statements of Cash Flow (CF)


Endpoint : http://185.210.144.80:2112/printCF/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.3.1.11. Statements of Cash Flow (CF-Detail)


Endpoint : http://185.210.144.80:2112/printCF/detail/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.3.1.12. Data Cash Flow Investasi (CF INV+OPS)


Endpoint : http://185.210.144.80:2112/printCFInv/excel
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.4. Layanan Other


1.4.1. Login

1.4.1.1. Login
Endpoint : http://185.210.144.80:2112/login
Method : POST
Body JSON : { "username" : " superadmin", "password" : "superpass"}
1.4.2. Notification

1.4.2.1. List Notification


Endpoint : http://185.210.144.80:2112/notification
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.4.2.2. Add Notification


Endpoint : http://185.210.144.80:2112/notification
Method : POST
Body JSON : {
"userId" : 1,
"referenceId" : 1,
"code" : "A02",
"process" : "Info",
"notification" : "Saldo hutang segera mencapai batas limit",
"isRead" : true
}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.4.2.3. Detail Notification


Endpoint : http://185.210.144.80:2112/notification/1
Method : GET

Param URL : 1 => <<id notification>>


Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.4.3. Log

1.4.3.1. List Log


Endpoint : http://185.210.144.80:2112/log
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.4.3.2. Add Log
Endpoint : http://185.210.144.80:2112/log
Method : POST
Body JSON : {

"userId" : 1,
"code" : "A01",
"process" : "Edit",
"referenceId" : 1,
"note" : "{
"id" : 1,
"uuid" : "f34a6c55ce1946fba8fe19c1fac63898",
"code" : "UT1",
"name" : "Unit 1",
"created_at" : 1632837112000,
"updated_at" : 1633061999000,
"deleted_at" : null
}"
}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.4.3.3. Detail Log


Endpoint : http://185.210.144.80:2112/log/1
Method : GET
Param URL : 1 => <<id log>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
1.4.4. Edit Profile

1.4.4.1. Edit Profile


Endpoint : http://185.210.144.80:2112/user/profile/1
Method : PUT

Body JSON : {
"name" : "superadmin",
"address" : "Jln Solo Km 9,7",
"email" : "[email protected]",
"phone" : "08574378726",
"password" : ""
}
Param URL : 1 => <<id user>>
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
password : (kosongkan, jika tidak ada perubahan)

1.4.5. Logout

1.4.5.1. Logout
Endpoint : http://185.210.144.80:2112/logOut
Method : GET
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>

1.4.6. Token Utility (Tambahan jika dibutuhkan)

1.4.6.1. Create Token


Endpoint : http://185.210.144.80:2112/createToken
Method : POST

Body JSON : { "username" : " superadmin", "password" : "superpass"}

1.4.6.2. Refresh Token


Endpoint : http://185.210.144.80:2112/refreshtoken
Method : GET
Headers 1 : Authorization Bearer <<token>>
Headers 2 : isRefreshToken true
Note : header 1 name => Authorization
header 1 value => Bearer <<token akses yang didapat saat login>>
header 2 name => isRefreshToken
header 2 value => true

You might also like