Layanan Setup: 1.1.1.1. List User
Layanan Setup: 1.1.1.1. List User
Layanan Setup
1.1.1. User
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>>
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
1.1.2. Department
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 : {
"code" : AC1",
"name" : "Piutang",
"accountTypeId" : "1"
}
Headers : Authorization Bearer <<token>>
Note : header name => Authorization
header value => Bearer <<token akses yang didapat saat login>>
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.9. Unit
1.1.12. T Code
1.1.13. Year
1.1.14. Periode
1.1.16. Configuration
1.2.2. Journal
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.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.3. Log
"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>>
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>>