API Docs for Colederma.Colederma’s API documentation explains how to interact with their system through REST architecture. It uses Bearer Token authorization for security. The documentation covers authentication, endpoints, request parameters, and error handling.
Master data
Menu Medicine
menu_categories/create [POST]
JSON Request
{
"menu_categories": "Vitamin Booster",
"codes": "VB",
"color": "#000AAF"
}JSON Response
{
"menu_categories": {
"id": 6,
"menu_categories": "Vitamin Booster",
"codes": "VB",
"color": "#000AAF",
"images": ""
}
}menu_categories/explore?page=1&length=10 [POST]
JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 6,
"menu_categories": "Vitamin Booster",
"codes": "VB",
"color": "#000AAF",
"images": "",
"image_path": "http://localhost:3000/uploads/menu_categories/7r8qeufgdsyf.png"
}
]
}menu_categories/search [POST]
JSON Response
{
"menu_categories": [
{
"id": 6,
"menu_categories": "Vitamin Booster",
"codes": "VB",
"color": "#000AAF",
"images": "",
"image_path": "http://localhost:3000/uploads/menu_categories/7r8qeufgdsyf.png"
}
]
}menu_categories/table [POST]
Table Specs
"id", //0
"menu_categories", //1
"codes", //2
"color", //3
"images", //4
"img_path", //5menu_categories/{?} [GET]
JSON Rersponse
{
"menu_categories": {
"id": 6,
"menu_categories": "Vitamin Booster",
"codes": "VB",
"color": "#000AAF",
"images": "",
"img_path": "https://dev.colederma.com/uploads/menu_categories/9zBYqCSnW5iZEGJ7.png"
}
}menu_categories/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}menu_categories/{?}/update [PUT]
{
"menu_categories": "Vitamin Booster",
"codes": "VB",
"color": "#000AAF"
}JSON Response
{
"menu_categories": {
"id": 6,
"menu_categories": "Vitamin Booster",
"codes": "VB",
"color": "#000AAF",
"images": ""
}
}menu_categories/{?}/uploads [POST]
POST multipart form-data
pictureJSON Response
{
"images": {
"id": 6,
"image_upload": true,
"img_path": "https://dev.colederma.com/uploads/menu_categories/9zBYqCSnW5iZEGJ7.png"
}
}Daftar obat, salep dan menu lainnya.
menus/create [POST]
JSON Request
{
"nama_menus": "SKINTIFIC Cream Vit C",
"brief": "kulit kencang mulus terawat tak terlupakan",
"harga": 23000,
"pajak": 0,
"is_resep_required": 0,
"is_featured": 1,
"id_menu_categories_1": 6,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "3mg",
"komposisi": "-",
"aturan_pakai": "Malam sebelum tidur",
"nomor_registrasi": "xxx-xxxxxxxxxx",
"produsen": "PT xxxxxxxxxx",
"satuan": "gram",
"berat": "380"
}JSON Response
{
"menus": {
"id": 3,
"nama_menus": "SKINTIFIC Cream Vit C",
"brief": "kulit kencang mulus terawat tak terlupakan",
"harga": 23000,
"pajak": 0,
"is_resep_required": 0,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 1,
"id_menu_categories_1": 6,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "3mg",
"komposisi": "-",
"aturan_pakai": "Malam sebelum tidur",
"nomor_registrasi": "xxx-xxxxxxxxxx",
"produsen": "PT xxxxxxxxxx",
"satuan": "gram",
"berat": "380"
}
}menus/explore?page=1&length=10 [POST]
JSON Request
{
"id_menu_categories_1": 1,
"id_menu_categories_2": 2,
"id_menu_categories_3": 6,
"id_menu_categories": [1,2,3],
"is_resep_required": 0,
"is_featured": 1,
"nama_menus": "Art Peel"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 3,
"nama_menus": "SKINTIFIC Cream Vit C",
"brief": "kulit kencang mulus terawat tak terlupakan",
"harga": 23000,
"pajak": 0,
"is_resep_required": 0,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 1,
"id_menu_categories_1": 6,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "3mg",
"komposisi": "-",
"aturan_pakai": "Malam sebelum tidur",
"nomor_registrasi": "xxx-xxxxxxxxxx",
"produsen": "PT xxxxxxxxxx",
"satuan": "gram",
"berat": "380",
"images": "https://dev.colederma.com/uploads/menus/hXGBLLtmSbjn201b.jpg"
}
]
}menus/search [POST]
JSON Request
{
"id_menu_categories_1": 1,
"id_menu_categories_2": 2,
"id_menu_categories_3": 6,
"id_menu_categories": [1,2,3],
"is_resep_required": 0,
"is_featured": 1,
"nama_menus": "Art Peel"
}JSON Response
{
"menus": [
{
"id": 3,
"nama_menus": "SKINTIFIC Cream Vit C",
"brief": "kulit kencang mulus terawat tak terlupakan",
"harga": 23000,
"pajak": 0,
"is_resep_required": 0,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 1,
"id_menu_categories_1": 6,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "3mg",
"komposisi": "-",
"aturan_pakai": "Malam sebelum tidur",
"nomor_registrasi": "xxx-xxxxxxxxxx",
"produsen": "PT xxxxxxxxxx",
"satuan": "gram",
"berat": "380",
"images": "https://dev.colederma.com/uploads/menus/hXGBLLtmSbjn201b.jpg"
}
]
}menus/table [POST]
Parameter
is_resep_required
id_menu_categories_1
id_menu_categories_2
id_menu_categories_3
is_featured
nama_menusTable Specs
"id", //0
"nama_menus", //1
"brief", //2
"harga", //3
"pajak", //4
"is_resep_required", //5
"images", //6
"harga_promosi", //7
"mulai_harga_promosi", //8
"selesai_harga_promosi", //9
"is_featured", //10
"menu_categories_1", //11
"menu_categories_2", //12
"menu_categories_3", //13
"dosis", //14
"komposisi", //15
"aturan_pakai", //16
"nomor_registrasi", //17
"produsen", //18
"satuan", //19
"berat", //20menus/{?} [GET]
JSON Response
{
"menus": {
"id": 2,
"nama_menus": "Chizu Cream Kulit",
"brief": "Chizu Cream Kulit",
"harga": 100000,
"pajak": 0,
"is_resep_required": 0,
"harga_promosi": 0,
"mulai_harga_promosi": "0000-00-00 00:00:00",
"selesai_harga_promosi": "0000-00-00 00:00:00",
"is_featured": 0,
"id_menu_categories_1": 6,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "3mg",
"komposisi": "-",
"aturan_pakai": "Malam sebelum tidur",
"nomor_registrasi": "xxx-xxxxxxxxxx",
"produsen": "PT xxxxxxxxxx",
"satuan": "gram",
"berat": "380",
"images": "https://dev.colederma.com/uploads/menus/hXGBLLtmSbjn201b.jpg"
}
}menus/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}menus/{?}/update [PUT,POST]
JSON Request
{
"nama_menus": "SKINTIFIC Cream Vit C",
"brief": "kulit kencang mulus terawat tak terlupakan",
"harga": 23000,
"pajak": 0,
"is_resep_required": 0,
"is_featured": 1,
"id_menu_categories_1": 6,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "3mg",
"komposisi": "-",
"aturan_pakai": "Malam sebelum tidur",
"nomor_registrasi": "xxx-xxxxxxxxxx",
"produsen": "PT xxxxxxxxxx",
"satuan": "gram",
"berat": "380"
}JSON Response
{
"menus": {
"id": 3,
"nama_menus": "SKINTIFIC Cream Vit C",
"brief": "kulit kencang mulus terawat tak terlupakan",
"harga": 23000,
"pajak": 0,
"is_resep_required": 0,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 1,
"id_menu_categories_1": 6,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "3mg",
"komposisi": "-",
"aturan_pakai": "Malam sebelum tidur",
"nomor_registrasi": "xxx-xxxxxxxxxx",
"produsen": "PT xxxxxxxxxx",
"satuan": "gram",
"berat": "380"
}
}menus/prescriptions/requests [POST]
JSON Request
{
"id_menu": 13
}JSON Response
{
"prescriptions_requests": true
}Menu Images
menu_images/create [POST]
POST Multipart form-data
id_menus
pictureJSON Response
{
"menu_images": {
"id": 21,
"menus": null,
"menu_image": "SxsBef1A6wz22fvL.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0,
"image_upload": true,
"img_path": "https://dev.colederma.com/uploads/menus/SxsBef1A6wz22fvL.jpg"
}
}menu_images/explore?page=1&length=10 [POST]
JSON Request
{
"id_menus": 2
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 21,
"id_menus": 2,
"menu_image": "SxsBef1A6wz22fvL.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0,
"img_path": "https://dev.colederma.com/uploads/menus/SxsBef1A6wz22fvL.jpg"
}
]
}menu_images/search [POST]
JSON Request
{
"id_menus": 2
}JSON Response
{
"menu_images": [
{
"id": 21,
"id_menus": 2,
"menu_image": "SxsBef1A6wz22fvL.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0,
"img_path": "https://dev.colederma.com/uploads/menus/SxsBef1A6wz22fvL.jpg"
}
]
}menu_images/table [POST]
Search Param
id_menusTable Specs
"id", //0
"id_menus", //1
"menu_image", //2
"is_primary", //3
"nomor_urut_tampil", //4
"img_path", //5menu_images/{?} [GET]
JSON Response
{
"menu_images": {
"id": 21,
"menus": {
"id": 2,
"nama_menus": "Chizu Cream Kulit",
"brief": "Chizu Cream Kulit",
"harga": 100000,
"pajak": 0,
"is_resep_required": 0,
"kategori": "UMUM",
"harga_promosi": 0,
"mulai_harga_promosi": "0000-00-00 00:00:00",
"selesai_harga_promosi": "0000-00-00 00:00:00",
"is_featured": 0
},
"menu_image": "SxsBef1A6wz22fvL.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0,
"img_path": "https://dev.colederma.com/uploads/menus/SxsBef1A6wz22fvL.jpg"
}
}menu_images/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}menu_images/{?}/update [PUT]
POST Multipart form-data
id_menus
pictureJSON Response
{
"menu_images": {
"id": 21,
"menus": null,
"menu_image": "SxsBef1A6wz22fvL.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0,
"image_upload": true,
"img_path": "https://dev.colederma.com/uploads/menus/SxsBef1A6wz22fvL.jpg"
}
}Store dan Cabang
brandstore/create [POST]
JSON Request
{
"nama": "IORA",
"alamat": "Testing 1",
"notelp": "08137771312",
"opentime": "09:00",
"closetime": "20:00",
"city": "Bandung",
"lat": 0,
"lng": 0,
"is_show": 1,
"groupname": "STS"
}JSON Response
{
"brandstore": {
"id": "1",
"nama": "IORA",
"alamat": "Testing 1",
"notelp": "08137771312",
"opentime": "09:00",
"closetime": "20:00",
"city": "Bandung",
"lat": 0,
"lng": 0,
"is_show": 1,
"groupname": "STS"
}
}brandstore/search [POST]
Search param
{
"city": "KOTA JAKARTA UTARA",
"groupby": "city",
"is_show": 1,
"groupname": "STS",
"latlng": {
"lat": -6.1339,
"lng": 106.8853
}
}JSON Response
{
"brandstore": [
{
"id": "1",
"nama": "IORA",
"alamat": "Testing 1",
"notelp": "08137771312",
"opentime": "09:00:00",
"closetime": "20:00:00",
"city": "Bandung",
"lat": 0,
"lng": 0,
"is_show": 1,
"groupname": "STS"
}
]
}JSON Response (group by)
{
"brandstore": {
"KOTA JAKARTA UTARA": [
{
"id": "1",
"nama": "IORA Pusat",
"alamat": "Testing 1 update",
"notelp": "08137771312",
"opentime": "09:00:00",
"closetime": "20:00:00",
"city": "KOTA JAKARTA UTARA",
"lat": "-6.1339",
"lng": "106.8823",
"meter_in_distance": 331
},
{
"id": "44",
"nama": "Super Furry - Pantjoran Pantai Indah Kapuk (coming soon)",
"alamat": "Pantjoran Pantai Indah Kapuk",
"notelp": "082112345678",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA UTARA",
"lat": "-6.1339",
"lng": "106.8823",
"meter_in_distance": 331
}
]
}
}brandstore/table [POST]
Parameter
city
is_showTable Specs
id //0
nama //1
alamat //2
notelp //3
opentime //4
closetime //5
city //6
lat //7
lng //8
is_show //9
groupname //10brandstore/city [GET]
Menampilkan daftar kota yang sudah didaftarkan ke database brandstore
JSON Response
[
{
"city": "KABUPATEN BADUNG"
},
{
"city": "KOTA SURABAYA"
},
{
"city": "KOTA SURAKARTA"
}
]brandstore/{?} [GET]
JSON Response
{
"brandstore": {
"id": "1",
"nama": "IORA",
"alamat": "Testing 1",
"notelp": "08137771312",
"opentime": "09:00",
"closetime": "20:00",
"city": "Bandung",
"lat": 0,
"lng": 0,
"is_show": 1,
"groupname": "STS"
}
}brandstore/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}brandstore/{?}/update [PUT,POST]
JSON Request
{
"nama": "IORA Pusat",
"alamat": "Testing 1 update",
"notelp": "08137771312",
"opentime": "09:00",
"closetime": "20:00",
"city": "Bandung",
"lat": 0,
"lng": 0,
"is_show": 1,
"groupname": "STS"
}JSON Response
{
"brandstore": {
"id": "1",
"nama": "IORA Pusat",
"alamat": "Testing 1 update",
"notelp": "08137771312",
"opentime": "09:00",
"closetime": "20:00",
"city": "Bandung",
"lat": 0,
"lng": 0,
"is_show": 1,
"groupname": "STS"
}
}Brandstore Menus
brandstore_menus/create [POST]
JSON Request
{
"idmenu": 10,
"idbrandstore": 2
}JSON Response
{
"brandstoremenus": {
"id": "1",
"menu": {
"id": "10",
"idbundlemenus": "0",
"nama": "Triple Chocolate Sando (pcs)",
"brief": "Chocolate cream & Chocolate Buttercream Filling",
"img": "AhPtEB3vIiIeKhkU.jpg",
"harga": "12000",
"pajak": "2000",
"buffertime": "10",
"kategori": "Lagi Hits",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0"
},
"brandstore": {
"id": "2",
"nama": "Momoiro - Central Park",
"alamat": "Central Park Mall",
"notelp": "082112345678",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1676",
"lng": "106.7673"
}
}
}brandstore_menus/create/bulk [POST]
JSON Request
[
{
"idmenu": 102,
"idbrandstore": 2
},
{
"idmenu": 103,
"idbrandstore": 2
},
{
"idmenu": 104,
"idbrandstore": 2
}
]JSON Response
{
"brandstoremenus": [
{
"id": "21",
"menu": {
"id": "102",
"idbundlemenus": "0",
"nama": "Chocolate Chiffon Cake With Cream Cheese Frosting & Mixed Berries Topping",
"brief": "Each",
"img": "SzSNkHkqXQ1wEK3U.webp",
"harga": "225000",
"pajak": "2000",
"buffertime": "10",
"kategori": "Signature",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0"
},
"brandstore": {
"id": "2",
"nama": "Momoiro - Central Park",
"alamat": "Central Park Mall",
"notelp": "082112345678",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1676",
"lng": "106.7673"
}
},
{
"id": "22",
"menu": {
"id": "103",
"idbundlemenus": "0",
"nama": "Blue Pea Cake (20x20x3.5 cm)",
"brief": "Each",
"img": "7fTON5BRgd7zUF2N.webp",
"harga": "450000",
"pajak": "2000",
"buffertime": "10",
"kategori": "Signature",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0"
},
"brandstore": {
"id": "2",
"nama": "Momoiro - Central Park",
"alamat": "Central Park Mall",
"notelp": "082112345678",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1676",
"lng": "106.7673"
}
},
{
"id": "23",
"menu": {
"id": "104",
"idbundlemenus": "0",
"nama": "Swiss Roll (Buttercream + Cheese) - sliced",
"brief": "",
"img": "g8LEFhU7efH3GLmH.webp",
"harga": "18500",
"pajak": "2000",
"buffertime": "10",
"kategori": "Signature",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0"
},
"brandstore": {
"id": "2",
"nama": "Momoiro - Central Park",
"alamat": "Central Park Mall",
"notelp": "082112345678",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1676",
"lng": "106.7673"
}
}
]
}brandstore_menus/{?}/duplicates [POST]
JSON Response
{
"menus": {
"id": "1",
"brandstore": {
"id": "1",
"nama": "IORA Pusat",
"alamat": "Testing 1 update",
"notelp": "08137771312",
"opentime": "09:00:00",
"closetime": "20:00:00"
},
"bundlemenus": null,
"nama": "Ayam Geprek",
"brief": "",
"img": "",
"img_path": "https://dev.colederma.com/uploads/menus/",
"harga": "23000",
"pajak": "0",
"buffertime": "10"
}
}brandstore_menus/explore?page=1&length=10 [POST,GET]
JSON Request
{
"idmenu": 10,
"idbrandstore": 2,
"idbundlemenus": 1,
"kategori": "Lagi Hits",
"groupname": "STS"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": "10",
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": "1",
"idmenu": "10",
"idstock": "1",
"idbrandstore": "2",
"alamat": "Central Park Mall",
"notelp": "082112345678",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1676",
"lng": "106.7673",
"nama": "Triple Chocolate Sando (pcs)",
"brief": "Chocolate cream & Chocolate Buttercream Filling",
"img": "AhPtEB3vIiIeKhkU.jpg",
"harga": "12000",
"pajak": "2000",
"buffertime": "10",
"kategori": "Lagi Hits",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0"
}
]
}brandstore_menus/search [POST]
JSON Request
{
"idmenu": 10,
"idbrandstore": 2,
"idbundlemenus": 1,
"kategori": "Lagi Hits",
"groupby": "menu",
"limit": 10,
"groupname": "STS"
}JSON Response
{
"brandstoremenus": [
{
"id": "1",
"idmenu": "10",
"idstock": "1",
"idbrandstore": "2",
"alamat": "Central Park Mall",
"notelp": "082112345678",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1676",
"lng": "106.7673",
"nama": "Triple Chocolate Sando (pcs)",
"brief": "Chocolate cream & Chocolate Buttercream Filling",
"img": "AhPtEB3vIiIeKhkU.jpg",
"harga": "12000",
"pajak": "2000",
"buffertime": "10",
"kategori": "Lagi Hits",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0"
}
]
}JSON Response (groupby)
{
"brandstoremenus": {
"SANDO box of 9 - mix 2 flavors": [
{
"id": "2",
"idmenu": "23",
"idstock": null,
"idbrandstoremenus": "2",
"idbrandstore": "2",
"codebundle": null,
"brandstores": "Momoiro - Central Park/Neo Soho Mall",
"alamat": "Lantai LG. Jl. Letjen S. Parman No.kav.28, Tj. Duren Sel., Kec. Grogol petamburan, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta 11470",
"notelp": "+6281903092018",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1749577",
"lng": "106.7878247",
"groupname": "MCM",
"nama": "Sando mix Matcha, Buttercream Caramel (Box of 9)",
"brief": "4 pcs Matcha / 5 pcs Buttercream",
"img": "Cmrhe2fzzaiLI4U8.jpg",
"harga": "123000",
"pajak": "2000",
"buffertime": "10",
"nourut_menu": "0",
"nourut_kategori": "18",
"kategori": "SANDO box of 9 - mix 2 flavors",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0",
"is_has_extra": false,
"img_path": "https://dev.colederma.com/uploads/menus/Cmrhe2fzzaiLI4U8.jpg",
"display_harga": "IDR 123.000",
"display_harga_promosi": "IDR 0",
"editable": true
}
],
"SANDO per pc": [
{
"id": "1",
"idmenu": "10",
"idstock": "1",
"idbrandstoremenus": "1",
"idbrandstore": "2",
"codebundle": null,
"brandstores": "Momoiro - Central Park/Neo Soho Mall",
"alamat": "Lantai LG. Jl. Letjen S. Parman No.kav.28, Tj. Duren Sel., Kec. Grogol petamburan, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta 11470",
"notelp": "+6281903092018",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1749577",
"lng": "106.7878247",
"groupname": "MCM",
"nama": "Triple Chocolate Sando (pcs)",
"brief": "Chocolate cream & Chocolate Buttercream Filling",
"img": "L7wmdt6RvhQqQZ2f.jpg",
"harga": "12000",
"pajak": "2000",
"buffertime": "10",
"nourut_menu": "0",
"nourut_kategori": "21",
"kategori": "SANDO per pc",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "11",
"is_has_extra": false,
"img_path": "https://dev.colederma.com/uploads/menus/L7wmdt6RvhQqQZ2f.jpg",
"display_harga": "IDR 12.000",
"display_harga_promosi": "IDR 0",
"editable": true
},
{
"id": "1",
"idmenu": "10",
"idstock": "23",
"idbrandstoremenus": "1",
"idbrandstore": "2",
"codebundle": null,
"brandstores": "Momoiro - Central Park/Neo Soho Mall",
"alamat": "Lantai LG. Jl. Letjen S. Parman No.kav.28, Tj. Duren Sel., Kec. Grogol petamburan, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta 11470",
"notelp": "+6281903092018",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1749577",
"lng": "106.7878247",
"groupname": "MCM",
"nama": "Triple Chocolate Sando (pcs)",
"brief": "Chocolate cream & Chocolate Buttercream Filling",
"img": "L7wmdt6RvhQqQZ2f.jpg",
"harga": "12000",
"pajak": "2000",
"buffertime": "10",
"nourut_menu": "0",
"nourut_kategori": "21",
"kategori": "SANDO per pc",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "32",
"is_has_extra": false,
"img_path": "https://dev.colederma.com/uploads/menus/L7wmdt6RvhQqQZ2f.jpg",
"display_harga": "IDR 12.000",
"display_harga_promosi": "IDR 0",
"editable": true
}
],
"Signature": [
{
"id": "22",
"idmenu": "103",
"idstock": null,
"idbrandstoremenus": "22",
"idbrandstore": "2",
"codebundle": null,
"brandstores": "Momoiro - Central Park/Neo Soho Mall",
"alamat": "Lantai LG. Jl. Letjen S. Parman No.kav.28, Tj. Duren Sel., Kec. Grogol petamburan, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta 11470",
"notelp": "+6281903092018",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1749577",
"lng": "106.7878247",
"groupname": "MCM",
"nama": "Blue Pea Cake (20x20x3.5 cm)",
"brief": "Each",
"img": "9CBejJ5e8kgh32NR.jpg",
"harga": "450000",
"pajak": "0",
"buffertime": "0",
"nourut_menu": "0",
"nourut_kategori": "22",
"kategori": "Signature",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0",
"is_has_extra": false,
"img_path": "https://dev.colederma.com/uploads/menus/9CBejJ5e8kgh32NR.jpg",
"display_harga": "IDR 450.000",
"display_harga_promosi": "IDR 0",
"editable": true
},
{
"id": "21",
"idmenu": "102",
"idstock": null,
"idbrandstoremenus": "21",
"idbrandstore": "2",
"codebundle": null,
"brandstores": "Momoiro - Central Park/Neo Soho Mall",
"alamat": "Lantai LG. Jl. Letjen S. Parman No.kav.28, Tj. Duren Sel., Kec. Grogol petamburan, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta 11470",
"notelp": "+6281903092018",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1749577",
"lng": "106.7878247",
"groupname": "MCM",
"nama": "Chocolate Chiffon Cake With Cream Cheese Frosting & Mixed Berries Topping",
"brief": "Each",
"img": "9acb6dojYSRD1ynK.jpg",
"harga": "225000",
"pajak": "0",
"buffertime": "0",
"nourut_menu": "0",
"nourut_kategori": "22",
"kategori": "Signature",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0",
"is_has_extra": false,
"img_path": "https://dev.colederma.com/uploads/menus/9acb6dojYSRD1ynK.jpg",
"display_harga": "IDR 225.000",
"display_harga_promosi": "IDR 0",
"editable": true
},
{
"id": "23",
"idmenu": "104",
"idstock": null,
"idbrandstoremenus": "23",
"idbrandstore": "2",
"codebundle": null,
"brandstores": "Momoiro - Central Park/Neo Soho Mall",
"alamat": "Lantai LG. Jl. Letjen S. Parman No.kav.28, Tj. Duren Sel., Kec. Grogol petamburan, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta 11470",
"notelp": "+6281903092018",
"opentime": "10:00:00",
"closetime": "21:00:00",
"city": "KOTA JAKARTA BARAT",
"lat": "-6.1749577",
"lng": "106.7878247",
"groupname": "MCM",
"nama": "Swiss Roll (Buttercream + Cheese) - sliced",
"brief": "",
"img": "CXxSQe77KdaIuqwt.jpg",
"harga": "18500",
"pajak": "0",
"buffertime": "0",
"nourut_menu": "0",
"nourut_kategori": "22",
"kategori": "Signature",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0",
"is_has_extra": false,
"img_path": "https://dev.colederma.com/uploads/menus/CXxSQe77KdaIuqwt.jpg",
"display_harga": "IDR 18.500",
"display_harga_promosi": "IDR 0",
"editable": true
}
],
"PIllow Cake": [
{
"id": "8",
"idmenu": "2",
"idstock": "5",
"idbrandstoremenus": "8",
"idbrandstore": "1",
"codebundle": null,
"brandstores": "Spring Bakers - Pusat",
"alamat": "Rukan mangga dua square blok D no. 31\njakarta utara 14420",
"notelp": "+628137771312",
"opentime": "09:00:00",
"closetime": "20:00:00",
"city": "KOTA JAKARTA UTARA",
"lat": "-6.906462015650219",
"lng": "107.61224205768039",
"groupname": "MCM",
"nama": "Chizu",
"brief": "Cheese pillow cake",
"img": "FcUY6vW5zzK4FjAO.jpg",
"harga": "77000",
"pajak": "0",
"buffertime": "0",
"nourut_menu": "0",
"nourut_kategori": "3",
"kategori": "PIllow Cake",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "5",
"is_has_extra": true,
"img_path": "https://dev.colederma.com/uploads/menus/FcUY6vW5zzK4FjAO.jpg",
"display_harga": "IDR 77.000",
"display_harga_promosi": "IDR 0",
"editable": false
}
],
"Bolo Buns": [
{
"id": "6",
"idmenu": "254",
"idstock": null,
"idbrandstoremenus": "6",
"idbrandstore": "1",
"codebundle": null,
"brandstores": "Spring Bakers - Pusat",
"alamat": "Rukan mangga dua square blok D no. 31\njakarta utara 14420",
"notelp": "+628137771312",
"opentime": "09:00:00",
"closetime": "20:00:00",
"city": "KOTA JAKARTA UTARA",
"lat": "-6.906462015650219",
"lng": "107.61224205768039",
"groupname": "MCM",
"nama": "Bolo Buns (Black Sesame)",
"brief": "",
"img": "IA8L57MfNDcj1sOd.jpeg",
"harga": "20000",
"pajak": "2000",
"buffertime": "10",
"nourut_menu": "0",
"nourut_kategori": "5",
"kategori": "Bolo Buns",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "0",
"is_has_extra": true,
"img_path": "https://dev.colederma.com/uploads/menus/IA8L57MfNDcj1sOd.jpeg",
"display_harga": "IDR 20.000",
"display_harga_promosi": "IDR 0",
"editable": false
}
],
"Cheese Tea": [
{
"id": "7",
"idmenu": "218",
"idstock": "8",
"idbrandstoremenus": "7",
"idbrandstore": "1",
"codebundle": null,
"brandstores": "Spring Bakers - Pusat",
"alamat": "Rukan mangga dua square blok D no. 31\njakarta utara 14420",
"notelp": "+628137771312",
"opentime": "09:00:00",
"closetime": "20:00:00",
"city": "KOTA JAKARTA UTARA",
"lat": "-6.906462015650219",
"lng": "107.61224205768039",
"groupname": "MCM",
"nama": "Jasmine Cheese Tea (L)",
"brief": "",
"img": "or3os3MDcZPrMIsT.jpg",
"harga": "32000",
"pajak": "2000",
"buffertime": "10",
"nourut_menu": "0",
"nourut_kategori": "6",
"kategori": "Cheese Tea",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "12",
"is_has_extra": true,
"img_path": "https://dev.colederma.com/uploads/menus/or3os3MDcZPrMIsT.jpg",
"display_harga": "IDR 32.000",
"display_harga_promosi": "IDR 0",
"editable": false
}
],
"Porsi Besar": [
{
"id": "3",
"idmenu": "56",
"idstock": "3",
"idbrandstoremenus": "3",
"idbrandstore": "1",
"codebundle": null,
"brandstores": "Spring Bakers - Pusat",
"alamat": "Rukan mangga dua square blok D no. 31\njakarta utara 14420",
"notelp": "+628137771312",
"opentime": "09:00:00",
"closetime": "20:00:00",
"city": "KOTA JAKARTA UTARA",
"lat": "-6.906462015650219",
"lng": "107.61224205768039",
"groupname": "MCM",
"nama": "Kyto Raspberry Cheesecake (extra large)",
"brief": "Extra Large - 26 cm x 26 cm",
"img": "dlldvFNf2XARWtUR.jpg",
"harga": "720000",
"pajak": "0",
"buffertime": "0",
"nourut_menu": "0",
"nourut_kategori": "16",
"kategori": "Porsi Besar",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"stocks": "18",
"is_has_extra": true,
"img_path": "https://dev.colederma.com/uploads/menus/dlldvFNf2XARWtUR.jpg",
"display_harga": "IDR 720.000",
"display_harga_promosi": "IDR 0",
"editable": false
}
]
}
}brandstore_menus/table [POST]
Search Terms
idmenu
idbrandstore
groupnameTable Specs
id //0
idmenu //1
idbrandstore //2
nama //3
brief //4
img //5
harga //6
pajak //7
buffertime //8
kategori //9
harga_promosi //10
mulai_harga_promosi //11
selesai_harga_promosi //12
stocks //13
codebundle //14
idstock //15brandstore_menus/{?} [GET]
JSON Response
{
"brandstoremenus": {
"id": "3",
"menu": {
"id": "56",
"idbundlemenus": "0",
"nama": "Kyto Raspberry Cheesecake (extra large)",
"brief": "Extra Large - 26 cm x 26 cm",
"img": "jb4j6KwDMlGiM9e1.webp",
"harga": "720000",
"pajak": "2000",
"buffertime": "10",
"kategori": "Porsi Besar",
"harga_promosi": null,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"codebundle": null
},
"brandstore": {
"id": "1",
"nama": "IORA",
"alamat": "Testing 1 update",
"notelp": "08137771312",
"opentime": "09:00:00",
"closetime": "20:00:00",
"city": "KOTA JAKARTA UTARA",
"lat": "-6.1339",
"lng": "106.8823"
},
"stocks": [
{
"id": "3",
"idbrandstoremenus": "3",
"quantitytotal": "180",
"datetimeupdateat": "2022-05-16 01:12:23",
"idbundlemenus": "0",
"nama": "Kyto Raspberry Cheesecake (extra large)",
"brief": "Extra Large - 26 cm x 26 cm",
"harga": "720000",
"pajak": "2000",
"buffertime": "10"
}
]
}
}brandstore_menus/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}Doctors and Doctor Specialists
doctors/create [POST]
JSON Request
{
"id_users": 3,
"id_services": 24,
"custom_price": 300000,
"doctor_description": "Spesialis pencernaan bagian atas",
"availability_description": "senin,selasa,rabu,kamis",
"short_description": "pintasan tentang yang singkat",
"is_active": 1
}JSON Response
{
"stylists": {
"id": 84,
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Owner",
"num_of_login_attempts": 0,
"department_ids": null,
"department_name": null,
"department_descriptions": null,
"department_codes": null
},
"services": {
"id": 24,
"services_name": "Cek kolestrol dan gula darahhhh",
"services_category": "UMUM",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1
},
"custom_price": 300000,
"doctor_description": "Spesialis pencernaan bagian atas",
"availability_description": "senin,selasa,rabu,kamis",
"short_description": "pintasan tentang yang singkat",
"is_active": 1
}
}doctors/explore?page=1&length=10 [POST]
JSON Request
{
"id_users": 3,
"id_services": 24
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 84,
"id_users": 3,
"id_services": 0,
"custom_price": 100000,
"doctor_description": "<p>Spesialis pencernaan bagian atas</p>",
"availability_description": "senin,selasa,rabu,kamis",
"short_description": "pintasan tentang yang singkat",
"is_active": 1,
"users_fullname": "Didit Velliz SpKK,.",
"services_name": null,
"users_picture": "uudsHtsBkbOJIDCj.jpg",
"users_picture_url": "https://dev.colederma.com/uploads/users/uudsHtsBkbOJIDCj.jpg"
}
]
}doctors/search [POST]
JSON Request
{
"id_users": 3,
"id_services": 24
}JSON Response
{
"doctors": [
{
"id": 84,
"id_users": 3,
"id_services": 0,
"custom_price": 100000,
"doctor_description": "<p>Spesialis pencernaan bagian atas</p>",
"availability_description": "senin,selasa,rabu,kamis",
"short_description": "pintasan tentang yang singkat",
"is_active": 1,
"users_fullname": "Didit Velliz SpKK,.",
"services_name": null,
"users_picture": "uudsHtsBkbOJIDCj.jpg",
"users_picture_url": "https://dev.colederma.com/uploads/users/uudsHtsBkbOJIDCj.jpg"
}
]
}doctors/table [POST]
Search Param
id_users
id_servicesTable Specs
"id", //0
"id_users", //1
"id_services", //2
"custom_price", //3
"doctor_description", //4
"availability_description", //5
"is_active", //6
"users_fullname", //7
"services_name", //8
"short_description", //9doctors/{?} [GET]
JSON Response
{
"doctors": {
"id": 84,
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz SpKK,.",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "uudsHtsBkbOJIDCj.jpg",
"is_password_reset_required": 0,
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02",
"users_picture_url": "https://dev.colederma.com/uploads/users/uudsHtsBkbOJIDCj.jpg"
},
"services": null,
"custom_price": 100000,
"doctor_description": "<p>Spesialis pencernaan bagian atas</p>",
"availability_description": "senin,selasa,rabu,kamis",
"short_description": "pintasan tentang yang singkat",
"is_active": 1,
"users_picture": "uudsHtsBkbOJIDCj.jpg",
"users_picture_url": "https://dev.colederma.com/uploads/users/uudsHtsBkbOJIDCj.jpg"
}
}doctors/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}doctors/{?}/update [PUT]
JSON Request
{
"id_users": 3,
"id_services": 24,
"custom_price": 300000,
"doctor_description": "Spesialis pencernaan bagian atas",
"availability_description": "senin,selasa,rabu,kamis",
"short_description": "pintasan tentang yang singkat",
"is_active": 1
}JSON Response
{
"stylists": {
"id": 84,
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Owner",
"num_of_login_attempts": 0,
"department_ids": null,
"department_name": null,
"department_descriptions": null,
"department_codes": null
},
"services": {
"id": 24,
"services_name": "Cek kolestrol dan gula darahhhh",
"services_category": "UMUM",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1
},
"custom_price": 300000,
"doctor_description": "Spesialis pencernaan bagian atas",
"availability_description": "senin,selasa,rabu,kamis",
"short_description": "pintasan tentang yang singkat",
"is_active": 1
}
}Layanan Dokter & Dokter Spesialis
doctor_services/create [POST]
JSON Request
{
"id_doctors": 3,
"id_services": 4,
"custom_price": 300000,
"doctor_buffer_time": 15
}JSON Response
{
"doctor_services": {
"id": 98,
"doctors": null,
"services": null,
"custom_price": 300000,
"doctor_buffer_time": 15,
"is_active": 0
}
}doctor_services/explore?page=1&length=10 [POST]
JSON Request
{
"id_doctors": 3,
"id_services": 4,
"is_active": 1
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 2,
"anchor": [
{
"page": 1
}
],
"totaldata": 2,
"data": [
{
"id": 96,
"id_doctors": 3,
"id_services": 4,
"doctors": null,
"doctor_description": null,
"availability_description": null,
"services_name": null,
"services_description": null,
"custom_price": 0,
"doctor_buffer_time": 0,
"is_active": 0
},
{
"id": 98,
"id_doctors": 3,
"id_services": 4,
"doctors": null,
"doctor_description": null,
"availability_description": null,
"services_name": null,
"services_description": null,
"custom_price": 300000,
"doctor_buffer_time": 15,
"is_active": 0
}
]
}doctor_services/search [POST]
JSON Request
{
"id_doctors": 3,
"id_services": 4,
"is_active": 1
}JSON Response
{
"doctor_services": [
{
"id": 96,
"id_doctors": 3,
"id_services": 4,
"doctors": null,
"doctor_description": null,
"availability_description": null,
"services_name": null,
"services_description": null,
"custom_price": 0,
"doctor_buffer_time": 0,
"is_active": 0
},
{
"id": 98,
"id_doctors": 3,
"id_services": 4,
"doctors": null,
"doctor_description": null,
"availability_description": null,
"services_name": null,
"services_description": null,
"custom_price": 300000,
"doctor_buffer_time": 15,
"is_active": 0
}
]
}doctor_services/table [POST]
Search Param
id_doctors
id_services
is_activeTable Specs
"id", //0
"id_doctors", //1
"id_services", //2
"doctors", //3
"doctor_description", //4
"availability_description", //5
"services_name", //6
"services_description", //7
"custom_price", //8
"doctor_buffer_time", //9
"is_active", //10doctor_services/{?} [GET]
JSON Response
{
"doctor_services": {
"id": 98,
"doctors": null,
"services": null,
"custom_price": 300000,
"doctor_buffer_time": 15,
"is_active": 0
}
}doctor_services/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}doctor_services/{?}/update [PUT]
JSON Request
{
"custom_price": 300000,
"doctor_buffer_time": 15,
"is_active": 1
}JSON Response
{
"doctor_services": {
"id": 98,
"doctors": null,
"services": null,
"custom_price": 300000,
"doctor_buffer_time": 15,
"is_active": 0
}
}Jadwal Praktek Dokter
doctor_schedules/generate [POST]
JSON Request
{
"id_doctors": 85
}JSON Response
{
"data": [
{
"id_doctors": 85,
"id_services": 2,
"day": "Senin",
"open": "09:00"
}
],
"generate": true
}Internal Only doctor_schedules
doctor_schedules/create [POST]
JSON Request
{
"id_doctors": 85,
"id_doctor_services": 96,
"custom_price": 300000,
"hari": "Senin",
"jam": "17:00"
}JSON Response
{
"doctor_schedules": {
"id": 96,
"doctors": {
"id": 85,
"id_users": 5,
"id_services": 2,
"custom_price": 200000,
"doctor_description": "Dokter Umum",
"availability_description": "Senin, Selasa, Rabu, Sabtu",
"is_active": 1
},
"doctor_services": {
"id": 96,
"id_doctors": 3,
"id_services": 4,
"doctors": null,
"doctor_description": null,
"availability_description": null,
"services_name": null,
"services_description": null,
"custom_price": 0,
"doctor_buffer_time": 0,
"is_active": 0
},
"hari": "Senin",
"jam": "17:00:00"
}
}doctor_schedules/explore?page=1&length=10 [POST]
JSON Request
{
"id_doctors": 85,
"id_doctor_services": 1,
"hari": "Senin"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 96,
"id_doctors": 85,
"id_doctor_services": 96,
"hari": "Senin",
"jam": "17:00:00",
"services_name": null,
"service_categories": null,
"doctors": "Markus Nahesson SpKK,."
}
]
}doctor_schedules/search [POST]
JSON Request
{
"id_doctors": 85,
"id_services": 1,
"is_active": 1,
"hari": "Senin"
}JSON Response
{
"doctor_schedules": [
{
"id": 96,
"id_doctors": 85,
"id_doctor_services": 96,
"hari": "Senin",
"jam": "17:00:00",
"services_name": null,
"service_categories": null,
"doctors": "Markus Nahesson SpKK,."
}
]
}doctor_schedules/table [POST]
Search Param
id_doctors
id_doctor_services
hariTable Specs
"id", //0
"id_doctors", //1
"id_doctor_services", //2
"hari", //3
"jam", //4
"services_name", //5
"service_categories", //6
"doctors", //7doctor_schedules/{?} [GET]
JSON Response
{
"doctor_schedules": {
"id": 87,
"doctors": {
"id": 85,
"id_users": 5,
"id_services": 2,
"custom_price": 200000,
"doctor_description": "Dokter Umum",
"availability_description": "Senin, Selasa, Rabu, Sabtu",
"is_active": 1
},
"doctor_services": null,
"hari": "Senin",
"jam": "17:00:00"
}
}doctor_schedules/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}doctor_schedules/{?}/update [PUT]
JSON Request
{
"id_doctors": 85,
"id_doctor_services": 96,
"custom_price": 300000,
"hari": "Senin",
"jam": "17:00"
}JSON Response
{
"doctor_schedules": {
"id": 96,
"doctors": {
"id": 85,
"id_users": 5,
"id_services": 2,
"custom_price": 200000,
"doctor_description": "Dokter Umum",
"availability_description": "Senin, Selasa, Rabu, Sabtu",
"is_active": 1
},
"doctor_services": {
"id": 96,
"id_doctors": 3,
"id_services": 4,
"doctors": null,
"doctor_description": null,
"availability_description": null,
"services_name": null,
"services_description": null,
"custom_price": 0,
"doctor_buffer_time": 0,
"is_active": 0
},
"hari": "Senin",
"jam": "17:00:00"
}
}doctor_schedules/{?}/activate [PUT]
JSON Response
{
"activate": true
}doctor_schedules/{?}/unactivate [PUT]
JSON Response
{
"unactivate": true
}Holidays
holidays/create [POST]
JSON Request
{
"dates": "12/06/2022",
"descriptions": "Docter Strage: Multiverse of madness"
}JSON Response
{
"holidays": {
"id": "1",
"dates": "12/06/2022",
"descriptions": "Docter Strage: Multiverse of madness"
}
}holidays/search [POST]
JSON Request
{}JSON Response
{
"holidays": [
{
"id": "1",
"dates": "16/06/2022",
"descriptions": "Docter Strage: Multiverse of madness"
}
]
}holidays/table [POST]
Search Param
Table Specs
id //0
dates //1
descriptions //2holidays/{?} [GET]
JSON Response
{
"holidays": {
"id": "1",
"dates": "16/06/2022",
"descriptions": "Docter Strage: Multiverse of madness"
}
}holidays/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}holidays/{?}/update [POST]
JSON Request
{
"dates": "16/06/2022",
"descriptions": "Docter Strage: Multiverse of madness"
}JSON Response
{
"holidays": {
"id": "1",
"dates": "16/06/2022",
"descriptions": "Docter Strage: Multiverse of madness"
}
}ECommerce
Untuk transaksi E-Commerce dan Online consultation.
orders/init [POST]
JSON Request
{
"id_users": 3,
"id_patients": 3,
"order_type": "C"
}- E = E-Commerce
- C = Online consultation
JSON Response
{
"orders": {
"id": 1,
"member": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz SpKK,.",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02",
"users_picture_url": "https://dev.colederma.com/uploads/users/"
},
"patients": {},
"nama_pemesan": "Didit Velliz SpKK,.",
"notelp_pemesan": "081381461286",
"email_pemesan": "didit@gmail.com",
"alamat_pemesan": "Bandung, Indonesia",
"alamat_kirim": "Bandung, Indonesia",
"nama_penerima": "Didit Velliz SpKK,.",
"order_type": "C",
"order_code": "",
"status": "SHOPPING CARTS",
"is_done": 0,
"counts_carts": 0,
"order_items": [
{
"id": 39,
"id_order": 37,
"id_menu": 2,
"qty": 3,
"satuan": null,
"price": 150000,
"price_total": 450000,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-11-07 06:43:20",
"catatan_menu": "",
"is_canceled": 0,
"cancel_user_id": 0,
"nama_menus": null,
"is_resep_required": null,
"brief": null,
"dosis": null,
"komposisi": null,
"aturan_pakai": null,
"nomor_registrasi": null,
"produsen": null,
"berat": null,
"images": "https://dev.colederma.com/uploads/menus/hXGBLLtmSbjn201b.jpg"
}
],
"order_extras": [
{
"id": 1,
"id_orders": 1,
"items": {
"item": "Online consultation",
"id_doctors": 84
},
"qty": 1,
"extra_notes": "",
"extra_prices": 100000
}
]
}
}orders/{?}/update/address [PUT]
JSON Request
{
"lat_kirim": 0.24566,
"lng_kirim": 120.8378,
"kode_provinsi": 3,
"kode_kota": 98,
"kode_kecamatan": 766,
"alamat_kirim": "Setraduta park"
}JSON Response
{
"update_address": true
}orders/{?}/checkout [PUT]
JSON Request
{
"alamat_kirim": "optional kalau beda",
"nama_penerima": "optional kalau beda",
"notelp_pemesan": "optional kalau beda",
"catatan_order": "optional kalau ada"
}JSON Response
{
"token": "cfb24326-cba3-4524-8050-0b73877b56d0",
"redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/cfb24326-cba3-4524-8050-0b73877b56d0",
"orders": {
"id": 1,
"member": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz SpKK,.",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02",
"users_picture_url": "https://dev.colederma.com/uploads/users/"
},
"patients": {},
"nama_pemesan": "Didit Velliz SpKK,.",
"notelp_pemesan": "081381461286",
"email_pemesan": "didit@gmail.com",
"alamat_pemesan": "Bandung, Indonesia",
"alamat_kirim": "Bandung, Indonesia",
"nama_penerima": "Didit Velliz SpKK,.",
"order_type": "C",
"order_code": "C-20231007-001",
"status": "CHECKOUT",
"items": [
{
"id": 2,
"id_order": 1,
"id_menu": 2,
"qty": 2,
"satuan": "mg",
"price": 150000,
"price_total": 300000,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-10-07 06:32:11",
"catatan_menu": "",
"is_canceled": 0,
"cancel_user_id": 0
},
{
"id": 3,
"id_order": 1,
"id_menu": 5,
"qty": 7,
"satuan": "strip",
"price": 200000,
"price_total": 1400000,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-10-07 06:32:11",
"catatan_menu": "",
"is_canceled": 0,
"cancel_user_id": 0
}
],
"token": "cfb24326-cba3-4524-8050-0b73877b56d0",
"payment_redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/cfb24326-cba3-4524-8050-0b73877b56d0",
"CLIENT_KEY": "SB-Mid-client-Lu4q0q7IvmnHWeAk",
"CLIENT_URL": "https://app.sandbox.midtrans.com/snap/snap.js"
}
}orders/{?}/process/noresi [PUT]
JSON Request
{
"nomor_resi": "000894328292333213"
}JSON Response
{
"process_noresi": true
}orders/explore?page=1&length=10 [POST]
JSON Request
{
"id_users": 3,
"order_type": "C",
"order_code": "E-20231104-003",
"status": "CANCEL",
"status_array": ["CANCEL", "DONE"]
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 2,
"anchor": [
{
"page": 1
}
],
"totaldata": 2,
"data": [
{
"id": 39,
"pic_admin": "",
"id_admin": 0,
"id_member": 23,
"id_patients": 13,
"id_promo_discount_applied": 5,
"kode_kota": 151,
"nama_pemesan": "rikki 02",
"notelp_pemesan": "085222733002",
"email_pemesan": "rikki02@test.com",
"alamat_pemesan": "jalan saturnus",
"alamat_kirim": "jalan saturnus",
"nama_penerima": "Rhea",
"order_date": "2023-11-10 15:38:13",
"order_type": "E",
"order_code": "E-20231118-001",
"pickup_datetime": null,
"queue_number": 0,
"catatan_order": "",
"total_price": 322382,
"total_discount": 50000,
"total_pajak": 0,
"total_buffertime": 0,
"status": "CHECKOUT",
"is_paid": 0,
"payment_redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/12346cdd-c188-4fb9-a8d8-630de7849dbd",
"paid_date": null,
"pay_channel": "",
"is_prepared": 0,
"prepared_datetime": null,
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"nomor_resi": "8244520349299900-0",
"cancel_datetime": null,
"cancel_pic": "",
"cancel_reason": "",
"ratings": null,
"rating_desc": null,
"is_processing": 0,
"processing_datetime": null,
"courier": "jne",
"is_courier": 1,
"courier_datetime": "2023-11-18 06:44:48",
"is_pickup": 0,
"courier_price": 20000,
"poin_used": 0,
"details": [
{
"id": 40,
"id_order": 39,
"id_menu": 11,
"qty": 2,
"satuan": "Jar",
"price": 176191,
"price_total": 352382,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-11-18 06:14:29",
"catatan_menu": "",
"is_canceled": 0,
"cancel_user_id": 0,
"nama_menus": "Brightening Night Cream",
"is_resep_required": 0,
"brief": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Helps disguise black spots, moisturizes and nourishes facial skin.</span></p>",
"dosis": "3",
"komposisi": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Niacinamide, Arbutin, Amino Acid, Chromabright, Titanium Dioxide, Panthenol, Shea Butter, Trehalose, Glychospere Papain/Papaya Enzyme, Allantoin, Bunga Water Lily, Bisabolol dari bunga Chamomile</span></p>",
"aturan_pakai": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Use regularly at night after cleansing your face and after using serum.</span></p>",
"nomor_registrasi": "RN-006",
"produsen": "Iora",
"berat": 300,
"images": "https://dev.colederma.com/uploads/menus/hXGBLLtmSbjn201b.jpg"
},
{
"id": 3,
"id_orders": 22,
"items": {
"item": "Online consultation",
"id_doctors": 95,
"doctors": {
"id": 95,
"id_users": 15,
"id_services": 26,
"custom_price": 1234,
"doctor_description": "<p>asdf</p>",
"availability_description": "adfs",
"is_active": 1,
"short_description": "asdf",
"users_fullname": "Stephen Natanael",
"services_name": "Facial",
"users_picture": "qZKB53QoB42l3Shv.png",
"users_picture_url": null
}
},
"qty": 1,
"extra_notes": "",
"extra_prices": 100000
}
],
"grand_totals": 292382
}
]
}orders/search [POST]
JSON Request
{
"id_users": 3,
"id_patients": 3,
"order_type": "C",
"order_code": "E-20231104-003",
"status": "CANCEL",
"status_array": ["CANCEL", "DONE"]
}JSON Response
{
"id": 51,
"pic_admin": "",
"id_admin": 0,
"id_member": 23,
"id_patients": 13,
"id_promo_discount_applied": 0,
"kode_kota": 22,
"nama_pemesan": "rikki 02",
"notelp_pemesan": "085222733002",
"email_pemesan": "rikki02@test.com",
"alamat_pemesan": "jalan saturnus",
"alamat_kirim": "jalan saturnus",
"nama_penerima": "Rhea",
"order_date": "2023-11-18 15:18:14",
"order_type": "E",
"order_code": "E-20231118-009",
"pickup_datetime": null,
"queue_number": 0,
"catatan_order": "",
"total_price": 105802,
"total_discount": 0,
"total_pajak": 0,
"total_buffertime": 0,
"status": "PAID",
"is_paid": 1,
"payment_redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/d504f330-fe0b-4b9d-ab76-a258b7c01fcd",
"paid_date": "2023-11-18 15:19:17",
"pay_channel": "",
"is_prepared": 0,
"prepared_datetime": null,
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"cancel_datetime": null,
"cancel_pic": "",
"cancel_reason": "",
"ratings": null,
"rating_desc": null,
"is_processing": 0,
"processing_datetime": null,
"courier": "jne",
"is_courier": 1,
"courier_datetime": "2023-11-18 15:18:37",
"is_pickup": 0,
"courier_price": 11000,
"poin_used": 0,
"nomor_resi": "8244520349299900-0",
"details": [
{
"id": 60,
"id_order": 51,
"id_menu": 10,
"qty": 1,
"satuan": "Bottle",
"price": 105802,
"price_total": 105802,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-11-18 15:18:16",
"catatan_menu": "",
"is_canceled": 0,
"cancel_user_id": 0,
"nama_menus": "Brightening Pore Serum",
"is_resep_required": 0,
"brief": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Helps brighten, blur the pores, and nourish facial skin.</span></p>",
"dosis": "5",
"komposisi": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Niacinamide & TXA, Zinc Gluconate & Willow Bark Extract, Niacinamide, AHA & PHA, AHA, PHA & BHA</span></p>",
"aturan_pakai": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Apply with a cotton pad or the palm of your hand to your entire cleansed face until fully absorbed. For optimal results, use it in the morning and evening </span></p>",
"nomor_registrasi": "RN-005",
"produsen": "Iora",
"berat": 300,
"images": "https://dev.colederma.com/uploads/menus/PU37AnOyZvPIe581.jpg"
},
{
"id": 3,
"id_orders": 22,
"items": {
"item": "Online consultation",
"id_doctors": 95,
"doctors": {
"id": 95,
"id_users": 15,
"id_services": 26,
"custom_price": 1234,
"doctor_description": "<p>asdf</p>",
"availability_description": "adfs",
"is_active": 1,
"short_description": "asdf",
"users_fullname": "Stephen Natanael",
"services_name": "Facial",
"users_picture": "qZKB53QoB42l3Shv.png",
"users_picture_url": null
}
},
"qty": 1,
"extra_notes": "",
"extra_prices": 100000
}
],
"grand_totals": 116802
}orders/table [POST]
Search Param
id_users
id_patients
order_type
order_date
order_code
date_from
date_toTable Specs
"id", //0
"pic_admin", //1
"id_admin", //2
"id_member", //3
"id_promo_discount_applied", //4
"nama_pemesan", //5
"notelp_pemesan", //6
"email_pemesan", //7
"alamat_pemesan", //8
"alamat_kirim", //9
"order_date", //10
"order_type", //11
"order_code", //12
"pickup_datetime", //13
"queue_number", //14
"catatan_order", //15
"total_price", //16
"total_discount", //17
"total_pajak", //18
"total_buffertime", //19
"status", //20
"is_paid", //21
"payment_redirect_url", //22
"paid_date", //23
"pay_channel", //34
"is_prepared", //25
"prepared_datetime", //26
"is_delivered", //27
"delivered_datetime", //28
"nama_penerima", //29
"is_done", //30
"done_datetime", //31
"is_canceled", //32
"cancel_datetime", //33
"cancel_pic", //34
"ratings", //35
"rating_desc", //36
"cancel_reason", //37
"is_processing", //38
"processing_datetime", //39
"is_waiting_courier", //40
"waiting_courier_datetime", //41
"is_pickup", //42
"courier_price", //43
"poin_used", //44
"nomor_resi", //45
"grand_totals", //46TODO: perlu diskusi apa saja yang butuh ditampilkan di datatables
orders/{?} [GET]
JSON Response
{
"orders": {
"id": 39,
"pic_admin": "",
"id_admin": 0,
"users": {
"id": 23,
"username": "rikki02",
"users_fullname": "rikki 02",
"users_email": "rikki02@test.com",
"users_phone": "085222733002",
"users_address": "jalan saturnus",
"users_birthday": "1990-07-12",
"users_picture": "JNuqv9azAKPZLYZW.png",
"is_password_reset_required": 0,
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "User",
"num_of_login_attempts": 0,
"department_ids": null,
"department_name": null,
"department_descriptions": null,
"department_codes": null,
"users_picture_url": "https://dev.colederma.com/uploads/users/JNuqv9azAKPZLYZW.png"
},
"patients": {
"id": 13,
"id_users": 23,
"nama_lengkap_pasien": "Rhea",
"tempat_lahir": "Bandung",
"tanggal_lahir": "2001-06-03",
"alamat_domisili": "Jalan buahbatu",
"nama_ibu_kandung": "Vero",
"jenis_kelamin": "P",
"nama_ayah": "Rikki",
"no_identitas": "12345678123",
"jenis_identitas": "KTP",
"catatan": "Kulit Kombinasi",
"nama_wali": "Alfiani",
"hubungan_dengan_wali": "Ibu",
"alamat_wali": "Jalan Buahbatu ",
"no_telp_wali": "02233448877",
"alamat_identitas": "Jalan buahbatu",
"golongan_darah": "B",
"pekerjaan": "Employees",
"perusahaan_tempat_bekerja": "Mostar Studio Indonesia",
"perusahaan_no_telp": "082233445566",
"no_telp_rumah": "082233445566",
"no_handphone": "08334455667788",
"patient_picture": "",
"provinsi": "Jawa Barat",
"kota": "Kota Bandung",
"kecamatan": "Buahbatu (Margacinta)",
"kode_provinsi": "9",
"kode_kota": "23",
"kode_kecamatan": "349",
"lat": -6.885238,
"lng": 107.570206
},
"promo_discount_applied": null,
"nama_pemesan": "rikki 02",
"notelp_pemesan": "085222733002",
"email_pemesan": "rikki02@test.com",
"alamat_pemesan": "jalan saturnus",
"nama_penerima": "Rhea",
"alamat_kirim": "jalan saturnus",
"lat_kirim": 0,
"lng_kirim": 0,
"kode_provinsi": "9",
"kode_kota": "23",
"kode_kecamatan": "349",
"order_date": "2023-11-10 15:38:13",
"order_type": "E",
"order_code": "",
"pickup_datetime": null,
"queue_number": 0,
"catatan_order": "",
"total_price": 176191,
"total_discount": 0,
"total_pajak": 0,
"total_buffertime": 0,
"status": "SHOPPING CARTS",
"is_paid": 0,
"payment_redirect_url": "",
"paid_date": null,
"pay_channel": "",
"is_prepared": 0,
"prepared_datetime": null,
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"cancel_datetime": null,
"cancel_pic": "",
"ratings": null,
"rating_desc": null,
"cancel_reason": "",
"is_processing": 0,
"processing_datetime": null,
"courier": "",
"is_courier": 0,
"courier_datetime": null,
"is_pickup": 0,
"courier_price": 0,
"poin_used": 0,
"distance": 0,
"nomor_resi": "000894328292333213",
"distance_unit": "km",
"consultation_closed": "2023-11-10 15:38:13",
"order_items": [
{
"id": 40,
"id_order": 39,
"id_menu": 11,
"qty": 1,
"satuan": "Jar",
"price": 176191,
"price_total": 176191,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-11-12 09:58:50",
"catatan_menu": "",
"is_canceled": 0,
"cancel_user_id": 0,
"nama_menus": "Brightening Night Cream",
"is_resep_required": 0,
"brief": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Helps disguise black spots, moisturizes and nourishes facial skin.</span></p>",
"dosis": "3",
"komposisi": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Niacinamide, Arbutin, Amino Acid, Chromabright, Titanium Dioxide, Panthenol, Shea Butter, Trehalose, Glychospere Papain/Papaya Enzyme, Allantoin, Bunga Water Lily, Bisabolol dari bunga Chamomile</span></p>",
"aturan_pakai": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Use regularly at night after cleansing your face and after using serum.</span></p>",
"nomor_registrasi": "RN-006",
"produsen": "Iora",
"berat": 30,
"images": "https://dev.colederma.com/uploads/menus/hXGBLLtmSbjn201b.jpg"
}
],
"order_extras": [],
"total_amount": [
{
"total_amount": "176191",
"types": "E-commerce"
},
{
"total_amount": "0",
"types": "Online consultations"
}
],
"counts_carts": 2,
"grand_totals": 176191
}
}orders/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}orders/{?}/invoices [GET]
Binary response
PDF file
orders/c_add_to_carts [POST]
Add Online consultation items to shopping carts
Possible Value untuk qty
| Range Value | Description |
|---|---|
| + | Menambahkan 1 qty |
| – | Mengurangi 1 qty |
| 1 s.d 999 | Mereplace qty |
| 0 | Menghapus product dari carts |
JSON Request
{
"id_order": 1,
"items": [
{
"id_doctors": 84,
"qty": 1
}
]
}- kirim qty 0 untuk menghapus dari shopping cart
JSON Response
{
"order_extras": [
{
"id": 1,
"orders": {
"id": 1,
"pic_admin": "",
"id_admin": 0,
"id_member": 3,
"id_promo_discount_applied": 4,
"nama_pemesan": "Didit Velliz SpKK,.",
"notelp_pemesan": "081381461286",
"email_pemesan": "didit@gmail.com",
"alamat_pemesan": "Bandung, Indonesia",
"alamat_kirim": "Bandung, Indonesia",
"nama_penerima": "Didit Velliz SpKK,.",
"order_date": "2023-10-07 04:19:24",
"order_type": "C",
"order_code": "C-20231007-001",
"pickup_datetime": null,
"queue_number": 0,
"catatan_order": "",
"total_price": 1650000,
"total_discount": 50000,
"total_pajak": 0,
"total_buffertime": 0,
"status": "CHECKOUT",
"is_paid": 0,
"payment_redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/cfb24326-cba3-4524-8050-0b73877b56d0",
"paid_date": null,
"pay_channel": "",
"is_prepared": 0,
"prepared_datetime": null,
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"cancel_datetime": null,
"cancel_pic": "",
"cancel_reason": "",
"ratings": null,
"rating_desc": null,
"is_processing": 0,
"processing_datetime": null,
"is_waiting_courier": 0,
"waiting_courier_datetime": null,
"is_pickup": 0,
"courier_price": 0,
"poin_used": 0
},
"items": {
"item": "Online consultation",
"id_doctors": 84
},
"qty": 1,
"extra_notes": "",
"extra_prices": 100000
}
]
}orders/e_add_to_carts [POST]
Add Ecommerce items to shopping carts
Possible Value untuk qty
| Range Value | Description |
|---|---|
| + | Menambahkan 1 qty |
| – | Mengurangi 1 qty |
| 1 s.d 999 | Mereplace qty |
| 0 | Menghapus product dari carts |
JSON Request
{
"id_order": 1,
"items": [
{
"id_menu": 5,
"qty": 2
},
{
"id_menu": 4,
"qty": 7
}
]
}- kirim qty 0 untuk menghapus dari shopping cart
JSON Response
{
"order_items": [
{
"id": 1,
"order": {
"id": 1,
"pic_admin": "",
"id_admin": 0,
"id_member": 3,
"id_promo_discount_applied": 0,
"nama_pemesan": "Didit Velliz SpKK,.",
"notelp_pemesan": "081381461286",
"email_pemesan": "didit@gmail.com",
"alamat_pemesan": "Bandung, Indonesia",
"alamat_kirim": "Bandung, Indonesia",
"nama_penerima": "Didit Velliz SpKK,.",
"order_date": "2023-10-07 04:19:24",
"order_type": "C",
"order_code": "",
"pickup_datetime": null,
"queue_number": 0,
"catatan_order": "",
"total_price": 0,
"total_discount": 0,
"total_pajak": 0,
"total_buffertime": 0,
"status": "SHOPPING CARTS",
"is_paid": 0,
"payment_redirect_url": "",
"paid_date": null,
"pay_channel": "",
"is_prepared": 0,
"prepared_datetime": null,
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"cancel_datetime": null,
"cancel_pic": "",
"cancel_reason": "",
"ratings": null,
"rating_desc": null,
"is_processing": 0,
"processing_datetime": null,
"is_waiting_courier": 0,
"waiting_courier_datetime": null,
"is_pickup": 0,
"courier_price": 0,
"poin_used": 0
},
"menu": {
"id": 4,
"nama_menus": "Product 3",
"brief": "Product 3",
"harga": 250000,
"pajak": 0,
"is_resep_required": 1,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 0,
"id_menu_categories_1": 9,
"id_menu_categories_2": 10,
"id_menu_categories_3": 0,
"dosis": "1",
"komposisi": "composition 1",
"aturan_pakai": "how to use 1",
"nomor_registrasi": "RN-004",
"produsen": "producer 1",
"satuan": "sdm",
"berat": 7
},
"qty": 2,
"satuan": "sdm",
"price": 250000,
"price_total": 500000,
"catatan_menu": ""
},
{
"id": 2,
"order": {
"id": 1,
"pic_admin": "",
"id_admin": 0,
"id_member": 3,
"id_promo_discount_applied": 0,
"nama_pemesan": "Didit Velliz SpKK,.",
"notelp_pemesan": "081381461286",
"email_pemesan": "didit@gmail.com",
"alamat_pemesan": "Bandung, Indonesia",
"alamat_kirim": "Bandung, Indonesia",
"nama_penerima": "Didit Velliz SpKK,.",
"order_date": "2023-10-07 04:19:24",
"order_type": "C",
"order_code": "",
"pickup_datetime": null,
"queue_number": 0,
"catatan_order": "",
"total_price": 0,
"total_discount": 0,
"total_pajak": 0,
"total_buffertime": 0,
"status": "SHOPPING CARTS",
"is_paid": 0,
"payment_redirect_url": "",
"paid_date": null,
"pay_channel": "",
"is_prepared": 0,
"prepared_datetime": null,
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"cancel_datetime": null,
"cancel_pic": "",
"cancel_reason": "",
"ratings": null,
"rating_desc": null,
"is_processing": 0,
"processing_datetime": null,
"is_waiting_courier": 0,
"waiting_courier_datetime": null,
"is_pickup": 0,
"courier_price": 0,
"poin_used": 0
},
"menu": {
"id": 2,
"nama_menus": "Product 1",
"brief": "<p><span style=\"font-size: 11pt;\">Ini adalah deskripsi product 1</span></p>",
"harga": 150000,
"pajak": 0,
"is_resep_required": 0,
"harga_promosi": 0,
"mulai_harga_promosi": "0000-00-00 00:00:00",
"selesai_harga_promosi": "0000-00-00 00:00:00",
"is_featured": 1,
"id_menu_categories_1": 7,
"id_menu_categories_2": 9,
"id_menu_categories_3": 10,
"dosis": "5",
"komposisi": "<p>composition</p>",
"aturan_pakai": "<p>how to use</p>",
"nomor_registrasi": "RN-002",
"produsen": "producer",
"satuan": "mg",
"berat": 4
},
"qty": 2,
"satuan": "mg",
"price": 150000,
"price_total": 300000,
"catatan_menu": ""
}
]
}orders/{?}/apply/points [PUT]
JSON Request
{
"poin_used": 100
}JSON Response
{
"apply_points": true,
"poin_used": 100
}orders/{?}/unapply/points [PUT]
JSON Response
{
"unapply_points": true,
"poin_used": 0
}orders/{?}/apply/promotions [PUT]
JSON Request
{
"display_codes": "ULTAH5TH"
}JSON Response
{
"apply_promotions": true,
"type": "NOMINAL",
"value": 25000
}orders/{?}/unapply/promotions [PUT]
JSON Response
{
"unapply_promotions": true
}orders/{?}/process/courier [PUT]
kode_kota bersifat optional untuk override data dari kode_kota di master data patients.
JSON Request
{
"courier": "jne",
"costs": "30000"
}JSON Response
{
"process_courier": true,
"costs": 30000
}orders/{?}/process/sameday/courier [PUT]
JSON Request
{
"lat_kirim": -6.3126441,
"lng_kirim": 106.8471495,
"courier": "sameday"
}JSON Response
{
"process_sameday_courier": true,
"distance": 4.2,
"distance_unit": "km",
"costs": 34000
}orders/{?}/unprocess/courier [PUT]
JSON Response
{
"unprocess_courier": true
}orders/{?}/cancel [PUT]
JSON Request
{
"pic_admin": "Danny Setiawan",
"id_admin": 3
}JSON Response
{
"cancel": true
}orders/{?}/uncancel [PUT]
JSON Request
{
"pic_admin": "Danny Setiawan",
"id_admin": 3
}JSON Response
{
"uncancel": true
}orders/{?}/checkout [PUT]
JSON Request
{
"alamat_kirim": "optional",
"nama_penerima": "optional",
"notelp_pemesan": "optional",
"catatan_order": "optional"
}JSON Response
{
"token": "6a885ec7-8101-41d8-a22c-2c1dd3d94331",
"redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/6a885ec7-8101-41d8-a22c-2c1dd3d94331",
"orders": {
"id": 1,
"member": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz SpKK,.",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02",
"users_picture_url": "https://dev.colederma.com/uploads/users/"
},
"patients": {},
"nama_pemesan": "Didit Velliz SpKK,.",
"notelp_pemesan": "081381461286",
"email_pemesan": "didit@gmail.com",
"alamat_pemesan": "Bandung, Indonesia",
"alamat_kirim": "Bandung, Indonesia",
"nama_penerima": "Didit Velliz SpKK,.",
"order_type": "C",
"order_code": "C-20231011-001",
"status": "CHECKOUT",
"items": [
{
"id": 2,
"id_order": 1,
"id_menu": 2,
"qty": 2,
"satuan": "mg",
"price": 150000,
"price_total": 300000,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-10-07 06:32:11",
"catatan_menu": "",
"is_canceled": 0,
"cancel_user_id": 0
},
{
"id": 3,
"id_order": 1,
"id_menu": 5,
"qty": 2,
"satuan": "strip",
"price": 200000,
"price_total": 400000,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-10-10 13:49:22",
"catatan_menu": "optional",
"is_canceled": 0,
"cancel_user_id": 0
}
],
"token": "6a885ec7-8101-41d8-a22c-2c1dd3d94331",
"payment_redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/6a885ec7-8101-41d8-a22c-2c1dd3d94331",
"CLIENT_KEY": "SB-Mid-client-Lu4q0q7IvmnHWeAk",
"CLIENT_URL": "https://app.sandbox.midtrans.com/snap/snap.js"
}
}orders/{?}/uncheckout [PUT]
JSON Response
{
"uncheckout": true
}orders/{?}/paid [PUT]
digunakan untuk manual payment dari admin
JSON Request
{
"pic_admin": "Danny Setiawan",
"id_admin": 3,
"pay_channel": "QRIS"
}JSON Response
{
"paid": true
}orders/{?}/unpaid [PUT]
JSON Request
{
"pic_admin": "Danny Setiawan",
"id_admin": 3
}JSON Response
{
"unpaid": true
}digunakan untuk membatalkan payment dari admin
orders/{?}/prepared [PUT]
JSON Response
{
"prepared": true
}orders/{?}/unprepare [PUT]
JSON Response
{
"unprepare": true
}orders/{?}/processing [PUT]
JSON Response
{
"processing": true
}orders/{?}/unprocessing [PUT]
JSON Response
{
"unprocessing": true
}orders/{?}/pickup [PUT]
JSON Response
{
"pickup": true
}orders/{?}/unpickup [PUT]
JSON Response
{
"unpickup": true
}orders/{?}/consignee [PUT]
JSON Response
{
"consignee": true
}Order Items
order_items/create [POST]
UNAVAILABLE
order_items/{?}/update [PUT]
JSON Request
{
"qty": 2,
"catatan_menu": "optional"
}JSON Response
{
"order_items": {
"id": 3,
"order": {
"id": 1,
"pic_admin": "",
"id_admin": 0,
"id_member": 3,
"id_promo_discount_applied": 4,
"nama_pemesan": "Didit Velliz SpKK,.",
"notelp_pemesan": "081381461286",
"email_pemesan": "didit@gmail.com",
"alamat_pemesan": "Bandung, Indonesia",
"alamat_kirim": "Bandung, Indonesia",
"nama_penerima": "Didit Velliz SpKK,.",
"order_date": "2023-10-07 04:19:24",
"order_type": "C",
"order_code": "C-20231007-001",
"pickup_datetime": null,
"queue_number": 0,
"catatan_order": "",
"total_price": 1750000,
"total_discount": 50000,
"total_pajak": 0,
"total_buffertime": 0,
"status": "CHECKOUT",
"is_paid": 0,
"payment_redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/cfb24326-cba3-4524-8050-0b73877b56d0",
"paid_date": null,
"pay_channel": "",
"is_prepared": 0,
"prepared_datetime": null,
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"cancel_datetime": null,
"cancel_pic": "",
"cancel_reason": "",
"ratings": null,
"rating_desc": null,
"is_processing": 0,
"processing_datetime": null,
"is_courier": 0,
"courier_datetime": null,
"is_pickup": 0,
"courier_price": 0,
"poin_used": 0
},
"menu": {
"id": 5,
"nama_menus": "Product 4",
"brief": "Product 4",
"harga": 200000,
"pajak": 5000,
"is_resep_required": 0,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 1,
"id_menu_categories_1": 6,
"id_menu_categories_2": 7,
"id_menu_categories_3": 9,
"dosis": "12",
"komposisi": "composition",
"aturan_pakai": "how to use",
"nomor_registrasi": "RN-001",
"produsen": "producer",
"satuan": "strip",
"berat": 5
},
"qty": 2,
"satuan": "strip",
"price": 200000,
"price_total": 400000,
"catatan_menu": "optional"
}
}order_items/explore?page=1&length=10 [POST]
JSON Request
{
"id_order": 1,
"id_menu": 2
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 2,
"id_order": 1,
"id_menu": 2,
"qty": 2,
"satuan": "mg",
"price": 150000,
"price_total": 300000,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-10-07 06:32:11",
"catatan_menu": "",
"is_canceled": 0,
"cancel_user_id": 0
}
]
}order_items/search [POST]
JSON Request
{
"id_order": 1,
"id_menu": 2
}JSON Response
{
"order_items": [
{
"id": 2,
"id_order": 1,
"id_menu": 2,
"qty": 2,
"satuan": "mg",
"price": 150000,
"price_total": 300000,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2023-10-07 06:32:11",
"catatan_menu": "",
"is_canceled": 0,
"cancel_user_id": 0,
"images": "https://dev.colederma.com/uploads/menus/hXGBLLtmSbjn201b.jpg"
}
]
}order_items/table [POST]
Search Param
id_order
id_menuTable Specs
"id", //0
"id_order", //1
"id_menu", //2
"qty", //3
"satuan", //4
"price", //5
"price_total", //6
"discount", //7
"pajak", //8
"buffer_time", //9
"order_datetime", //10
"catatan_menu", //11
"is_canceled", //12
"cancel_user_id", //13order_items/{?} [GET]
JSON Response
{
"order_items": {
"id": 2,
"order": {
"id": 1,
"pic_admin": "",
"id_admin": 0,
"id_member": 3,
"id_promo_discount_applied": 4,
"nama_pemesan": "Didit Velliz SpKK,.",
"notelp_pemesan": "081381461286",
"email_pemesan": "didit@gmail.com",
"alamat_pemesan": "Bandung, Indonesia",
"alamat_kirim": "Bandung, Indonesia",
"nama_penerima": "Didit Velliz SpKK,.",
"order_date": "2023-10-07 04:19:24",
"order_type": "C",
"order_code": "C-20231007-001",
"pickup_datetime": null,
"queue_number": 0,
"catatan_order": "",
"total_price": 1750000,
"total_discount": 50000,
"total_pajak": 0,
"total_buffertime": 0,
"status": "CHECKOUT",
"is_paid": 0,
"payment_redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/cfb24326-cba3-4524-8050-0b73877b56d0",
"paid_date": null,
"pay_channel": "",
"is_prepared": 0,
"prepared_datetime": null,
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"cancel_datetime": null,
"cancel_pic": "",
"cancel_reason": "",
"ratings": null,
"rating_desc": null,
"is_processing": 0,
"processing_datetime": null,
"is_courier": 0,
"courier_datetime": null,
"is_pickup": 0,
"courier_price": 0,
"poin_used": 0
},
"menu": {
"id": 2,
"nama_menus": "Product 1",
"brief": "<p><span style=\"font-size: 11pt;\">Ini adalah deskripsi product 1</span></p>",
"harga": 150000,
"pajak": 0,
"is_resep_required": 0,
"harga_promosi": 0,
"mulai_harga_promosi": "0000-00-00 00:00:00",
"selesai_harga_promosi": "0000-00-00 00:00:00",
"is_featured": 1,
"id_menu_categories_1": 7,
"id_menu_categories_2": 9,
"id_menu_categories_3": 10,
"dosis": "5",
"komposisi": "<p>composition</p>",
"aturan_pakai": "<p>how to use</p>",
"nomor_registrasi": "RN-002",
"produsen": "producer",
"satuan": "mg",
"berat": 4
},
"qty": 2,
"satuan": "mg",
"price": 150000,
"price_total": 300000,
"catatan_menu": ""
}
}order_items/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}order_extras/create [POST]
order_extras/{?}/update [PUT]
order_extras/explore?page=1&length=10 [POST]
order_extras/search [POST]
order_extras/table [POST]
order_extras/{?} [GET]
order_extras/{?}/delete [DELETE]
Promotion and Deals
promotions/create [POST]
JSON Request
{
"type": "POTONGAN",
"value": 25000,
"quota": 1000,
"start_datetime": "20/10/2023 00:00",
"expired_datetime": "20/12/2023 23:00",
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!",
"description": "Diskon ulang tahun colederma spesial."
}JSON Response
{
"promotions": {
"id": 3,
"type": "POTONGAN",
"value": 25000,
"quota": 1000,
"start_datetime": "2023-10-20 00:00:00",
"expired_datetime": "2023-12-20 23:00:00",
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!",
"description": "Diskon ulang tahun colederma spesial.",
"img_promotions": "",
"img_promotions_path": "https://dev.colederma.com/uploads/promotions/"
}
}promotions/explore?page=1&length=10 [POST]
JSON Resuest
{
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 3,
"anchor": [
{
"page": 1
}
],
"totaldata": 3,
"data": [
{
"id": 3,
"id_menu": 0,
"type": "POTONGAN",
"value": 25000,
"quota": 1000,
"start_datetime": "2023-10-20 00:00:00",
"expired_datetime": "2023-12-20 23:00:00",
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!",
"description": "Diskon ulang tahun colederma spesial.",
"img_promotions": "https://dev.colederma.com/uploads/promotions/gPk1tLd9fOyzw2Pxi.jpg"
}
]
}promotions/search [POST]
JSON Resuest
{
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!"
}JSON Response
{
"promotions": [
{
"id": 3,
"id_menu": 0,
"type": "POTONGAN",
"value": 25000,
"quota": 1000,
"start_datetime": "2023-10-20 00:00:00",
"expired_datetime": "2023-12-20 23:00:00",
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!",
"description": "Diskon ulang tahun colederma spesial.",
"img_promotions": "https://dev.colederma.com/uploads/promotions/gqBxPLd9fOyzw2Pxi.jpg"
}
]
}promotions/table [POST]
Search Param
display_codes
titleTable Specs
"id", //0
"id_menu", //1
"type", //2
"value", //3
"quota", //4
"start_datetime", //5
"expired_datetime", //6
"display_codes", //7
"title", //8
"description", //9
"img_promotions", //10promotions/{?} [GET]
JSON Response
{
"promotions": {
"id": 3,
"type": "POTONGAN",
"value": 25000,
"quota": 1000,
"start_datetime": "2023-10-20 00:00:00",
"expired_datetime": "2023-12-20 23:00:00",
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!",
"description": "Diskon ulang tahun colederma spesial.",
"img_promotions": "",
"img_promotions_path": "https://dev.colederma.com/uploads/promotions/"
}
}promotions/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}promotions/{?}/update [PUT]
JSON Request
{
"type": "POTONGAN",
"value": 25000,
"quota": 1000,
"start_datetime": "20/10/2023 00:00",
"expired_datetime": "20/12/2023 23:00",
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!",
"description": "Diskon ulang tahun colederma spesial."
}JSON Response
{
"promotions": {
"id": 3,
"type": "POTONGAN",
"value": 25000,
"quota": 1000,
"start_datetime": "2023-10-20 00:00:00",
"expired_datetime": "2023-12-20 23:00:00",
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!",
"description": "Diskon ulang tahun colederma spesial.",
"img_promotions": "",
"img_promotions_path": "https://dev.colederma.com/uploads/promotions/"
}
}promotions/{?}/uploads [POST]
POST Multipart form-data
pictureJSON Response
{
"promotions": {
"id": 3,
"type": "POTONGAN",
"value": 25000,
"quota": 1000,
"start_datetime": "2023-10-20 00:00:00",
"expired_datetime": "2023-12-20 23:00:00",
"display_codes": "ULTAH5TH",
"title": "Dikon Ulang Tahun!",
"description": "Diskon ulang tahun colederma spesial.",
"img_promotions": "gqStLd9fOyzw2Pxi.jpg",
"img_promotions_path": "https://dev.colederma.com/uploads/promotions/gDc1Ld9fOyzw2Pxi.jpg"
}
}Deliveries
deliveries/provinces [GET]
Menggunakan service RajaOngkir
JSON Response
[
{
"province_id": "1",
"province": "Bali"
},
{
"province_id": "2",
"province": "Bangka Belitung"
}
]deliveries/{?}/cities [GET]
{?} Menggunakan province_id dari service RajaOngkir
JSON Response
[
{
"city_id": "114",
"province_id": "1",
"province": "Bali",
"type": "Kota",
"city_name": "Denpasar",
"postal_code": "80227"
}
]deliveries/{?}/districts [GET]
{?} Menggunakan city_id dari service RajaOngkir
JSON Response
[
{
"subdistrict_id": "1573",
"province_id": "1",
"province": "Bali",
"city_id": "114",
"city": "Denpasar",
"type": "Kota",
"subdistrict_name": "Denpasar Barat"
}
]deliveries/calculate [POST]
JSON Request
{
"city_id_destination": 53,
"id_order": 35,
"courier": "jne"
}id_order: untuk hitung otomatis weight dari berat item di keranjang belanja.
JSON Response
[
{
"code": "jne",
"name": "Jalur Nugraha Ekakurir (JNE)",
"costs": [
{
"service": "OKE",
"description": "Ongkos Kirim Ekonomis",
"cost": [
{
"value": 19000,
"etd": "3-6",
"note": ""
}
]
},
{
"service": "REG",
"description": "Layanan Reguler",
"cost": [
{
"value": 22000,
"etd": "2-3",
"note": ""
}
]
}
]
}
]deliveries/calculate/byweight [POST]
JSON Request
{
"city_id_origin": 11,
"city_id_destination": 53,
"weight": 3500,
"courier": "jne"
}JSON Response
[
{
"code": "jne",
"name": "Jalur Nugraha Ekakurir (JNE)",
"costs": [
{
"service": "OKE",
"description": "Ongkos Kirim Ekonomis",
"cost": [
{
"value": 19000,
"etd": "3-6",
"note": ""
}
]
},
{
"service": "REG",
"description": "Layanan Reguler",
"cost": [
{
"value": 22000,
"etd": "2-3",
"note": ""
}
]
}
]
}
]deliveries/settings [GET]
JSON Response
{
"kode_kota_asal": 153,
"coordinate_gudang": {
"lat": 0.34234,
"lng": 102.31490
},
"alamat_gudang": "JL Adiyaksa 122 Jakarta Pusat",
"kode_kurir": [
"jne",
"tiki",
"jnt",
"pos",
"sicepat"
]
}deliveries/create [POST]
JSON Request
{
"distance_fr": 0,
"distance_to": 5,
"segment": "Range dari 0 s.d 5 KM",
"price_in_km": 15000
}JSON Response
{
"deliveries": {
"id": 1,
"distance_fr": 0,
"distance_to": 5,
"segment": "Range dari 0 s.d 5 KM",
"price_in_km": 15000
}
}deliveries/explore?page=1&length=10 [POST]
JSON Request
JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 1,
"distance_fr": 0,
"distance_to": 5,
"segment": "Range dari 0 s.d 5 KM",
"price_in_km": 15000
}
]
}deliveries/search [POST]
JSON Request
JSON Response
{
"deliveries": [
{
"id": 1,
"distance_fr": 0,
"distance_to": 5,
"segment": "Range dari 0 s.d 5 KM",
"price_in_km": 15000
}
]
}deliveries/table [POST]
Search Param
Table Specs
"id", //0
"distance_fr", //1
"distance_to", //2
"segment", //3
"price_in_km", //4deliveries/{?} [GET]
JSON Response
{
"deliveries": {
"id": 1,
"distance_fr": 0,
"distance_to": 5,
"segment": "Range dari 0 s.d 5 KM",
"price_in_km": 15000
}
}deliveries/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}deliveries/{?}/update [PUT]
JSON Request
{
"distance_fr": 0,
"distance_to": 5,
"segment": "Range dari 0 s.d 5 KM",
"price_in_km": 15000
}JSON Response
{
"deliveries": {
"id": 1,
"distance_fr": 0,
"distance_to": 5,
"segment": "Range dari 0 s.d 5 KM",
"price_in_km": 15000
}
}Ratings
ratings/create [POST]
ratings/explore?page=1&length=10 [POST]
ratings/search [POST]
ratings/table [POST]
ratings/{?} [GET]
ratings/{?}/delete [DELETE]
ratings/{?}/update [PUT]
Services
service_categories/create [POST]
JSON Request
{
"service_categories": "Obat Alergi",
"codes": "OA01",
"color": "#002121"
}JSON Response
{
"service_categories": {
"id": 6,
"service_categories": "Obat Alergi",
"codes": "OA01",
"color": "#002121",
"images": ""
}
}service_categories/explore?page=1&length=10 [POST]
JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 6,
"service_categories": "Obat Alergi",
"codes": "OA01",
"color": "#002121",
"images": "x5nRCNHMXQV6Fm5h.png",
"img_path": "https://dev.colederma.com/uploads/service_categories/QTmxLUsYB0aPl5Pg.jpg"
}
]
}service_categories/search [POST]
JSON Response
{
"service_categories": [
{
"id": 6,
"service_categories": "Obat Alergi",
"codes": "OA01",
"color": "#002121",
"images": "x5nRCNHMXQV6Fm5h.png",
"img_path": "https://dev.colederma.com/uploads/service_categories/QTmxLUsYB0aPl5Pg.jpg"
}
]
}service_categories/table [POST]
Table Specs
"id", //0
"service_categories", //1
"codes", //2
"color", //3
"images", //4service_categories/{?} [GET]
JSON Response
{
"service_categories": {
"id": 6,
"service_categories": "Obat Alergi",
"codes": "OA01",
"color": "#002121",
"images": "x5nRCNHMXQV6Fm5h.png",
"img_path": "https://dev.colederma.com/uploads/service_categories/x5nRCNHMXQV6Fm5h.png"
}
}service_categories/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}service_categories/{?}/update [PUT]
JSON Request
{
"service_categories": "Obat Alergi",
"codes": "OA01",
"color": "#002121"
}JSON Response
{
"service_categories": {
"id": 6,
"service_categories": "Obat Alergi",
"codes": "OA01",
"color": "#002121",
"images": ""
}
}service_categories/{?}/uploads [POST]
POST Multipart form-data
pictureJSON Response
{
"images": {
"id": 6,
"image_upload": true,
"img_path": "https://dev.colederma.com/uploads/service_categories/x5nRCNHMXQV6Fm5h.png"
}
}services/create [POST]
JSON Request
{
"services_name": "Cek kolestrol dan gula darah",
"services_price": "100000",
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": "30",
"is_available": 1,
"id_service_categories": "1"
}JSON Response
{
"services": {
"id": 24,
"services_name": "Cek kolestrol dan gula darah",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1,
"service_categories": {}
}
}services/explore?page=1&length=10 [POST]
JSON Request
{
"is_available": 1,
"id_service_categories": 1
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 2,
"anchor": [
{
"page": 1
}
],
"totaldata": 2,
"data": [
{
"id": 1,
"services_name": "Cek Gula Darah",
"service_categories": "UMUM",
"services_price": 100000,
"services_description": "-",
"buffer_time": 0,
"is_available": 1,
"id_service_categories": 1,
"codes": "U",
"color": "#000AAA",
"images": "https://dev.colederma.com/images/xxx"
},
{
"id": 24,
"services_name": "Cek kolestrol dan gula darah",
"service_categories": "UMUM",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1,
"id_service_categories": 1,
"codes": "U",
"color": "#000AAA",
"images": "https://dev.colederma.com/images/xxx"
}
]
}services/search [POST]
JSON Request
{
"is_available": 1,
"id_service_categories": 1
}JSON Response
{
"services": [
{
"id": 1,
"services_name": "Cek Gula Darah",
"services_category": "UMUM",
"services_price": 100000,
"services_description": "-",
"buffer_time": 0,
"is_available": 1
},
{
"id": 24,
"services_name": "Cek kolestrol dan gula darah",
"services_category": "UMUM",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1
}
]
}services/table [POST]
Search Param
is_available
id_service_categoriesTable Specs
"id", //0
"services_name", //1
"service_categories", //2
"services_price", //3
"services_description", //4
"buffer_time", //5
"is_available", //6
"id_service_categories", //7
"codes", //8
"color", //9
"images", //10services/{?} [GET]
JSON Response
{
"services": {
"id": 24,
"services_name": "Cek kolestrol dan gula darah",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1,
"service_categories": {}
}
}services/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}services/{?}/update [PUT]
JSON Request
{
"services_name": "Cek kolestrol dan gula darahhhh",
"services_price": "100000",
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": "30",
"is_available": 1,
"id_service_categories": 1
}JSON Response
{
"services": {
"id": 24,
"services_name": "Cek kolestrol dan gula darahhhh",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1,
"service_categories": {}
}
}service_images/create [POST]
POST Multipart form-data
id_services
pictureJSON Response
{
"service_images": {
"id": 21,
"services": {
"id": 2,
"services_name": "Cek kolestrol dan gula darahhhh",
"services_category": "UMUM",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1
},
"service_image": "3jkHB5QVLNnKa35v.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0,
"image_upload": true,
"img_path": "https://dev.colederma.com/uploads/services/3jkHB5QVLNnKa35v.jpg"
}
}service_images/explore?page=1&length=10 [POST]
JSON Request
{
"id_services": 2
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 21,
"id_services": 2,
"service_image": "3jkHB5QVLNnKa35v.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0,
"img_path": "https://dev.colederma.com/uploads/services/3jkHB5QVLNnKa35v.jpg"
}
]
}service_images/search [POST]
JSON Request
{
"id_services": 2
}JSON Response
{
"service_images": [
{
"id": 21,
"id_services": 2,
"service_image": "3jkHB5QVLNnKa35v.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0,
"img_path": "https://dev.colederma.com/uploads/services/3jkHB5QVLNnKa35v.jpg"
}
]
}service_images/table [POST]
Search Param
id_servicesTable Specs
"id", //0
"id_services", //1
"service_image", //2
"is_primary", //3
"nomor_urut_tampil", //4
"img_path", //5service_images/{?} [GET]
JSON Response
{
"service_images": {
"id": 21,
"services": {
"id": 2,
"services_name": "Cek kolestrol dan gula darahhhh",
"services_category": "UMUM",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1
},
"service_image": "3jkHB5QVLNnKa35v.jpg",
"img_path": "https://dev.colederma.com/uploads/services/3jkHB5QVLNnKa35v.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0
}
}service_images/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}service_images/{?}/update [PUT]
POST Multipart form-data
id_services
pictureJSON Response
{
"service_images": {
"id": 21,
"services": {
"id": 2,
"services_name": "Cek kolestrol dan gula darahhhh",
"services_category": "UMUM",
"services_price": 100000,
"services_description": "Cek kolestrol dan gula darah dan konsultasi dokter",
"buffer_time": 30,
"is_available": 1
},
"service_image": "3jkHB5QVLNnKa35v.jpg",
"is_primary": 0,
"nomor_urut_tampil": 0,
"image_upload": true,
"img_path": "https://dev.colederma.com/uploads/services/3jkHB5QVLNnKa35v.jpg"
}
}Appointment / Booking Schedules
schedules/create [POST]
JSON Request
{
"id_doctors": 87,
"hari": "Senin",
"jam": "08:00",
"jam_selesai": "09:00"
}JSON Response
{
"schedules": {
"id": 1033,
"doctors": {
"id": 87,
"id_users": 8,
"id_services": 0,
"custom_price": 125000,
"doctor_description": "<p><span style=\"font-size: 9pt;\"><strong><span style=\"color: #3b3738; font-family: Lato, sans-serif;\"><em>Spesialis Dermatologi dan Venereologi</em></span></strong></span></p>",
"availability_description": "Jumat, Sabtu, Minggu",
"is_active": 1
},
"hari": "Senin",
"jam": "08:00:00",
"jam_selesai": "09:00:00"
}
}schedules/explore?page=1&length=10 [POST]
JSON Request
{
"id_doctors": 87,
"hari": "Senin"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 1033,
"id_doctors": 87,
"hari": "Senin",
"jam": "08:00:00",
"jam_selesai": "09:00:00",
"doctors": "Rikki Novar SpDVE"
}
]
}schedules/search [POST]
JSON Request
{
"id_doctors": 87,
"hari": "Senin"
}JSON Response
{
"schedules": [
{
"id": 1033,
"id_doctors": 87,
"hari": "Senin",
"jam": "08:00:00",
"jam_selesai": "09:00",
"doctors": "Rikki Novar SpDVE"
}
]
}schedules/table [POST]
Search Param
id_doctors
hariTable Specs
"id", //0
"id_doctors", //1
"doctors", //2
"hari", //3
"jam", //4
"jam_selesai", //5schedules/{?} [GET]
JSON Response
{
"schedules": {
"id": 1033,
"doctors": {
"id": 87,
"id_users": 8,
"id_services": 0,
"custom_price": 125000,
"doctor_description": "<p><span style=\"font-size: 9pt;\"><strong><span style=\"color: #3b3738; font-family: Lato, sans-serif;\"><em>Spesialis Dermatologi dan Venereologi</em></span></strong></span></p>",
"availability_description": "Jumat, Sabtu, Minggu",
"is_active": 1
},
"hari": "Senin",
"jam": "08:00:00",
"jam_selesai": "09:00:00"
}
}schedules/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}schedules/{?}/update [PUT]
JSON Request
{
"id_doctors": 87,
"hari": "Senin",
"jam": "08:00",
"jam_selesai": "09:00"
}JSON Response
{
"schedules": {
"id": 1033,
"doctors": {
"id": 87,
"id_users": 8,
"id_services": 0,
"custom_price": 125000,
"doctor_description": "<p><span style=\"font-size: 9pt;\"><strong><span style=\"color: #3b3738; font-family: Lato, sans-serif;\"><em>Spesialis Dermatologi dan Venereologi</em></span></strong></span></p>",
"availability_description": "Jumat, Sabtu, Minggu",
"is_active": 1
},
"hari": "Senin",
"jam": "08:00:00",
"jam_selesai": "09:00:00"
}
}User Schedules
Booking pertemuan dengan dokter
Daftar status yang diproses oleh Backend:
- BOOKING
- RESCHEDULE
- ARRIVED
- CANCEL
- DONE
Daftar status yang diproses oleh Mobile app:
- UPCOMING: BOOKING, RESCHEDULE, ARRIVED
- COMPLETED: DONE
- CANCEL: CANCEL
user_schedules/create [POST]
JSON Request
{
"id_doctors": "85",
"id_services": "1",
"id_doctor_schedules": "87",
"custom_price": "0",
"hari": "Senin",
"jam": "13:00",
"tanggal": "25/09/2023",
"id_users": "5",
"id_patients": "2"
}JSON Response
{
"user_schedules": {
"id": 89,
"doctors": {
"id": 85,
"id_users": 5,
"id_services": 2,
"custom_price": 200000,
"doctor_description": "Dokter Umum",
"availability_description": "Senin, Selasa, Rabu, Sabtu",
"is_active": 1
},
"services": {
"id": 1,
"id_service_categories": 8,
"services_name": "Art Peel",
"services_price": 0,
"services_description": "<p><strong><span style=\"color: #545454; font-family: brandon-grot-w01-light, sans-serif; font-size: 15px; text-align: center;\">Removing dead cell skin off has never been so easy</span></strong></p>",
"buffer_time": 75,
"is_available": 1,
"codes": "SRV002",
"color": "#3b4607",
"service_categories": "Service 2",
"images": "3mk1JFzqtAwCMKle.png"
},
"doctor_schedules": {
"id": 87,
"id_doctors": 85,
"id_services": 1,
"custom_price": 300000,
"hari": "Senin",
"jam": "17:00:00",
"is_active": 0,
"doctor_buffer_time": 0,
"services_name": "Art Peel",
"service_categories": "Service 2",
"doctors": "Markus Nahesson"
},
"users": {
"id": 5,
"username": "markusnr",
"users_fullname": "Markus Nahesson",
"users_email": "markus@gmail.com",
"users_phone": "087859887441",
"users_address": "Bandung",
"users_birthday": "1990-11-09",
"users_picture": "uudsHtsBkbOJIDCj.jpg",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Admin",
"num_of_login_attempts": 0,
"department_ids": "9",
"department_name": "Information Technology Division",
"department_descriptions": "Networking Service and Applications",
"department_codes": "01"
},
"patients": {
"id": 2,
"id_users": 5,
"nama_lengkap_pasien": "Mildi Ghanesa",
"tempat_lahir": null,
"tanggal_lahir": "1999-07-21",
"alamat_domisili": "Cibeber kalong No 34 Bandung",
"nama_ibu_kandung": "",
"jenis_kelamin": "L",
"nama_ayah": null,
"no_identitas": null,
"jenis_identitas": null,
"catatan": "Kurang gizi",
"nama_wali": null,
"hubungan_dengan_wali": null,
"alamat_wali": null,
"no_telp_wali": null,
"alamat_identitas": null,
"golongan_darah": null,
"pekerjaan": null,
"perusahaan_tempat_bekerja": null,
"perusahaan_no_telp": null,
"no_telp_rumah": null,
"no_handphone": null
},
"custom_price": 0,
"hari": "Senin",
"jam": "13:00:00",
"tanggal": "2023-09-25",
"status": "BOOKING",
"digisoft_invoice_numbers": "",
"reschedule_counts": 0,
"cancel_reason": "Ga bisa bayar"
}
}user_schedules/explore?page=1&length=10 [POST]
JSON Request
{
"id_doctors": "85",
"id_services": "1",
"id_doctor_schedules": "87",
"id_users": "5",
"id_patients": "2",
"status": "BOOKING",
"status_array": ["BOOKING", "RESCHEDULE", "ARRIVED"]
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 2,
"anchor": [
{
"page": 1
}
],
"totaldata": 2,
"data": [
{
"id": 101,
"id_doctors": 84,
"id_services": 25,
"id_doctor_schedules": 403,
"id_users": 9,
"id_patients": 8,
"custom_price": 275000,
"hari": "Sabtu",
"jam": "10:00:00",
"tanggal": "2023-12-21",
"status": "BOOKING",
"cancel_reason": "",
"digisoft_invoice_numbers": "",
"reschedule_counts": 0,
"doctor_buffer_time": 15,
"users": "Stephen",
"users_picture_url": "https://dev.colederma.com/uploads/users/6wJhfdFNjNJLdWw6.png",
"nama_lengkap_pasien": "Rita Ambar",
"services_name": "MICRO B",
"doctors": "Didit Velliz",
"doctors_picture_url": "https://dev.colederma.com/uploads/users/R4eOQ0ajHreafLtd.png"
}
]
}user_schedules/search [POST]
JSON Request
{
"id_doctors": "85",
"id_services": "1",
"id_doctor_schedules": "87",
"id_users": "5",
"id_patients": "2",
"status": "BOOKING",
"status_array": ["BOOKING", "RESCHEDULE", "ARRIVED"]
}JSON Response
{
"user_schedules": [
{
"id": 101,
"id_doctors": 84,
"id_services": 25,
"id_doctor_schedules": 403,
"id_users": 9,
"id_patients": 8,
"custom_price": 275000,
"hari": "Sabtu",
"jam": "10:00:00",
"tanggal": "2023-12-21",
"status": "BOOKING",
"cancel_reason": "",
"digisoft_invoice_numbers": "",
"reschedule_counts": 0,
"doctor_buffer_time": 15,
"users": "Stephen",
"users_picture_url": "https://dev.colederma.com/uploads/users/6wJhfdFNjNJLdWw6.png",
"nama_lengkap_pasien": "Rita Ambar",
"services_name": "MICRO B",
"doctors": "Didit Velliz",
"doctors_picture_url": "https://dev.colederma.com/uploads/users/R4eOQ0ajHreafLtd.png"
}
]
}user_schedules/table [POST]
Search Param
id_doctors
id_services
id_doctor_schedules
id_users
id_patients
statusTable Specs
"id", //0
"id_doctors", //1
"id_services", //2
"id_doctor_schedules", //3
"id_users", //4
"id_patients", //5
"custom_price", //6
"hari", //7
"jam", //8
"tanggal", //9
"status", //10
"users", //11
"nama_lengkap_pasien", //12
"services_name", //13
"doctors", //14
"digisoft_invoice_numbers", //15
"reschedule_counts", //16
"starts", //17
"ends", //18
"cancel_reason", //19user_schedules/{?} [GET]
JSON Response
{
"user_schedules": {
"id": 89,
"doctors": {
"id": 85,
"id_users": 5,
"id_services": 2,
"custom_price": 125000,
"doctor_description": "<p>Dokter Umum</p>",
"availability_description": "Senin, Selasa, Rabu, Sabtu",
"is_active": 1,
"short_description": "Spesialis berpengalaman lebih dari 5 tahun dalam menangani masalah kecantikan.",
"users_fullname": "Markus Nahesson SpKK,.",
"services_name": "Bubble Glow",
"users_picture": "6wJhfdFNjNJLdWw6.png",
"users_picture_url": null
},
"services": {
"id": 1,
"id_service_categories": 7,
"services_name": "Art Peel",
"services_price": 0,
"services_description": "<p><span style=\"font-family: arial, helvetica, sans-serif;\"><em><span style=\"color: #545454; font-size: 15px; text-align: center;\">Removing dead cell skin off has never been</span></em></span></p>",
"buffer_time": 75,
"is_available": 1,
"codes": "category_basic_treatments.svg",
"color": "#944747",
"service_categories": "Basic Treatments",
"images": "DZPtutbrgTnPiCNF.png"
},
"doctor_schedules": {
"id": 594,
"id_services": 26,
"id_doctors": 84,
"id_doctor_services": 104,
"hari": "Senin",
"jam": "14:00:00",
"doctor_buffer_time": 60,
"services_name": "Facial",
"service_categories": "Basic Treatments",
"doctors": "Didit Velliz"
},
"users": {
"id": 5,
"username": "markusnr",
"users_fullname": "Markus Nahesson SpKK,.",
"users_email": "markus@gmail.com",
"users_phone": "087859887441",
"users_address": "Bandung",
"users_birthday": "1990-11-09",
"users_picture": "6wJhfdFNjNJLdWw6.png",
"is_password_reset_required": 0,
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Admin",
"num_of_login_attempts": 0,
"department_ids": "9",
"department_name": "Information Technology Division",
"department_descriptions": "Networking Service and Applications",
"department_codes": "01",
"users_picture_url": "https://dev.colederma.com/uploads/users/6wJhfdFNjNJLdWw6.png"
},
"patients": {
"id": 2,
"id_users": 9,
"nama_lengkap_pasien": "Mildi Ghanesa",
"tempat_lahir": "Bandung",
"tanggal_lahir": "2000-05-11",
"alamat_domisili": "Jl. Griya Pratama Raya Blok VII Kelapa Gading",
"nama_ibu_kandung": "Milda",
"jenis_kelamin": "L",
"nama_ayah": "Maman",
"no_identitas": "1234895784569",
"jenis_identitas": "KTP",
"catatan": "Kurang gizi",
"nama_wali": "Milda",
"hubungan_dengan_wali": "Ibu",
"alamat_wali": "Cibeber kalong No 34 Bandung",
"no_telp_wali": "089564154778",
"alamat_identitas": "Jl. Griya Pratama Raya Blok VII Kelapa Gading",
"golongan_darah": "O",
"pekerjaan": "Employees",
"perusahaan_tempat_bekerja": "Mostar Studio",
"perusahaan_no_telp": "085312345",
"no_telp_rumah": "087864952516",
"no_handphone": "087864952516",
"patient_picture": "0wrmDQF5vrBWMED3.png",
"provinsi": "DKI Jakarta",
"kota": "Kota Jakarta Utara",
"kecamatan": "Kelapa Gading",
"kode_provinsi": "6",
"kode_kota": "155",
"kode_kecamatan": "2124",
"lat": -6.1755716,
"lng": 106.9122239
},
"custom_price": 265000,
"hari": "Rabu",
"jam": "10:15:00",
"tanggal": "2023-10-04",
"status": "DONE",
"digisoft_invoice_numbers": "",
"reschedule_counts": 8,
"cancel_reason": null
}
}user_schedules/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}user_schedules/{?}/update atau user_schedules/{?}/reschedule [PUT]
JSON Request
{
"id_doctors": "85",
"id_services": "1",
"id_doctor_schedules": "87",
"custom_price": "0",
"hari": "Senin",
"jam": "13:00",
"tanggal": "25/09/2023",
"id_users": "5",
"id_patients": "2"
}JSON Response
{
"user_schedules": {
"id": 89,
"doctors": {
"id": 85,
"id_users": 5,
"id_services": 2,
"custom_price": 200000,
"doctor_description": "Dokter Umum",
"availability_description": "Senin, Selasa, Rabu, Sabtu",
"is_active": 1
},
"services": {
"id": 1,
"id_service_categories": 8,
"services_name": "Art Peel",
"services_price": 0,
"services_description": "<p><strong><span style=\"color: #545454; font-family: brandon-grot-w01-light, sans-serif; font-size: 15px; text-align: center;\">Removing dead cell skin off has never been so easy</span></strong></p>",
"buffer_time": 75,
"is_available": 1,
"codes": "SRV002",
"color": "#3b4607",
"service_categories": "Service 2",
"images": "3mk1JFzqtAwCMKle.png"
},
"doctor_schedules": {
"id": 87,
"id_doctors": 85,
"id_services": 1,
"custom_price": 300000,
"hari": "Senin",
"jam": "17:00:00",
"is_active": 0,
"doctor_buffer_time": 0,
"services_name": "Art Peel",
"service_categories": "Service 2",
"doctors": "Markus Nahesson"
},
"users": {
"id": 5,
"username": "markusnr",
"users_fullname": "Markus Nahesson",
"users_email": "markus@gmail.com",
"users_phone": "087859887441",
"users_address": "Bandung",
"users_birthday": "1990-11-09",
"users_picture": "uudsHtsBkbOJIDCj.jpg",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Admin",
"num_of_login_attempts": 0,
"department_ids": "9",
"department_name": "Information Technology Division",
"department_descriptions": "Networking Service and Applications",
"department_codes": "01"
},
"patients": {
"id": 2,
"id_users": 5,
"nama_lengkap_pasien": "Mildi Ghanesa",
"tempat_lahir": null,
"tanggal_lahir": "1999-07-21",
"alamat_domisili": "Cibeber kalong No 34 Bandung",
"nama_ibu_kandung": "",
"jenis_kelamin": "L",
"nama_ayah": null,
"no_identitas": null,
"jenis_identitas": null,
"catatan": "Kurang gizi",
"nama_wali": null,
"hubungan_dengan_wali": null,
"alamat_wali": null,
"no_telp_wali": null,
"alamat_identitas": null,
"golongan_darah": null,
"pekerjaan": null,
"perusahaan_tempat_bekerja": null,
"perusahaan_no_telp": null,
"no_telp_rumah": null,
"no_handphone": null
},
"custom_price": 0,
"hari": "Senin",
"jam": "13:00:00",
"tanggal": "2023-09-25",
"status": "RESCHEDULE",
"digisoft_invoice_numbers": "",
"reschedule_counts": 0,
"cancel_reason": "Ga bisa bayar"
}
}user_schedules/{?}/cancel [PUT]
JSON Request
{
"cancel_reason": "Ga bisa bayar"
}JSON Response
{
"cancel": true
}user_schedules/{?}/arrived [PUT]
JSON Response
{
"arrived": true
}user_schedules/{?}/done [PUT]
JSON Request
{
"digisoft_invoice_numbers": "0001/2023/02-IORA"
}JSON Response
{
"done": true
}user_schedules/timeline [POST]
JSON Request
{
"date_from": "01/01/2023",
"date_to": "01/12/2023"
}JSON Response
{
"date_from": "01/01/2023",
"date_to": "01/12/2023",
"events": [
{
"title": "Markus Nahesson SpKK,.",
"start": "2023-09-25T13:00:00",
"end": "2023-09-25T13:30:00",
"extendedProps": {
"id": 88,
"start": "2023-09-25T13:00:00",
"end": "2023-09-25T13:30:00",
"client": "Markus Nahesson SpKK,.",
"patients": "Mildi Ghanesa",
"reschedule_counts": 0,
"status": "BOOKING",
"custom_price": 0,
"digisoft_invoice_numbers": null,
"users_picture_url": "https://dev.colederma.com/uploads/users/uudsHtsBkbOJIDCj.jpg",
"doctors_picture_url": "https://dev.colederma.com/uploads/users/uudsHtsBkbOJIDCj.jpg"
},
"description": "Art Peel"
}
]
}user_schedules/check/doctor/availability [POST]
JSON Request
{
"id_services": 1,
"id_doctors": 86
}JSON Response
[
{
"schedule": "2023-09-28",
"schedule_format": "28/09/2023",
"day_id": "Kamis",
"day_en": "Thursday",
"doctors": [
{
"id": 90,
"id_services": 1,
"id_doctors": 86,
"id_doctor_services": 99,
"hari": "Kamis",
"jam": "01:30:00",
"services_name": "Art Peel",
"service_categories": "Obat Alergi",
"doctors": "Christian Samuel SpKK,.",
"jam_mulai": "01:30",
"jam_selesai": "02:30"
}
],
"schedule_array": [
"2023-11-09",
"2023-11-10",
"2023-11-11",
"2023-11-12",
"2023-11-13",
"2023-11-14",
"2023-11-15",
"2023-11-16",
"2023-11-17",
"2023-11-18",
"2023-11-19",
"2023-11-20",
"2023-11-21",
"2023-11-22",
"2023-11-23"
]
},
{
"schedule": "2023-09-29",
"schedule_format": "29/09/2023",
"day_id": "Jumat",
"day_en": "Friday",
"doctors": [
{
"id": 90,
"id_services": 1,
"id_doctors": 86,
"id_doctor_services": 99,
"hari": "Kamis",
"jam": "01:30:00",
"services_name": "Art Peel",
"service_categories": "Obat Alergi",
"doctors": "Christian Samuel SpKK,.",
"jam_mulai": "01:30",
"jam_selesai": "02:30"
}
],
"schedule_array": [
"2023-11-09",
"2023-11-10",
"2023-11-11",
"2023-11-12",
"2023-11-13",
"2023-11-14",
"2023-11-15",
"2023-11-16",
"2023-11-17",
"2023-11-18",
"2023-11-19",
"2023-11-20",
"2023-11-21",
"2023-11-22",
"2023-11-23"
]
},
{
"schedule": "2023-09-30",
"schedule_format": "30/09/2023",
"day_id": "Sabtu",
"day_en": "Saturday",
"doctors": [
{
"id": 90,
"id_services": 1,
"id_doctors": 86,
"id_doctor_services": 99,
"hari": "Kamis",
"jam": "01:30:00",
"services_name": "Art Peel",
"service_categories": "Obat Alergi",
"doctors": "Christian Samuel SpKK,.",
"jam_mulai": "01:30",
"jam_selesai": "02:30"
}
],
"schedule_array": [
"2023-11-09",
"2023-11-10",
"2023-11-11",
"2023-11-12",
"2023-11-13",
"2023-11-14",
"2023-11-15",
"2023-11-16",
"2023-11-17",
"2023-11-18",
"2023-11-19",
"2023-11-20",
"2023-11-21",
"2023-11-22",
"2023-11-23"
]
}
]Online Consultations
threads/create [POST]
PROSES INI AUTO CREATE DI FLOW ORDERS
JSON Request
{
"id_order": 1,
"id_user_from": 3,
"id_user_to": 84
}JSON Response
{
"threads": {
"id": 6,
"id_order": 1,
"order_date": "2023-10-07 04:19:24",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": null,
"last_seen_at": null,
"is_closed": 0,
"user_from": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz SpKK,.",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02",
"users_picture_url": "https://dev.colederma.com/uploads/users/"
},
"user_to": {
"id": null,
"username": null,
"users_fullname": null,
"users_email": null,
"users_phone": null,
"users_address": null,
"users_birthday": null,
"users_picture": null,
"users_status": null,
"is_blocked": null,
"is_email_confirmed": null,
"is_phone_confirmed": null,
"reset_hash": null,
"otp": null,
"positions": null,
"num_of_login_attempts": null,
"department_ids": null,
"department_name": null,
"department_descriptions": null,
"department_codes": null,
"users_picture_url": "https://dev.colederma.com/uploads/users/"
}
}
}threads/explore?page=1&length=10 [POST]
JSON Request
{
"id_order": 1,
"id_user_from": 3,
"id_user_to": 84,
"is_closed": 0
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 5,
"id_order": 1,
"order_date": "2023-10-07 04:19:24",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": null,
"last_seen_at": null,
"is_closed": 0,
"id_user_from": 3,
"id_user_to": 84,
"created": "2023-10-13 14:43:14",
"modified": "2023-10-13 14:43:14",
"user_from": "Didit Velliz SpKK,.",
"user_from_picture": "",
"user_to": null,
"user_to_picture": null,
"user_from_picture_url": "https://dev.colederma.com/uploads/users/",
"user_to_picture_url": "https://dev.colederma.com/uploads/users/"
}
]
}threads/search [POST]
JSON Request
{
"id_order": 1,
"id_user_from": 3,
"id_user_to": 84,
"is_closed": 0
}JSON Response
{
"threads": [
{
"id": 5,
"id_order": 1,
"order_date": "2023-10-07 04:19:24",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": null,
"last_seen_at": null,
"is_closed": 0,
"id_user_from": 3,
"id_user_to": 84,
"created": "2023-10-13 14:43:14",
"modified": "2023-10-13 14:43:14",
"user_from": "Didit Velliz SpKK,.",
"user_from_picture": "",
"user_to": null,
"user_to_picture": null,
"user_from_picture_url": "https://dev.colederma.com/uploads/users/",
"user_to_picture_url": "https://dev.colederma.com/uploads/users/"
}
]
}threads/table [POST]
Search Param
id_order
id_user_from
id_user_to
id_user_toTable Specs
"id", //0
"id_order", //1
"order_date", //2
"queue_number", //3
"estimate_done_at", //4
"last_update_at", //5
"last_seen_at", //6
"is_closed", //7
"id_user_from", //8
"id_user_to", //9
"created", //10
"modified", //11
"user_from", //12
"user_from_picture", //13
"user_to", //14
"user_to_picture", //15threads/adminview [POST]
JSON Response
{
"active": {
"prescriptions": [
{
"id": 27,
"id_order": 26,
"order_date": "2023-10-26 14:09:51",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": null,
"last_seen_at": null,
"is_closed": 0,
"id_user_from": 5,
"id_user_to": 0,
"created": "2023-10-26 14:09:51",
"modified": "2023-10-26 14:09:51",
"user_from": "Markus Nahesson SpKK,.",
"user_from_picture": "uudsHtsBkbOJIDCj.jpg",
"user_to": null,
"user_to_picture": null,
"order_code": "E-20231018-001",
"user_from_picture_url": "https://dev.colederma.com/uploads/users/uudsHtsBkbOJIDCj.jpg",
"user_to_picture_url": "https://dev.colederma.com/uploads/users/"
}
],
"online_consultations": []
},
"archive": {
"prescriptions": [],
"online_consultations": []
}
}threads/overview [POST] atau menggunakan threads/overview/doctors [POST]
JSON Response
{
"active": {
"prescriptions": [],
"online_consultations": [
{
"id": 3,
"id_order": 2,
"order_date": "2024-01-10 20:01:27",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": "2024-01-10 22:11:00",
"last_seen_at": "2024-01-10 22:11:00",
"is_closed": 0,
"id_user_from": 44,
"id_user_to": 11,
"created": "2024-01-10 20:01:56",
"modified": "2024-01-10 13:01:56",
"user_from": "rikki 08",
"user_from_picture": "8b3sxKBgHuWn3dxv.png",
"user_from_picture_url": "https://dev.colederma.com/uploads/users/8b3sxKBgHuWn3dxv.png",
"user_to": "rikki novar",
"user_to_picture": "HldUgobgJ0yDzt3e.png",
"user_to_picture_url": "https://dev.colederma.com/uploads/users/HldUgobgJ0yDzt3e.png",
"order_code": "C-20240110-001",
"id_patients": 27,
"patients": {
"id": 27,
"patient_external_id": "",
"users": {
"id": 44,
"username": "rikki08",
"users_fullname": "rikki 08",
"users_email": "rikki08@mail.com",
"users_phone": "085222123008",
"users_address": "jalan kopo no 08",
"users_birthday": "2002-07-18",
"users_picture": "8b3sxKBgHuWn3dxv.png",
"is_password_reset_required": 0,
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "-",
"num_of_login_attempts": 0,
"department_ids": null,
"department_name": null,
"department_descriptions": null,
"department_codes": null,
"users_picture_url": "https://dev.colederma.com/uploads/users/8b3sxKBgHuWn3dxv.png"
},
"nama_lengkap_pasien": "rikki08 01",
"tempat_lahir": "bandung",
"tanggal_lahir": "2013-12-19",
"alamat_domisili": "Jl and the kids have no 1",
"nama_ibu_kandung": "mama",
"jenis_kelamin": "L",
"nama_ayah": "papa",
"no_identitas": "7376483736373773",
"jenis_identitas": "KTP",
"catatan": "-",
"nama_wali": "istriqyu",
"hubungan_dengan_wali": "couple",
"alamat_wali": "jl and I will have a think ",
"no_telp_wali": "-",
"alamat_identitas": "jl cankuanh raya no 008",
"golongan_darah": "A",
"pekerjaan": "-",
"perusahaan_tempat_bekerja": "",
"perusahaan_no_telp": "",
"no_telp_rumah": "",
"no_handphone": "085222223008",
"provinsi": "Jawa Barat",
"kota": "Bandung",
"kecamatan": "Cangkuang",
"kode_provinsi": "9",
"kode_kota": "22",
"kode_kecamatan": "311",
"patient_picture": "",
"patient_picture_url": "https://dev.colederma.com/uploads/patients/",
"lat": -7.0551177,
"lng": 107.5435001,
"allergies": [
{
"id": 64,
"created": "2024-01-10 20:01:09",
"id_patients": 27,
"allergies": "bulu kucing",
"diagnosa": "-",
"catatan_kaki": "-"
},
{
"id": 65,
"created": "2024-01-10 20:01:09",
"id_patients": 27,
"allergies": "debu",
"diagnosa": "-",
"catatan_kaki": "-"
}
]
},
"doctors": {
"id": 87,
"id_users": 11,
"id_services": 2,
"custom_price": 125000,
"doctor_description": "<p><span style=\"font-size: 9pt;\"><strong><span style=\"color: #3b3738; font-family: Lato, sans-serif;\"><em>Spesialis Dermatologi dan Venereologi</em></span></strong></span></p>",
"availability_description": "Jumat, Sabtu, Minggu",
"is_active": 1,
"short_description": "Spesialis dalam merawat bekas luka di kulit, varices dan crack pada kulit akibat obesitas.",
"users_fullname": "rikki novar",
"services_name": "Bubble Glow",
"users_picture": "HldUgobgJ0yDzt3e.png",
"users_picture_url": "https://dev.colederma.com/uploads/users/HldUgobgJ0yDzt3e.png"
}
}
]
},
"archive": {
"prescriptions": [],
"online_consultations": []
}
}threads/{?} [GET]
JSON Response
{
"threads": {
"id": 4,
"id_order": 5,
"order_date": "2023-10-11 13:43:35",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": null,
"last_seen_at": null,
"is_closed": 0,
"user_from": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz SpKK,.",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02",
"users_picture_url": "https://dev.colederma.com/uploads/users/"
},
"user_to": {
"id": null,
"username": null,
"users_fullname": null,
"users_email": null,
"users_phone": null,
"users_address": null,
"users_birthday": null,
"users_picture": null,
"users_status": null,
"is_blocked": null,
"is_email_confirmed": null,
"is_phone_confirmed": null,
"reset_hash": null,
"otp": null,
"positions": null,
"num_of_login_attempts": null,
"department_ids": null,
"department_name": null,
"department_descriptions": null,
"department_codes": null,
"users_picture_url": "https://dev.colederma.com/uploads/users/"
}
}
}threads/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}threads/{?}/update [PUT]
JSON Request
{
"is_closed": 1
}JSON Response
{
"threads": {
"id": 4,
"id_order": 5,
"order_date": "2023-10-11 13:43:35",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": "2023-10-13 14:53:04",
"last_seen_at": null,
"is_closed": 1,
"user_from": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz SpKK,.",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02",
"users_picture_url": "https://dev.colederma.com/uploads/users/"
},
"user_to": {
"id": null,
"username": null,
"users_fullname": null,
"users_email": null,
"users_phone": null,
"users_address": null,
"users_birthday": null,
"users_picture": null,
"users_status": null,
"is_blocked": null,
"is_email_confirmed": null,
"is_phone_confirmed": null,
"reset_hash": null,
"otp": null,
"positions": null,
"num_of_login_attempts": null,
"department_ids": null,
"department_name": null,
"department_descriptions": null,
"department_codes": null,
"users_picture_url": "https://dev.colederma.com/uploads/users/"
}
}
}threads/{?}/close [PUT]
JSON Response
{
"close": true
}threads/{?}/reopen [PUT]
JSON Response
{
"reopen": true
}thread_messages/text [POST]
send text messages
JSON Request
{
"id_threads": 4,
"content": "Hallo Dok, 🙏🙏🙏",
"content_type": "text"
}JSON Response
{
"thread_messages": {
"id": 6,
"threads": {
"id": 4,
"id_order": 5,
"order_date": "2023-10-11 13:43:35",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": "2023-10-13 14:53:04",
"last_seen_at": null,
"is_closed": 1,
"id_user_from": 3,
"id_user_to": 0,
"created": "2023-10-11 13:43:35",
"modified": "2023-10-13 14:53:04",
"user_from": "Didit Velliz SpKK,.",
"user_from_picture": "",
"user_to": null,
"user_to_picture": null,
"user_from_picture_url": "https://dev.colederma.com/uploads/users/",
"user_to_picture_url": "https://dev.colederma.com/uploads/users/"
},
"intentions": "-",
"content_type": "text",
"content": "Hallo Dok, 🙏🙏🙏",
"priority": "standard",
"url": "",
"is_read": 0
}
}thread_messages/prescriptions [POST]
send menu to users
JSON Request
{
"id_threads": 21,
"id_menu": 5,
"content_type": "prescriptions"
}JSON Response
{
"thread_messages": {
"id": 24,
"threads": {
"id": 21,
"id_order": 20,
"order_date": "2023-10-18 08:42:45",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": "2023-11-08 18:16:55",
"last_seen_at": "2023-11-14 14:05:26",
"is_closed": 0,
"id_user_from": 3,
"id_user_to": 0,
"created": "2023-10-18 08:42:45",
"modified": "2023-11-08 11:17:08",
"user_from": "Didit Velliz SpKK,.",
"user_from_picture": "TmeuVlTLPDHt0R5L.png",
"user_from_picture_url": "https://dev.colederma.com/uploads/users/TmeuVlTLPDHt0R5L.png",
"user_to": null,
"user_to_picture": null,
"user_to_picture_url": "https://dev.colederma.com/uploads/users/",
"order_code": ""
},
"intentions": "-",
"content_type": "prescriptions",
"content": {
"id": 5,
"nama_menus": "Age Corrector Night Cream",
"brief": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Helps brighten and disguise black spots, fine lines and wrinkles for a firmer, healthier and brighter appearance.</span></p>",
"harga": 160972,
"pajak": 0,
"is_resep_required": 1,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 1,
"id_menu_categories_1": 7,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "12",
"komposisi": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Niacinamide & Phytosqualane</span></p>",
"aturan_pakai": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Take a sufficient amount and apply it evenly to your entire cleansed face. Use it regularly at night after applying the Age Corrector Serum.</span></p>",
"nomor_registrasi": "RN-002",
"produsen": "Iora",
"satuan": "Jar",
"berat": 30,
"images": "https://dev.colederma.com/uploads/menus/ZvV24EgCqAKa2oV6.png"
},
"priority": "standard",
"qty": 2,
"url": "",
"is_read": 0
}
}thread_messages/attachments [POST]
send attachments messages
POST Multipart form-data
id_threads: 4
content_type: attachments
attachments: <berkas>JSON Response
{
"thread_messages": {
"id": 7,
"threads": {
"id": 4,
"id_order": 5,
"order_date": "2023-10-11 13:43:35",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": "2023-10-13 14:53:04",
"last_seen_at": null,
"is_closed": 1,
"id_user_from": 3,
"id_user_to": 0,
"created": "2023-10-11 13:43:35",
"modified": "2023-10-13 14:53:04",
"user_from": "Didit Velliz SpKK,.",
"user_from_picture": "",
"user_to": null,
"user_to_picture": null,
"user_from_picture_url": "https://dev.colederma.com/uploads/users/",
"user_to_picture_url": "https://dev.colederma.com/uploads/users/"
},
"intentions": "-",
"content_type": "attachments",
"content": "iora (1).jpg",
"priority": "standard",
"url": "https://dev.colederma.com/uploads/thread_messages_attachments/ip48ZRcqVHUvgR1C.jpg",
"is_read": 0
}
}thread_messages/image [POST]
send image messages
JSON Request
id_threads: 4
content_type: image
image: <berkas>JSON Response
{
"thread_messages": {
"id": 8,
"threads": {
"id": 4,
"id_order": 5,
"order_date": "2023-10-11 13:43:35",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": "2023-10-13 14:53:04",
"last_seen_at": null,
"is_closed": 1,
"id_user_from": 3,
"id_user_to": 0,
"created": "2023-10-11 13:43:35",
"modified": "2023-10-13 14:53:04",
"user_from": "Didit Velliz SpKK,.",
"user_from_picture": "",
"user_to": null,
"user_to_picture": null,
"user_from_picture_url": "https://dev.colederma.com/uploads/users/",
"user_to_picture_url": "https://dev.colederma.com/uploads/users/"
},
"intentions": "-",
"content_type": "image",
"content": "iora (1).jpg",
"priority": "standard",
"url": "https://dev.colederma.com/uploads/thread_messages_image/vaPFxUQrkZLoxR1K.jpg",
"is_read": 0
}
}thread_messages/explore?page=1&length10 [POST]
JSON Request
{
"id_threads": 4,
"is_admin": 1,
"id_user_from": 3,
"id_user_to": 84
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 3,
"anchor": [
{
"page": 1
}
],
"totaldata": 3,
"data": [
{
"id": 63,
"intentions": "-",
"id_threads": 79,
"id_user_from": 3,
"id_user_to": 0,
"title": "",
"content": {
"id": 5,
"nama_menus": "Age Corrector Night Cream",
"brief": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Helps brighten and disguise black spots, fine lines and wrinkles for a firmer, healthier and brighter appearance.</span></p>",
"harga": 160972,
"pajak": 0,
"is_resep_required": 1,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 1,
"id_menu_categories_1": 7,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "12",
"komposisi": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Niacinamide & Phytosqualane</span></p>",
"aturan_pakai": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Take a sufficient amount and apply it evenly to your entire cleansed face. Use it regularly at night after applying the Age Corrector Serum.</span></p>",
"nomor_registrasi": "RN-002",
"produsen": "Iora",
"satuan": "Jar",
"berat": 300,
"images": "https://dev.colederma.com/uploads/menus/DuE3Bo13h9We5thN.jpeg",
"qty": "2"
},
"content_type": "prescriptions",
"priority": "standard",
"labels": "",
"is_read": 0,
"url": "/",
"remark": "2",
"created": "2023-11-20 15:19:18",
"modified": "2023-11-20 08:19:18",
"user_from": "dr Didit Velliz MARS",
"user_from_picture": "TmeuVlTLPDHt0R5L.png",
"user_from_picture_url": "https://dev.colederma.com/uploads/users/TmeuVlTLPDHt0R5L.png",
"user_to": null,
"user_to_picture": null,
"user_to_picture_url": "https://dev.colederma.com/uploads/users/",
"bubble": "left",
"valid_until": "2023-12-23 13:30:56"
},
{
"id": 58,
"intentions": "-",
"id_threads": 74,
"id_user_from": 15,
"id_user_to": 0,
"title": "",
"content": {
"id": 4,
"nama_menus": "Age Corretor Serum",
"brief": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Helps brighten and disguise black spots, fine lines and wrinkles for a firmer, healthier and brighter appearance</span></p>",
"harga": 250000,
"pajak": 0,
"is_resep_required": 1,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 0,
"id_menu_categories_1": 7,
"id_menu_categories_2": 9,
"id_menu_categories_3": 11,
"dosis": "5",
"komposisi": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Snail muchin, Bio Sodium Hyaluronate & D-Panthenol, Carnosine, Prodizia dan Soybean Phytoplacenta Extract, Peptide Complex (Matrixyl 3000), Juventide, Matrigenics.</span></p>",
"aturan_pakai": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Take an appropriate amount and apply it evenly to your cleansed face. Use it regularly in the morning and evening before applying facial moisturizer.</span></p>",
"nomor_registrasi": "RN-001",
"produsen": "Iora",
"satuan": "Bottle",
"berat": 200,
"images": "https://dev.colederma.com/uploads/menus/hED0gxotwLSIOTSB.jpeg",
"qty": "1"
},
"content_type": "prescriptions",
"priority": "standard",
"labels": "",
"is_read": 0,
"url": "/",
"remark": "1",
"created": "2023-11-20 13:30:56",
"modified": "2023-11-20 06:30:56",
"user_from": "Stephen Natanael",
"user_from_picture": "qZKB53QoB42l3Shv.png",
"user_from_picture_url": "https://dev.colederma.com/uploads/users/qZKB53QoB42l3Shv.png",
"user_to": null,
"user_to_picture": null,
"user_to_picture_url": "https://dev.colederma.com/uploads/users/",
"bubble": "left",
"valid_until": "2023-12-23 13:30:56"
},
{
"id": 57,
"intentions": "-",
"id_threads": 74,
"id_user_from": 15,
"id_user_to": 0,
"title": "",
"content": "halo saya memberikan anda produk dibawah ini sebentar",
"content_type": "text",
"priority": "standard",
"labels": "",
"is_read": 0,
"url": "/",
"remark": "",
"created": "2023-11-20 13:30:06",
"modified": "2023-11-20 06:30:06",
"user_from": "Stephen Natanael",
"user_from_picture": "qZKB53QoB42l3Shv.png",
"user_from_picture_url": "https://dev.colederma.com/uploads/users/qZKB53QoB42l3Shv.png",
"user_to": null,
"user_to_picture": null,
"user_to_picture_url": "https://dev.colederma.com/uploads/users/",
"bubble": "left",
"valid_until": null
},
{
"id": 56,
"intentions": "-",
"id_threads": 61,
"id_user_from": 23,
"id_user_to": 0,
"title": "",
"content": "Hallo, saya ingin memesan Age Corretor Serum.",
"content_type": "text",
"priority": "standard",
"labels": "",
"is_read": 0,
"url": "/",
"remark": "auto-messages",
"created": "2023-11-20 12:19:09",
"modified": "2023-11-20 05:19:09",
"user_from": "rikki 02",
"user_from_picture": "qZKB53QoB42l3Shv.png",
"user_from_picture_url": "https://dev.colederma.com/uploads/users/qZKB53QoB42l3Shv.png",
"user_to": null,
"user_to_picture": null,
"user_to_picture_url": "https://dev.colederma.com/uploads/users/",
"bubble": "left",
"valid_until": null
},
{
"id": 36,
"intentions": "-",
"id_threads": 15,
"id_user_from": 3,
"id_user_to": 0,
"title": "",
"content": "IMG_1137.PNG",
"content_type": "image",
"priority": "standard",
"labels": "",
"is_read": 0,
"url": "https:\/\/dev.colederma.com\/uploads\/thread_messages_image\/ALfBclRnx2D55oiX.PNG",
"remark": "",
"created": "2023-11-15 09:02:22",
"modified": "2023-11-15 09:02:22",
"user_from": "dr Didit Velliz MARS",
"user_from_picture": "TmeuVlTLPDHt0R5L.png",
"user_from_picture_url": "https:\/\/dev.colederma.com\/uploads\/users\/TmeuVlTLPDHt0R5L.png",
"user_to": null,
"user_to_picture": null,
"user_to_picture_url": "https:\/\/dev.colederma.com\/uploads\/users\/",
"bubble": "right",
"valid_until": null
},
{
"id": 31,
"intentions": "-",
"id_threads": 17,
"id_user_from": 4,
"id_user_to": 0,
"title": "",
"content": "PR.KKJ.2023.10.007.pdf",
"content_type": "attachments",
"priority": "standard",
"labels": "",
"is_read": 0,
"url": "https:\/\/dev.colederma.com\/uploads\/thread_messages_attachments\/1c505k1U7pLmWaNY.pdf",
"remark": "",
"created": "2023-11-14 15:16:23",
"modified": "2023-11-14 15:16:23",
"user_from": "Nahesson SpDV,.",
"user_from_picture": "qZKB53QoB42l3Shv.png",
"user_from_picture_url": "https:\/\/dev.colederma.com\/uploads\/users\/qZKB53QoB42l3Shv.png",
"user_to": null,
"user_to_picture": null,
"user_to_picture_url": "https:\/\/dev.colederma.com\/uploads\/users\/",
"bubble": "left",
"valid_until": null
}
]
}thread_messages/search [POST]
UNAVAILABLE
thread_messages/table [POST]
UNAVAILABLE
thread_messages/{?} [GET]
JSON Response
{
"thread_messages": {
"id": 24,
"intentions": "-",
"threads": {
"id": 21,
"id_order": 20,
"order_date": "2023-10-18 08:42:45",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": "2023-11-08 18:16:55",
"last_seen_at": "2023-11-14 14:10:53",
"is_closed": 0,
"id_user_from": 3,
"id_user_to": 0,
"created": "2023-10-18 08:42:45",
"modified": "2023-11-08 11:17:08",
"user_from": "Didit Velliz SpKK,.",
"user_from_picture": "TmeuVlTLPDHt0R5L.png",
"user_from_picture_url": "https://dev.colederma.com/uploads/users/TmeuVlTLPDHt0R5L.png",
"user_to": null,
"user_to_picture": null,
"user_to_picture_url": "https://dev.colederma.com/uploads/users/",
"order_code": ""
},
"id_user_from": 3,
"id_user_to": 0,
"title": "",
"content": {
"id": 5,
"nama_menus": "Age Corrector Night Cream",
"brief": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Helps brighten and disguise black spots, fine lines and wrinkles for a firmer, healthier and brighter appearance.</span></p>",
"harga": 160972,
"pajak": 0,
"is_resep_required": 1,
"harga_promosi": 0,
"mulai_harga_promosi": null,
"selesai_harga_promosi": null,
"is_featured": 1,
"id_menu_categories_1": 7,
"id_menu_categories_2": 0,
"id_menu_categories_3": 0,
"dosis": "12",
"komposisi": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Niacinamide & Phytosqualane</span></p>",
"aturan_pakai": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Take a sufficient amount and apply it evenly to your entire cleansed face. Use it regularly at night after applying the Age Corrector Serum.</span></p>",
"nomor_registrasi": "RN-002",
"produsen": "Iora",
"satuan": "Jar",
"berat": 30
},
"content_type": "prescriptions",
"priority": "standard",
"labels": "",
"is_read": 0,
"url": "",
"remark": ""
}
}thread_messages/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}thread_messages/{?}/update_text [PUT]
JSON Request
{
"content": "*edited"
}JSON Response
{
"thread_messages": {
"id": 6,
"threads": {
"id": 4,
"id_order": 5,
"order_date": "2023-10-11 13:43:35",
"queue_number": 0,
"estimate_done_at": null,
"last_update_at": "2023-10-13 14:53:04",
"last_seen_at": null,
"is_closed": 1,
"id_user_from": 3,
"id_user_to": 0,
"created": "2023-10-11 13:43:35",
"modified": "2023-10-13 14:53:04",
"user_from": "Didit Velliz SpKK,.",
"user_from_picture": "",
"user_to": null,
"user_to_picture": null,
"user_from_picture_url": "https://dev.colederma.com/uploads/users/",
"user_to_picture_url": "https://dev.colederma.com/uploads/users/"
},
"intentions": "-",
"content_type": "text",
"content": "*edited",
"priority": "standard",
"url": "",
"is_read": 0
}
}User Managements
Patients
patients/create [POST]
JSON Request
{
"id_users": 3,
"patient_external_id": "DIGISOFT_PATIENT-00934203",
"nama_lengkap_pasien": "Andrianto",
"tempat_lahir": "Jakarta",
"tanggal_lahir": "31/12/1992",
"alamat_domisili": "Babakan Jeruk 2 Sarijadi Bandung.",
"nama_ibu_kandung": "Linda",
"jenis_kelamin": "L",
"nama_wali": "Linda",
"hubungan_dengan_wali": "Orangtua",
"alamat_wali": "JL Pelajar Pejuang Baru No 34 RT 02 RW 05 Jakarta Timur.",
"no_telp_wali": "081300912993",
"golongan_darah": "B+",
"no_identitas": "3671290261191001",
"jenis_identitas": "KTP",
"alamat_identitas": "Babakan Jeruk 2 Sarijadi Bandung.",
"nama_ayah": "optional",
"catatan": "opsional",
"pekerjaan": "optional",
"perusahaan_tempat_bekerja": "optional",
"perusahaan_no_telp": "optional",
"no_telp_rumah": "XXXXXXXXXXXXXX",
"no_handphone": "XXXXXXXXXXXXXX",
"provinsi": "JAWA BARAT",
"kota": "CIMAHI",
"kecamatan": "PADASUKA",
"kode_provinsi": "12",
"kode_kota": "312",
"kode_kecamatan": "00981",
"lat": 0.23878,
"lng": 7.87981,
"allergies": [
"Kerang Seafood", "Bonteng", "Nangka"
]
}JSON Response
{
"patients": {
"id": 6,
"patient_external_id": "DIGISOFT_PATIENT-00934203",
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Owner",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02"
},
"nama_lengkap_pasien": "Andrianto",
"tempat_lahir": "Jakarta",
"tanggal_lahir": "1992-12-31",
"alamat_domisili": "Babakan Jeruk 2 Sarijadi Bandung.",
"nama_ibu_kandung": "Linda",
"jenis_kelamin": "L",
"nama_ayah": "optional",
"no_identitas": "3671290261191001",
"jenis_identitas": "KTP",
"catatan": "opsional",
"nama_wali": "Linda",
"hubungan_dengan_wali": "Orangtua",
"alamat_wali": "JL Pelajar Pejuang Baru No 34 RT 02 RW 05 Jakarta Timur.",
"no_telp_wali": "081300912993",
"alamat_identitas": "Babakan Jeruk 2 Sarijadi Bandung.",
"golongan_darah": "B+",
"pekerjaan": "optional",
"perusahaan_tempat_bekerja": "optional",
"perusahaan_no_telp": "optional",
"no_telp_rumah": "XXXXXXXXXXXXXX",
"no_handphone": "XXXXXXXXXXXXXX",
"provinsi": "JAWA BARAT",
"kota": "CIMAHI",
"kecamatan": "PADASUKA",
"kode_provinsi": "12",
"kode_kota": "312",
"kode_kecamatan": "00981",
"lat": 0.23878,
"lng": 7.87981
}
}patients/picture/upload [POST]
POST Multipart form-data
id_patients
pictureJSON Response
{
"image_upload": true,
"img": "i9HqZfLk7vRb9s9W.png",
"img_path": "https://dev.colederma.com/uploads/patients/i9HqZfLk7vRb9s9W.png"
}patients/explore?page=1&length=10 [POST]
JSON Request
{
"id_users": "3",
"keyword": "raka"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 2,
"anchor": [
{
"page": 1
}
],
"totaldata": 2,
"data": [
{
"id": 3,
"id_users": 3,
"patient_external_id": "DIGISOFT_PATIENT-00934203",
"nama_lengkap_pasien": "Mildi Ghanesa MK2",
"tempat_lahir": null,
"tanggal_lahir": "1999-07-21",
"alamat_domisili": "Cibeber kalong No 34 Bandung",
"nama_ibu_kandung": "",
"jenis_kelamin": "L",
"nama_ayah": null,
"no_identitas": null,
"jenis_identitas": null,
"catatan": "Kurang gizi",
"nama_wali": null,
"hubungan_dengan_wali": null,
"alamat_wali": null,
"no_telp_wali": null,
"alamat_identitas": null,
"golongan_darah": null,
"pekerjaan": null,
"perusahaan_tempat_bekerja": null,
"perusahaan_no_telp": null,
"no_telp_rumah": "XXXXXXXXXXXXXX",
"no_handphone": "XXXXXXXXXXXXXX",
"provinsi": "JAWA BARAT",
"kota": "CIMAHI",
"kecamatan": "PADASUKA",
"kode_provinsi": "12",
"kode_kota": "312",
"kode_kecamatan": "00981",
"patient_picture": null,
"allergies": [
{
"id": 8,
"created": "2023-11-17 05:18:47",
"id_patients": 2,
"allergies": "Alergi Ulat",
"diagnosa": "",
"catatan_kaki": ""
},
{
"id": 10,
"created": "2023-11-17 05:19:26",
"id_patients": 2,
"allergies": "Alergi Ngoding sampe Subuh",
"diagnosa": "",
"catatan_kaki": ""
}
],
"lat": 0.23878,
"lng": 7.87981
}
]
}patients/search [POST]
JSON Request
{
"id_users": "3",
"keyword": "raka"
}JSON Response
{
"patients": [
{
"id": 3,
"id_users": 3,
"patient_external_id": "DIGISOFT_PATIENT-00934203",
"nama_lengkap_pasien": "Mildi Ghanesa MK2",
"tempat_lahir": null,
"tanggal_lahir": "1999-07-21",
"alamat_domisili": "Cibeber kalong No 34 Bandung",
"nama_ibu_kandung": "",
"jenis_kelamin": "L",
"nama_ayah": null,
"no_identitas": null,
"jenis_identitas": null,
"catatan": "Kurang gizi",
"nama_wali": null,
"hubungan_dengan_wali": null,
"alamat_wali": null,
"no_telp_wali": null,
"alamat_identitas": null,
"golongan_darah": null,
"pekerjaan": null,
"perusahaan_tempat_bekerja": null,
"perusahaan_no_telp": null,
"no_telp_rumah": "XXXXXXXXXXXXXX",
"no_handphone": "XXXXXXXXXXXXXX",
"provinsi": "JAWA BARAT",
"kota": "CIMAHI",
"kecamatan": "PADASUKA",
"kode_provinsi": "12",
"kode_kota": "312",
"kode_kecamatan": "00981",
"patient_picture": null,
"patient_picture_url": "",
"allergies": [
{
"id": 8,
"created": "2023-11-17 05:18:47",
"id_patients": 2,
"allergies": "Alergi Ulat",
"diagnosa": "",
"catatan_kaki": ""
},
{
"id": 10,
"created": "2023-11-17 05:19:26",
"id_patients": 2,
"allergies": "Alergi Ngoding sampe Subuh",
"diagnosa": "",
"catatan_kaki": ""
}
],
"lat": 0.23878,
"lng": 7.87981
}
]
}patients/table [POST]
Search Param
id_usersTable Specs
"id", //0
"id_users", //1
"nama_lengkap_pasien", //2
"tempat_lahir", //3
"tanggal_lahir", //4
"alamat_domisili", //5
"nama_ibu_kandung", //6
"jenis_kelamin", //7
"nama_ayah", //8
"no_identitas", //9
"jenis_identitas", //10
"catatan", //11
"nama_wali", //12
"hubungan_dengan_wali", //13
"alamat_wali", //14
"no_telp_wali", //15
"alamat_identitas", //16
"golongan_darah", //17
"pekerjaan", //18
"perusahaan_tempat_bekerja", //19
"perusahaan_no_telp", //20
"no_telp_rumah", //21
"no_handphone", //22
"patient_picture", //23
"provinsi", //24
"kota", //25
"kecamatan", //26
"kode_provinsi", //27
"kode_kota", //28
"kode_kecamatan", //29
"lat", //30
"lng", //31
"patient_external_id", //32
"users_fullname", //33
"username", //34patients/{?} [GET]
JSON Response
{
"patients": {
"id": 6,
"patient_external_id": "DIGISOFT_PATIENT-00934203",
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Owner",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02"
},
"nama_lengkap_pasien": "Andrianto",
"tempat_lahir": "Jakarta",
"tanggal_lahir": "1992-12-31",
"alamat_domisili": "Babakan Jeruk 2 Sarijadi Bandung.",
"nama_ibu_kandung": "Linda",
"jenis_kelamin": "L",
"nama_ayah": "optional",
"no_identitas": "3671290261191001",
"jenis_identitas": "KTP",
"catatan": "opsional",
"nama_wali": "Linda",
"hubungan_dengan_wali": "Orangtua",
"alamat_wali": "JL Pelajar Pejuang Baru No 34 RT 02 RW 05 Jakarta Timur.",
"no_telp_wali": "081300912993",
"alamat_identitas": "Babakan Jeruk 2 Sarijadi Bandung.",
"golongan_darah": "B+",
"pekerjaan": "optional",
"perusahaan_tempat_bekerja": "optional",
"perusahaan_no_telp": "optional",
"no_telp_rumah": "XXXXXXXXXXXXXX",
"no_handphone": "XXXXXXXXXXXXXX",
"provinsi": "JAWA BARAT",
"kota": "CIMAHI",
"kecamatan": "PADASUKA",
"kode_provinsi": "12",
"kode_kota": "312",
"kode_kecamatan": "00981",
"patient_picture": null,
"patient_picture_url": "",
"lat": 0.23878,
"lng": 7.87981
}
}patients/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}patients/{?}/update [PUT]
JSON Request
{
"id_users": 3,
"patient_external_id": "DIGISOFT_PATIENT-00934203",
"nama_lengkap_pasien": "Andrianto",
"tempat_lahir": "Jakarta",
"tanggal_lahir": "31/12/1992",
"alamat_domisili": "Babakan Jeruk 2 Sarijadi Bandung.",
"nama_ibu_kandung": "Linda",
"jenis_kelamin": "L",
"nama_wali": "Linda",
"hubungan_dengan_wali": "Orangtua",
"alamat_wali": "JL Pelajar Pejuang Baru No 34 RT 02 RW 05 Jakarta Timur.",
"no_telp_wali": "081300912993",
"golongan_darah": "B+",
"no_identitas": "3671290261191001",
"jenis_identitas": "KTP",
"alamat_identitas": "Babakan Jeruk 2 Sarijadi Bandung.",
"nama_ayah": "optional",
"catatan": "opsional",
"pekerjaan": "optional",
"perusahaan_tempat_bekerja": "optional",
"perusahaan_no_telp": "optional",
"no_telp_rumah": "XXXXXXXXXXXXXX",
"no_handphone": "XXXXXXXXXXXXXX",
"provinsi": "JAWA BARAT",
"kota": "CIMAHI",
"kecamatan": "PADASUKA",
"kode_provinsi": "12",
"kode_kota": "312",
"kode_kecamatan": "00981",
"lat": 0.23878,
"lng": 7.87981,
"allergies": [
"Kerang Seafood", "Bonteng", "Nangka"
]
}JSON Response
{
"patients": {
"id": 6,
"patient_external_id": "DIGISOFT_PATIENT-00934203",
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Owner",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02"
},
"nama_lengkap_pasien": "Andrianto",
"tempat_lahir": "Jakarta",
"tanggal_lahir": "1992-12-31",
"alamat_domisili": "Babakan Jeruk 2 Sarijadi Bandung.",
"nama_ibu_kandung": "Linda",
"jenis_kelamin": "L",
"nama_ayah": "optional",
"no_identitas": "3671290261191001",
"jenis_identitas": "KTP",
"catatan": "opsional",
"nama_wali": "Linda",
"hubungan_dengan_wali": "Orangtua",
"alamat_wali": "JL Pelajar Pejuang Baru No 34 RT 02 RW 05 Jakarta Timur.",
"no_telp_wali": "081300912993",
"alamat_identitas": "Babakan Jeruk 2 Sarijadi Bandung.",
"golongan_darah": "B+",
"pekerjaan": "optional",
"perusahaan_tempat_bekerja": "optional",
"perusahaan_no_telp": "optional",
"no_telp_rumah": "XXXXXXXXXXXXXX",
"no_handphone": "XXXXXXXXXXXXXX",
"provinsi": "JAWA BARAT",
"kota": "CIMAHI",
"kecamatan": "PADASUKA",
"kode_provinsi": "12",
"kode_kota": "312",
"kode_kecamatan": "00981",
"lat": 0.23878,
"lng": 7.87981
}
}patients/{?}/update/address [PUT]
JSON Request
{
"kode_provinsi": 12
}JSON Request
{
"kode_kota": 12
}JSON Request
{
"kode_kecamatan": 12
}JSON Request
{
"provinsi": "JAWA BARAT"
}JSON Request
{
"kota": "BANDUNG"
}JSON Request
{
"kecamatan": "CIBABAT"
}JSON Request
{
"lat": 12.42387,
"lng": 103.32748
}JSON Response
{
"patients": {
"id": 0,
"patient_external_id": "",
"users": null,
"nama_lengkap_pasien": "",
"tempat_lahir": "",
"tanggal_lahir": null,
"alamat_domisili": "",
"nama_ibu_kandung": "",
"jenis_kelamin": "",
"nama_ayah": "",
"no_identitas": "",
"jenis_identitas": "",
"catatan": "",
"nama_wali": "",
"hubungan_dengan_wali": "",
"alamat_wali": "",
"no_telp_wali": "",
"alamat_identitas": "",
"golongan_darah": "",
"pekerjaan": "",
"perusahaan_tempat_bekerja": "",
"perusahaan_no_telp": "",
"no_telp_rumah": "",
"no_handphone": "",
"provinsi": "",
"kota": "",
"kecamatan": "",
"kode_provinsi": "",
"kode_kota": 12,
"kode_kecamatan": "",
"lat": 0,
"lng": 0
}
}Rekam Medis
patient_rekam_medis/create [POST]
JSON Request
{
"id_patients": "3",
"tanggal_konsul": "21/03/2023",
"keluhan": "Sakit berut melilit dan muntah2",
"diagnosa": "GERD AKUT",
"catatan_kaki": "Periksa lab"
}JSON Response
{
"patient_rekam_medis": {
"id": 1,
"patients": {
"id": 3,
"id_users": 3,
"nama": "Mildi Ghanesa MK2",
"tanggal_lahir": "1999-07-21",
"alamat": "Cibeber kalong No 34 Bandung",
"jenis_kelamin": "L",
"catatan": "Kurang gizi"
},
"tanggal_konsul": "2023-03-21",
"keluhan": "Sakit berut melilit dan muntah2",
"diagnosa": "GERD AKUT",
"catatan_kaki": "Periksa lab"
}
}patient_rekam_medis/explore?page=1&length=10 [POST]
JSON Request
{
"id_patients": "3"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 1,
"id_patients": 3,
"tanggal_konsul": "2023-03-21",
"keluhan": "Sakit berut melilit dan muntah2",
"diagnosa": "GERD AKUT",
"catatan_kaki": "Periksa lab",
"verified_iduser": "",
"is_verified": ""
}
]
}patient_rekam_medis/search [POST]
JSON Request
{
"id_patients": "3"
}JSON Response
{
"patient_rekam_medis": [
{
"id": 1,
"id_patients": 3,
"tanggal_konsul": "2023-03-21",
"keluhan": "Sakit berut melilit dan muntah2",
"diagnosa": "GERD AKUT",
"catatan_kaki": "Periksa lab",
"verified_iduser": "",
"is_verified": ""
}
]
}patient_rekam_medis/table [POST]
Search Param
id_patientsTable Specs
"id", //0
"id_patients", //1
"tanggal_konsul", //2
"keluhan", //3
"diagnosa", //4
"catatan_kaki", //5
"verified_iduser", //6
"is_verified", //7patient_rekam_medis/{?} [GET]
JSON Response
{
"patient_rekam_medis": {
"id": 1,
"patients": {
"id": 3,
"id_users": 3,
"nama": "Mildi Ghanesa MK2",
"tanggal_lahir": "1999-07-21",
"alamat": "Cibeber kalong No 34 Bandung",
"jenis_kelamin": "L",
"catatan": "Kurang gizi"
},
"tanggal_konsul": "21/03/2023",
"keluhan": "Sakit berut melilit dan muntah2",
"diagnosa": "GERD AKUT",
"catatan_kaki": "Periksa lab",
"verified_user": {
"id": null,
"username": null,
"users_fullname": null,
"users_email": null,
"users_phone": null,
"users_address": null,
"users_birthday": null,
"users_picture": null,
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": null,
"is_blocked": null,
"is_email_confirmed": null,
"is_phone_confirmed": null,
"reset_hash": null,
"otp": null,
"positions": null,
"num_of_login_attempts": null,
"department_ids": null,
"department_name": null,
"department_descriptions": null,
"department_codes": null
},
"is_verified": ""
}
}patient_rekam_medis/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}patient_rekam_medis/{?}/update [PUT]
JSON Request
{
"id_patients": "3",
"tanggal_konsul": "21/03/2023",
"keluhan": "Sakit berut melilit dan muntah2 dan diare",
"diagnosa": "GERD AKUT",
"catatan_kaki": "Periksa lab"
}JSON Response
{
"patient_rekam_medis": {
"id": 1,
"patients": {
"id": 3,
"id_users": 3,
"nama": "Mildi Ghanesa MK2",
"tanggal_lahir": "1999-07-21",
"alamat": "Cibeber kalong No 34 Bandung",
"jenis_kelamin": "L",
"catatan": "Kurang gizi"
},
"tanggal_konsul": "2023-03-21",
"keluhan": "Sakit berut melilit dan muntah2 dan diare",
"diagnosa": "GERD AKUT",
"catatan_kaki": "Periksa lab"
}
}patient_rekam_medis/{?}/unverify [PUT]
JSON Request
{
"catatan_kaki": "Periksa lab"
}JSON Response
{
"unverify": true
}patient_rekam_medis/{?}/verify [PUT]
JSON Request
{
"catatan_kaki": "Periksa lab"
}JSON Response
{
"verify": true
}Allergies
patient_allergies/create [POST]
JSON Request
{
"id_patients": 3,
"allergies": "seafood"
}JSON Response
{
"patient_allergies": {
"id": 2,
"patients": {
"id": 3,
"id_users": 3,
"nama_lengkap_pasien": "Mildi Ghanesa MK2",
"tempat_lahir": null,
"tanggal_lahir": "1999-07-21",
"alamat_domisili": "Cibeber kalong No 34 Bandung",
"nama_ibu_kandung": "",
"jenis_kelamin": "L",
"nama_ayah": null,
"no_identitas": null,
"jenis_identitas": null,
"catatan": "Kurang gizi",
"nama_wali": null,
"hubungan_dengan_wali": null,
"alamat_wali": null,
"no_telp_wali": null,
"alamat_identitas": null,
"golongan_darah": null,
"pekerjaan": null,
"perusahaan_tempat_bekerja": null,
"perusahaan_no_telp": null,
"no_telp_rumah": null,
"no_handphone": null
},
"allergies": "seafood",
"diagnosa": "",
"catatan_kaki": ""
}
}patient_allergies/explore?page=1&length=10 [POST]
JSON Request
{
"id_patients": 3
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 2,
"created": "2023-09-09 16:23:42",
"id_patients": 3,
"allergies": "seafood",
"diagnosa": "",
"catatan_kaki": ""
}
]
}patient_allergies/search [POST]
JSON Request
{
"id_patients": 3
}JSON Response
{
"patient_allergies": [
{
"id": 2,
"created": "2023-09-09 16:23:42",
"id_patients": 3,
"allergies": "seafood",
"diagnosa": "",
"catatan_kaki": ""
}
]
}patient_allergies/table [POST]
Search Param
id_patientsTable Specs
"id", //0
"id_patients", //1
"allergies", //2
"diagnosa", //3
"catatan_kaki", //4
"created", //5patient_allergies/{?} [GET]
{
"patient_allergies": {
"id": 2,
"patients": {
"id": 3,
"id_users": 3,
"nama_lengkap_pasien": "Mildi Ghanesa MK2",
"tempat_lahir": null,
"tanggal_lahir": "1999-07-21",
"alamat_domisili": "Cibeber kalong No 34 Bandung",
"nama_ibu_kandung": "",
"jenis_kelamin": "L",
"nama_ayah": null,
"no_identitas": null,
"jenis_identitas": null,
"catatan": "Kurang gizi",
"nama_wali": null,
"hubungan_dengan_wali": null,
"alamat_wali": null,
"no_telp_wali": null,
"alamat_identitas": null,
"golongan_darah": null,
"pekerjaan": null,
"perusahaan_tempat_bekerja": null,
"perusahaan_no_telp": null,
"no_telp_rumah": null,
"no_handphone": null
},
"allergies": "seafood",
"diagnosa": "",
"catatan_kaki": ""
}
}patient_allergies/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}patient_allergies/{?}/update [PUT]
JSON Request
{
"id_patients": 3,
"allergies": "seafood"
}JSON Response
{
"patient_allergies": {
"id": 2,
"patients": {
"id": 3,
"id_users": 3,
"nama_lengkap_pasien": "Mildi Ghanesa MK2",
"tempat_lahir": null,
"tanggal_lahir": "1999-07-21",
"alamat_domisili": "Cibeber kalong No 34 Bandung",
"nama_ibu_kandung": "",
"jenis_kelamin": "L",
"nama_ayah": null,
"no_identitas": null,
"jenis_identitas": null,
"catatan": "Kurang gizi",
"nama_wali": null,
"hubungan_dengan_wali": null,
"alamat_wali": null,
"no_telp_wali": null,
"alamat_identitas": null,
"golongan_darah": null,
"pekerjaan": null,
"perusahaan_tempat_bekerja": null,
"perusahaan_no_telp": null,
"no_telp_rumah": null,
"no_handphone": null
},
"allergies": "seafood",
"diagnosa": "",
"catatan_kaki": ""
}
}Users
users/create [POST]
JSON Request (simple)
{
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"password": "qwerty",
"retype_password": "qwerty"
}JSON Request (extends)
{
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"id_departments": [
1,
2,
3
],
"users_address": "Bandung, Indonesia",
"users_birthday": "25/11/1995",
"positions": "Owner",
"password": "qwerty",
"retype_password": "qwerty",
"roles": [
"OWNER",
"ADMIN",
"USERS"
]
}JSON Response
{
"users": {
"id": "1",
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "25/11/1995",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": "0",
"is_email_confirmed": "0",
"is_phone_confirmed": "0",
"positions": "Owner",
"roles": [
{
"id": "1",
"id_users": "1",
"role_codes": "OWNER",
"descriptions": ""
},
{
"id": "2",
"id_users": "1",
"role_codes": "ADMIN",
"descriptions": ""
},
{
"id": "3",
"id_users": "1",
"role_codes": "USERS",
"descriptions": ""
}
]
}
}users/register_device_token [POST,PUT]
JSON Request
{
"device_token": "LOREMIPSUM",
"already_login": false
}JSON Response
{
"register_device_token": true
}users/explore?page=1&length=10 [POST]
JSON Request
{
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"id_departments": 1,
"positions": "Owner",
"role_codes": "OWNER"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": "1",
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": "0",
"is_email_confirmed": "0",
"is_phone_confirmed": "0",
"reset_hash": "",
"otp": "",
"positions": "Owner",
"id_departments": "0"
}
]
}users/search [POST]
JSON Request
{
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"id_departments": 1,
"positions": "Owner",
"users_fullname": "liz",
"role_codes": "OWNER"
}JSON Response
{
"users": [
{
"id": "1",
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": "0",
"is_email_confirmed": "0",
"is_phone_confirmed": "0",
"reset_hash": "",
"otp": "",
"positions": "Owner",
"id_departments": "0"
}
]
}users/table [POST]
Search Param
is_blocked
is_email_confirmed
is_phone_confirmed
positions
id_departments
role_codesTable Specs
"id", //0
"username", //1
"users_fullname", //2
"users_email", //3
"users_phone", //4
"users_address", //5
"users_birthday", //6
"roles", //7
"users_picture", //8
"users_status", //9
"is_blocked", //10
"is_email_confirmed", //11
"is_phone_confirmed", //12
"reset_hash", //13
"otp", //14
"positions", //15users/{?} [GET]
JSON Response
{
"users": {
"id": "1",
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "25/11/1995",
"users_picture": "",
"users_status": "Created",
"is_blocked": "0",
"is_email_confirmed": "0",
"is_phone_confirmed": "0",
"is_password_reset_required": "0",
"positions": "Owner",
"total_point": 0,
"departments": [
{
"id": "1",
"id_users": "1",
"id_departments": "1",
"descriptions": "Init new users"
},
{
"id": "2",
"id_users": "1",
"id_departments": "2",
"descriptions": "Init new users"
},
{
"id": "3",
"id_users": "1",
"id_departments": "3",
"descriptions": "Init new users"
}
],
"roles": [
{
"id": "1",
"id_users": "1",
"role_codes": "OWNER",
"descriptions": ""
},
{
"id": "2",
"id_users": "1",
"role_codes": "ADMIN",
"descriptions": ""
},
{
"id": "3",
"id_users": "1",
"role_codes": "USERS",
"descriptions": ""
}
],
"donor_informations": [
],
"notifications": {
"notifications": "36",
"unread": "0",
"isread": "36"
}
}
}users/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}users/{?}/update [PUT]
JSON Request
{
"username": "didit",
"users_fullname": "Didit Velliz Update",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"id_departments": [
1,
2,
3
],
"users_address": "Bandung, Indonesia",
"users_birthday": "25/11/1995",
"positions": "Owner",
"roles": [
"OWNER",
"ADMIN",
"USERS"
]
}JSON Response
{
"users": {
"id": "1",
"username": "didit",
"users_fullname": "Didit Velliz Update",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "25/11/1995",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": "0",
"is_email_confirmed": "0",
"is_phone_confirmed": "0",
"is_password_reset_required": "0",
"positions": "Owner",
"departments": [
{
"id": "1",
"id_users": "1",
"id_departments": "1",
"descriptions": "Init new users"
},
{
"id": "2",
"id_users": "1",
"id_departments": "2",
"descriptions": "Init new users"
},
{
"id": "3",
"id_users": "1",
"id_departments": "3",
"descriptions": "Init new users"
}
],
"roles": [
{
"id": "4",
"id_users": "1",
"role_codes": "OWNER",
"descriptions": "-"
},
{
"id": "5",
"id_users": "1",
"role_codes": "ADMIN",
"descriptions": "-"
},
{
"id": "6",
"id_users": "1",
"role_codes": "USERS",
"descriptions": "-"
}
]
}
}users/picture/upload [POST]
POST Request
id_users
pictureJSON Response
{
"image_upload": true,
"img": "5OVMrLGmnxOI18YH.jpg",
"img_path": "http://aha-centre-grant-ms.test/uploads/users/5OVMrLGmnxOI18YH.jpg"
}users/login [POST] credential with username & password
JSON Request (mobile)
{
"act": "login",
"username": "didit",
"password": "colederma54321**",
"app": "mobile"
}JSON Request (website)
{
"act": "login",
"username": "didit",
"password": "colederma54321**",
"app": "website"
}JSON Response
{
"users_phone": "081381461200",
"users_email": "did@gmail.com",
"login": true,
"bearer": "a2NpTTh6TVV6akg0bklSaC9jL0ZySlF0T1ZneVR2dEk2QjFKSDlEbExhM2dsQm1ONVkvakt1QU0vdFBjbVpWR1FoSXBPaTVSSncyeU9BVW4vSlhQRDd3RDM2YW4zV0ZyK2VKK1E0ZlRhSGJKNVFDd1ZlOWY0Qk5zMVY2cHB2QlZpbU9LRGJDUjYzelpvdlZ4a2ZOYTFKUFRDL3VGcXVOZXphTW16QkE1MG5ZPQ==",
"id": 3,
"is_password_reset_required": 0,
"roles": []
}users/data [GET]
JSON Response
{
"users": {
"id": 40,
"username": "rikki07",
"users_fullname": "rikki 07",
"users_email": "rikki07@test.com",
"users_phone": "0851222123007",
"users_address": "Joan laihfh 007",
"users_birthday": "2012-12-26",
"users_picture": "6khOYS4IwJI7rTlq.jpeg",
"users_picture_url": "https://dev.colederma.com/uploads/users/6khOYS4IwJI7rTlq.jpeg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"positions": "-",
"is_password_reset_required": 0,
"departments": [],
"roles": [
{
"id": 120,
"id_users": 40,
"role_codes": "CUSTOMER",
"descriptions": ""
}
],
"notifications": {
"notifications": 6,
"unread": 4,
"isread": 2
},
"next_appointments": [
{
"title": "Christian Samuel",
"start": "2024-01-12T16:00:00",
"end": "2024-01-12T17:00:00",
"extendedProps": {
"id": 1,
"start": "2024-01-12T16:00:00",
"end": "2024-01-12T17:00:00",
"client": "rikki 07",
"patients": "Rikki 07 01",
"reschedule_counts": 1,
"status": "RESCHEDULE",
"custom_price": 0,
"digisoft_invoice_numbers": "",
"users_picture_url": "https://dev.colederma.com/uploads/users/https://dev.colederma.com/uploads/users/6khOYS4IwJI7rTlq.jpeg",
"doctors_picture_url": "https://dev.colederma.com/uploads/users/https://dev.colederma.com/uploads/users/G3Q989NBBNpWgXbJ.PNG"
},
"description": "Art Peel"
}
],
"latest_orders": [
{
"id": 2,
"pic_admin": "",
"id_admin": 0,
"id_member": 40,
"id_patients": 23,
"id_promo_discount_applied": 0,
"nomor_resi": "JNE-001-XXX-01",
"nama_pemesan": "rikki 07",
"notelp_pemesan": "085222123007",
"email_pemesan": "rikki07@test.com",
"alamat_pemesan": "Joan laihfh 007",
"alamat_kirim": "Joan laihfh 007",
"nama_penerima": "Rikki 07 01",
"order_date": "2024-01-06 21:50:45",
"order_type": "E",
"order_code": "E-20240106-001",
"pickup_datetime": "2024-01-06 21:58:32",
"queue_number": 0,
"catatan_order": "simpan di depan pintu",
"total_price": 497356,
"total_discount": 0,
"total_pajak": 0,
"total_buffertime": 0,
"status": "PICKUP",
"is_paid": 1,
"payment_redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/0cd17574-1733-47c4-a48e-805b08269ec2",
"paid_date": "2024-01-06 21:53:29",
"pay_channel": "",
"kode_provinsi": 0,
"kode_kota": 153,
"kode_kecamatan": 0,
"is_prepared": 1,
"prepared_datetime": "2024-01-06 21:58:05",
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"cancel_datetime": null,
"cancel_pic": "",
"cancel_reason": "",
"ratings": null,
"rating_desc": null,
"is_processing": 1,
"processing_datetime": "2024-01-06 21:58:20",
"courier": "jne",
"is_courier": 1,
"courier_datetime": "2024-01-06 21:51:45",
"is_pickup": 1,
"courier_price": 10000,
"poin_used": 0,
"details": [
{
"id": 1,
"id_order": 2,
"id_menu": 15,
"qty": 1,
"satuan": "Jar",
"price": 175412,
"price_total": 175412,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2024-01-06 21:50:48",
"catatan_menu": "Diresepkan oleh Colederma.",
"is_canceled": 0,
"cancel_user_id": 0,
"nama_menus": "Acne Night Cream",
"is_resep_required": 1,
"brief": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Helps in controlling excess oil, refining the pores, and treats acne-prone skin.</span></p>",
"dosis": "5",
"komposisi": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Niacinamide, Arbutin, Amino Acid, Chromabright, Titanium Dioxide, Panthenol, Shea Butter, Trehalose, Glychospere Papain/Papaya Enzyme, Allantoin, Bunga Water Lily, Bisabolol dari bunga Chamomile</span></p>",
"aturan_pakai": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Take a sufficient amount and apply it evenly to your entire cleansed face. Use it regularly at night after applying the Age Corrector Serum.</span></p>",
"nomor_registrasi": "RN-010",
"produsen": "Iora",
"berat": 300,
"images": "https://dev.colederma.com/uploads/menus/9DywHlUgMjR8035Q.jpeg"
},
{
"id": 2,
"id_order": 2,
"id_menu": 5,
"qty": 2,
"satuan": "Jar",
"price": 160972,
"price_total": 321944,
"discount": 0,
"pajak": 0,
"buffer_time": 0,
"order_datetime": "2024-01-06 21:50:59",
"catatan_menu": "Diresepkan oleh Colederma.",
"is_canceled": 0,
"cancel_user_id": 0,
"nama_menus": "Age Corrector Night Cream",
"is_resep_required": 1,
"brief": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Helps brighten and disguise black spots, fine lines and wrinkles for a firmer, healthier and brighter appearance.</span></p>",
"dosis": "12",
"komposisi": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Niacinamide & Phytosqualane</span></p>",
"aturan_pakai": "<p><span style=\"font-family: Arial; font-size: 13px; white-space-collapse: preserve;\">Take a sufficient amount and apply it evenly to your entire cleansed face. Use it regularly at night after applying the Age Corrector Serum.</span></p>",
"nomor_registrasi": "RN-002",
"produsen": "Iora",
"berat": 300,
"images": "https://dev.colederma.com/uploads/menus/DuE3Bo13h9We5thN.jpeg"
}
],
"grand_totals": 507356
}
],
"total_point": "50000",
"patients": [
{
"id": 23,
"id_users": 40,
"patient_external_id": "",
"nama_lengkap_pasien": "Rikki 07 01",
"tempat_lahir": "Jakarta",
"tanggal_lahir": "2012-12-03",
"alamat_domisili": "Listen ipsum",
"nama_ibu_kandung": "Mama",
"jenis_kelamin": "P",
"nama_ayah": "Opapa",
"no_identitas": "1231241242344",
"jenis_identitas": "KTP",
"catatan": "Layla",
"nama_wali": "Kakak",
"hubungan_dengan_wali": "Siblings",
"alamat_wali": "Japan kakashdh",
"no_telp_wali": "-",
"alamat_identitas": "Lalala Loren ipsum",
"golongan_darah": "AB",
"pekerjaan": "-",
"perusahaan_tempat_bekerja": "",
"perusahaan_no_telp": "",
"no_telp_rumah": "0225894274",
"no_handphone": "085222123107",
"patient_picture": "",
"provinsi": "DKI Jakarta",
"kota": "Jakarta Selatan",
"kecamatan": "Kebayoran Baru",
"kode_provinsi": "6",
"kode_kota": "153",
"kode_kecamatan": "2105",
"lat": -6,
"lng": 106,
"patient_picture_url": "https://dev.colederma.com/uploads/patients/",
"allergies": [
{
"id": 20,
"created": "2023-12-01 21:57:32",
"id_patients": 23,
"allergies": "Kucing",
"diagnosa": "-",
"catatan_kaki": "-"
}
]
},
{
"id": 24,
"id_users": 40,
"patient_external_id": "",
"nama_lengkap_pasien": "Rikki 07 02",
"tempat_lahir": "Semarang",
"tanggal_lahir": "2000-01-01",
"alamat_domisili": "Full address",
"nama_ibu_kandung": "Mama",
"jenis_kelamin": "L",
"nama_ayah": "Papa",
"no_identitas": "1234567890",
"jenis_identitas": "SIM",
"catatan": "Sehat sentosa",
"nama_wali": " Budi",
"hubungan_dengan_wali": "Sepupu",
"alamat_wali": "Residential address",
"no_telp_wali": "-",
"alamat_identitas": "Alamat ktp",
"golongan_darah": "AB",
"pekerjaan": "PNS",
"perusahaan_tempat_bekerja": "Kompeni",
"perusahaan_no_telp": "0221234567",
"no_telp_rumah": "02122123450",
"no_handphone": "081234567890",
"patient_picture": "s4aBrvFU9rS6jWyi.jpg",
"provinsi": "DKI Jakarta",
"kota": "Jakarta Barat",
"kecamatan": "Kembangan",
"kode_provinsi": "6",
"kode_kota": "151",
"kode_kecamatan": "2091",
"lat": -6.8850832,
"lng": 107.5703945,
"patient_picture_url": "https://dev.colederma.com/uploads/patients/s4aBrvFU9rS6jWyi.jpg",
"allergies": [
{
"id": 56,
"created": "2023-12-18 22:02:11",
"id_patients": 24,
"allergies": "Ikan",
"diagnosa": "-",
"catatan_kaki": "-"
},
{
"id": 57,
"created": "2023-12-18 22:02:11",
"id_patients": 24,
"allergies": "Ayam",
"diagnosa": "-",
"catatan_kaki": "-"
},
{
"id": 58,
"created": "2023-12-18 22:02:11",
"id_patients": 24,
"allergies": "Coklat",
"diagnosa": "-",
"catatan_kaki": "-"
}
]
},
{
"id": 25,
"id_users": 40,
"patient_external_id": "",
"nama_lengkap_pasien": "rhea tatjana 07",
"tempat_lahir": "bandung",
"tanggal_lahir": "2012-11-30",
"alamat_domisili": "jl lebak wangi 123",
"nama_ibu_kandung": "rani",
"jenis_kelamin": "P",
"nama_ayah": "rikki",
"no_identitas": "153773837474849",
"jenis_identitas": "KTP",
"catatan": "sehat normal",
"nama_wali": "kakak kikik",
"hubungan_dengan_wali": "siblings",
"alamat_wali": "resident addr",
"no_telp_wali": "-",
"alamat_identitas": "jl lebak wangi 212",
"golongan_darah": "AB",
"pekerjaan": "-",
"perusahaan_tempat_bekerja": "kompeni",
"perusahaan_no_telp": "0225861524",
"no_telp_rumah": "",
"no_handphone": "085223463638",
"patient_picture": "0XAevB9V8t0lDXK9.png",
"provinsi": "Jawa Barat",
"kota": "Bandung",
"kecamatan": "Katapang",
"kode_provinsi": "9",
"kode_kota": "22",
"kode_kecamatan": "322",
"lat": -7.0104397410662,
"lng": 107.54688262939,
"patient_picture_url": "https://dev.colederma.com/uploads/patients/0XAevB9V8t0lDXK9.png",
"allergies": [
{
"id": 60,
"created": "2024-01-04 17:58:55",
"id_patients": 25,
"allergies": "tidak ada",
"diagnosa": "-",
"catatan_kaki": "-"
}
]
},
{
"id": 26,
"id_users": 40,
"patient_external_id": "",
"nama_lengkap_pasien": "Stepha",
"tempat_lahir": "Bandung",
"tanggal_lahir": "2013-12-11",
"alamat_domisili": "Martabak bangka",
"nama_ibu_kandung": "Hahahahah",
"jenis_kelamin": "L",
"nama_ayah": "Hihihihi",
"no_identitas": "10101010101010",
"jenis_identitas": "KTP",
"catatan": "Bababababa",
"nama_wali": "Hahahah",
"hubungan_dengan_wali": "Hahahahaha",
"alamat_wali": "Hahahahaha",
"no_telp_wali": "-",
"alamat_identitas": "Hahahaha",
"golongan_darah": "A",
"pekerjaan": "-",
"perusahaan_tempat_bekerja": "",
"perusahaan_no_telp": "",
"no_telp_rumah": "",
"no_handphone": "171717171711771",
"patient_picture": "",
"provinsi": "Bangka Belitung",
"kota": "Bangka",
"kecamatan": "Bakam",
"kode_provinsi": "2",
"kode_kota": "27",
"kode_kecamatan": "426",
"lat": -2.7410513,
"lng": 106.4405872,
"patient_picture_url": "https://dev.colederma.com/uploads/patients/",
"allergies": [
{
"id": 62,
"created": "2024-01-06 19:32:45",
"id_patients": 26,
"allergies": "Hahaha",
"diagnosa": "-",
"catatan_kaki": "-"
}
]
}
],
"counts_carts": 1,
"threads": [],
"doctors": []
},
"permissions": [
"CUSTOMER"
]
}users/{?}/unblock [POST]
JSON Response
{
"unblock": true
}users/{?}/update/password [POST]
parameter {?} menggunakan id user
JSON Request
{
"prev_password": "*******1122",
"new_password": "*************1234",
"new_password_confirm": "****1234"
}JSON Response
{
"update_password": true
}users/{?}/update/password/admin [POST]
parameter {?} menggunakan id user
JSON Request
{
"new_password": "*************1234",
"new_password_confirm": "****1234"
}JSON Response
{
"update_password_admin": true
}users/patients/link [PUT]
JSON Request
{
"id_users": 2,
"id_patients": 8
}JSON Response
{
"link": true
}users/patients/unlink [PUT]
JSON Request
{
"id_patients": 8
}JSON Response
{
"unlink": true
}Recovery Accounts via Email
Melakukan permintaan untuk pemulihan akun jika tau email yang terdaftar.
users/{?}/recovery/password/email [POST] atau users/{?}/recovery/password/email?variant=reset [POST]
Parameter menggunakan alamat email valid contoh: didit@gmail.com
JSON Response
{
"recovery_password_email": true,
"users_email": "didit@gmail.com"
}Email akan dikirim dengan format seperti berikut ini:
{!url}/account/recovery?hash=Aue3Mkf3Ne0ZzTSv&email=didit@gmail.com
Kemudian melakukan verifikasi hash dengan cara:
users/{?}/forgot/{?}/password/email
- Parameter pertama menggunakan alamat email valid contoh: didit@gmail.com
- Parameter kedua menggunakan hash valid contoh: Aue3Mkf3Ne0ZzTSv
users/didit@gmail.com/forgot/Aue3Mkf3Ne0ZzTSv/password/email
JSON Request
{
"new_password": "dev54321**",
"confirm_new_password": "dev54321**"
}JSON Response
{
"forgot_password_email": true,
"users_email": "didit@gmail.com"
}Recovery Accounts via WhatsApp @Wablas
Melakukan permintaan untuk pemulihan akun jika tau no. telepon yang terdaftar.
users/{?}/recovery/password/wa [POST]
Parameter menggunakan no. telepon valid contoh: 6281200001121
JSON Response
{
"recovery_password_wa": true,
"users_phone": "6281200001121"
}Pesan via Whatsapp akan dikirim dengan format seperti berikut ini:
{!url}/account/recovery?hash=Aue3Mkf3Ne0ZzTSv&phone=6281200001121
Kemudian melakukan verifikasi hash dengan cara:
users/{?}/forgot/{?}/password/wa
- Parameter pertama menggunakan alamat email valid contoh: 6281200001121
- Parameter kedua menggunakan hash valid contoh: AdVR4vLuGXah3MfF
users/6281200001121/forgot/AdVR4vLuGXah3MfF/password/wa
JSON Request
{
"new_password": "dev54321**",
"confirm_new_password": "dev54321**"
}JSON Response
{
"forgot_password_wa": true,
"users_phone": "6281200001121"
}Roles
roles/create [POST]
JSON Request
{
"iduser": "1",
"rolecodes": "OWNER"
}JSON Response
{
"roles": {
"id": "1",
"user": {
"id": "1",
"username": "diditvelliz",
"users_fullname": "Didit Velliz",
"users_email": "diditvelliz@gmail.com",
"users_phone": "081381461286",
"users_address": "-",
"users_birthday": "1993-01-21",
"users_picture": "ELf0ygx80lg2mjUv.png",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "away...",
"is_blocked": "0",
"is_email_confirmed": "0",
"is_phone_confirmed": "0",
"reset_hash": ""
},
"rolecodes": "OWNER",
"descriptions": ""
}
}roles/explore?page=1&length=10 [POST,GET]
JSON Request
{
"iduser": "1"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": "1",
"iduser": "1",
"rolecodes": "ADMIN",
"descriptions": ""
}
]
}roles/search [POST]
JSON Request
{
"iduser": "1"
}JSON Response
{
"roles": [
{
"id": "1",
"iduser": "1",
"rolecodes": "ADMIN",
"descriptions": ""
}
]
}roles/table [POST]
Search Param
iduserTable Specs
id //0
iduser //1
rolecodes //2
descriptions //3roles/{?} [GET]
JSON Response
{
"roles": {
"id": "1",
"user": {
"id": "1",
"username": "diditvelliz",
"users_fullname": "Didit Velliz",
"users_email": "diditvelliz@gmail.com",
"users_phone": "081381461286",
"users_address": "-",
"users_birthday": "1993-01-21",
"users_picture": "ELf0ygx80lg2mjUv.png",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "away...",
"is_blocked": "0",
"is_email_confirmed": "0",
"is_phone_confirmed": "0",
"reset_hash": ""
},
"rolecodes": "ADMIN",
"descriptions": ""
}
}roles/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}roles/{?}/update [PUT,POST]
JSON Request
{
"iduser": "1",
"rolecodes": "ADMIN"
}JSON Response
{
"roles": {
"id": "1",
"user": {
"id": "1",
"username": "diditvelliz",
"users_fullname": "Didit Velliz",
"users_email": "diditvelliz@gmail.com",
"users_phone": "081381461286",
"users_address": "-",
"users_birthday": "1993-01-21",
"users_picture": "ELf0ygx80lg2mjUv.png",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "away...",
"is_blocked": "0",
"is_email_confirmed": "0",
"is_phone_confirmed": "0",
"reset_hash": ""
},
"rolecodes": "ADMIN",
"descriptions": ""
}
}Notifications
notifications/mark/all [PUT]
JSON Request
{
"id_users": 2
}JSON Response
{
"mark_all": true
}notifications/{?}/mark/as/read [PUT]
JSON Response
{
"mark_as_read": true
}notifications/explore?page=1&length=10 [POST] ?page=1&length=5
JSON Request
{
"id_user_from": 2,
"id_user_to": 2,
"is_read": 0,
"priority": "Low"
}JSON Response
{
"page": 2,
"totalpage": 20,
"length": "5",
"displayed": 5,
"anchor": [
{
"page": 1
},
{
"page": 2
}
],
"totaldata": 100,
"data": [
{
"id": "6",
"created": "2021-04-23 12:00:00",
"intentions": "",
"id_user_from": "0",
"id_user_to": "2",
"title": "Contract Endorsed",
"content": "Hi {Receiver_Name}! Your contract with ID {Contract_ID} has been Endorsed {...}",
"priority": "Low",
"labels": "Success",
"is_read": "1",
"url": "https://dev.colederma.com/contract/details/6",
"remark": "Admin"
},
{
"id": "7",
"created": "2021-04-23 12:00:00",
"intentions": "",
"id_user_from": "0",
"id_user_to": "2",
"title": "Contract is On Going",
"content": "Hi {Receiver_Name}! Your contract with ID {Contract_ID} has been signed and is now on going.",
"priority": "Low",
"labels": "Success",
"is_read": "1",
"url": "https://dev.colederma.com/contract/details/1",
"remark": "Admin"
}
]
}notifications/search [POST]
JSON Request
{
"id_user_from": 2,
"id_user_to": 2,
"is_read": 0,
"priority": "Low"
}JSON Response
{
"notifications": [
{
"id": "2",
"created": "2021-04-23 12:00:00",
"intentions": "",
"id_user_from": "0",
"id_user_to": "2",
"title": "Proposal Rejected",
"content": "Hi {Receiver_Name}! Your proposal with ID {Contract_ID} has been rejected, please submit your revision",
"priority": "Low",
"labels": "Warning",
"is_read": "0",
"url": "https://dev.colederma.com/contract/details/2",
"remark": "Admin"
},
{
"id": "4",
"created": "2021-04-23 12:00:00",
"intentions": "",
"id_user_from": "0",
"id_user_to": "2",
"title": "Contract Waiting for Approval",
"content": "Hi {Receiver_Name}! {Contract_Creator} has submitted an contract with ID {Contract_ID}",
"priority": "Low",
"labels": "Info",
"is_read": "0",
"url": "https://dev.colederma.com/contract/details/4",
"remark": "Authoriser"
}
]
}notifications/table [POST]
Search Param
id_user_from
id_user_to
is_read
priorityTable Specs
"id", //0
"intentions", //1
"id_user_from", //2
"id_user_to", //3
"title", //4
"content", //5
"priority", //6
"labels", //7
"is_read", //8
"url", //9
"remark", //10notifications/{?} [GET]
JSON Response
{
"notifications": {
"id": "1",
"created": "2009-07-25 01:46:10",
"intentions": "",
"user_from": {
"id": null,
"username": null,
"users_fullname": null,
"users_email": null,
"users_phone": null,
"users_address": null,
"users_birthday": null,
"users_picture": null,
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": null,
"is_blocked": null,
"is_email_confirmed": null,
"is_phone_confirmed": null,
"reset_hash": null,
"otp": null,
"positions": null,
"num_of_login_attempts": null,
"department_ids": null,
"department_name": null,
"department_descriptions": null,
"department_codes": null,
"roles": null
},
"user_to": {
"id": "2",
"username": "mostar",
"users_fullname": "Mostar",
"users_email": "contact@mostar.co.id",
"users_phone": "6285871089990",
"users_address": "Jalan Gunung Batu Dalam, Jl. Cidamar Permai No.5, Pasirkaliki, Kec. Cimahi Utara, Kota Cimahi, Jawa Barat 40514",
"users_birthday": "2023-05-23",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": "0",
"is_email_confirmed": "0",
"is_phone_confirmed": "0",
"reset_hash": "KTe33c7pccyuNMnO",
"otp": "",
"positions": "Position",
"num_of_login_attempts": "0",
"department_ids": "1,2,3,4,6",
"department_name": "Admin Project,Finance,Human Resource Development,Information Technology,Project",
"department_descriptions": "Departemen Administrasi Proyek,Departemen Keuangan,Departemen Project,Department Human Resource Development,Networking Service and Applications.",
"department_codes": "ADM,FNC,HRD,IT,PRJ",
"roles": "Administrator,Authoriser"
},
"title": "Proposal Waiting for Approval",
"content": "Hi {Receiver_Name}! {Proposal_creator} has submitted an contract with ID {Contract_ID}",
"priority": "Low",
"labels": "Info",
"is_read": "1",
"url": "https://dev.colederma.com/contract/details/1",
"remark": "Authoriser"
}
}Departments
departments/create [POST]
JSON Request
{
"department_name": "Information Technology Division",
"department_descriptions": "Networking Service and Applications.",
"department_codes": "IT"
}JSON Response
{
"departments": {
"id": "1",
"department_name": "Information Technology Division",
"department_descriptions": "Networking Service and Applications.",
"department_codes": "IT"
}
}departments/explore?page=1&length=10 [POST,GET]
JSON Request
{}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": "1",
"department_name": "Information Technology",
"department_descriptions": "Networking Service and Applications.",
"department_codes": "IT"
}
]
}departments/search [POST]
JSON Request
{}JSON Response
{
"departments": [
{
"id": "1",
"department_name": "Information Technology",
"department_descriptions": "Networking Service and Applications.",
"department_codes": "IT"
}
]
}departments/table [POST]
Search Param
-Table Specs
id //0
department_name //1
department_descriptions //2
department_codes //3departments/{?} [GET]
JSON Response
{
"departments": {
"id": "1",
"department_name": "Information Technology",
"department_descriptions": "Networking Service and Applications.",
"department_codes": "IT"
}
}departments/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}departments/{?}/update [PUT,POST]
JSON Request
{
"department_name": "Information Technology",
"department_descriptions": "Networking Service and Applications.",
"department_codes": "IT"
}JSON Response
{
"departments": {
"id": "1",
"department_name": "Information Technology",
"department_descriptions": "Networking Service and Applications.",
"department_codes": "IT"
}
}User Departments
user_departments/create [POST]
JSON Request
{
"id_departments": 10,
"id_users": 3
}JSON Response
{
"user_departments": {
"id": 16,
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Owner",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02"
},
"departments": {
"id": 10,
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02"
},
"descriptions": "Hello testing"
}
}user_departments/explore?page=1&length=10 [POST]
JSON Request
{
"id_departments": 10,
"id_users": 3
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 16,
"id_users": 3,
"id_departments": 10,
"descriptions": "Hello testing",
"users_fullname": "Didit Velliz",
"department_name": "Finance"
}
]
}user_departments/search [POST]
JSON Request
{
"id_departments": 10,
"id_users": 3
}JSON Response
{
"user_departments": [
{
"id": 16,
"id_users": 3,
"id_departments": 10,
"descriptions": "Hello testing",
"users_fullname": "Didit Velliz",
"department_name": "Finance"
}
]
}user_departments/table [POST]
Search Param
id_departments
id_users
Table Specs
"id", //0
"id_users", //1
"id_departments", //2
"descriptions", //3
"users_fullname", //4
"department_name", //5user_departments/{?} [GET]
JSON Response
{
"user_departments": {
"id": 16,
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Owner",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02"
},
"departments": {
"id": 10,
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02"
},
"descriptions": "Hello testing"
}
}user_departments/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}user_departments/{?}/update [PUT]
JSON Request
{
"id_departments": 10,
"id_users": 3,
"descriptions": "Hello testing"
}JSON Response
{
"user_departments": {
"id": 16,
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz",
"users_email": "didit@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "",
"users_picture_url": "https://localhost:3000/user_pictures/5OVMrLGmnxOI18YH.jpg",
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "",
"otp": "",
"positions": "Owner",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02"
},
"departments": {
"id": 10,
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02"
},
"descriptions": "Hello testing"
}
}User Points
user_points/explore?page=1&length=10 [POST]
JSON Request
{
"id_users": 5,
"id_orders": 31
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 4,
"anchor": [
{
"page": 1
}
],
"totaldata": 4,
"data": [
{
"id": 1,
"created": "2023-11-09 12:32:00",
"id_users": 5,
"id_orders": 31,
"add_point": 5000,
"use_point": 0,
"usecase": "webhook-midtrans",
"is_used": 0,
"is_expired": 0,
"expired_date": null,
"order_code": "E-20231104-003",
"order_type": "E",
"order_date": "2023-11-04 16:35:20",
"username": "markusnr",
"users_fullname": "Markus Nahesson SpKK,."
}
]
}user_points/search [POST]
JSON Request
{
"id_users": 5,
"id_orders": 31
}JSON Response
{
"user_points": [
{
"id": 1,
"created": "2023-11-09 12:32:00",
"id_users": 5,
"id_orders": 31,
"add_point": 5000,
"use_point": 0,
"usecase": "webhook-midtrans",
"is_used": 0,
"is_expired": 0,
"expired_date": null,
"order_code": "E-20231104-003",
"order_type": "E",
"order_date": "2023-11-04 16:35:20",
"username": "markusnr",
"users_fullname": "Markus Nahesson SpKK,."
},
{
"id": 2,
"created": "2023-11-09 12:32:00",
"id_users": 5,
"id_orders": 31,
"add_point": 5000,
"use_point": 0,
"usecase": "webhook-midtrans",
"is_used": 0,
"is_expired": 0,
"expired_date": null,
"order_code": "E-20231104-003",
"order_type": "E",
"order_date": "2023-11-04 16:35:20",
"username": "markusnr",
"users_fullname": "Markus Nahesson SpKK,."
}
]
}user_points/table [POST]
Search Param
id_users
id_ordersTable Specs
"id", //0
"id_users", //1
"id_orders", //2
"add_point", //3
"use_point", //4
"usecase", //5
"is_used", //6
"is_expired", //7
"expired_date", //8
"order_code", //9
"order_type", //10
"order_date", //11
"username", //12
"users_fullname", //13
"created", //14user_points/{?} [GET]
JSON Response
{
"user_points": {
"id": 8,
"users": {
"id": 3,
"username": "didit",
"users_fullname": "Didit Velliz SpKK,.",
"users_email": "diditvelliz@gmail.com",
"users_phone": "081381461286",
"users_address": "Bandung, Indonesia",
"users_birthday": "1995-11-25",
"users_picture": "TmeuVlTLPDHt0R5L.png",
"is_password_reset_required": 1,
"users_status": "Created",
"is_blocked": 0,
"is_email_confirmed": 0,
"is_phone_confirmed": 0,
"reset_hash": "WGGBRR",
"otp": "",
"positions": "",
"num_of_login_attempts": 0,
"department_ids": "10",
"department_name": "Finance",
"department_descriptions": "Finance Department",
"department_codes": "02",
"users_picture_url": "https://dev.colederma.com/uploads/users/TmeuVlTLPDHt0R5L.png"
},
"orders": {
"id": 35,
"pic_admin": "",
"id_admin": 0,
"id_member": 3,
"id_patients": 7,
"id_promo_discount_applied": 0,
"nama_pemesan": "Didit Velliz SpKK,.",
"notelp_pemesan": "081381461286",
"email_pemesan": "diditvelliz@gmail.com",
"alamat_pemesan": "Bandung, Indonesia",
"alamat_kirim": "Bandung, Indonesia",
"nama_penerima": "Jofita",
"order_date": "2023-11-05 16:15:53",
"order_type": "E",
"order_code": "E-20231105-004",
"pickup_datetime": null,
"queue_number": 0,
"catatan_order": "",
"total_price": 1270000,
"total_discount": 0,
"total_pajak": 0,
"total_buffertime": 0,
"status": "PAID",
"is_paid": 1,
"payment_redirect_url": "https://app.sandbox.midtrans.com/snap/v3/redirection/2e2ca706-a05f-43cb-96d1-26c3b20d5da4",
"paid_date": "2023-11-05 16:21:12",
"pay_channel": "",
"is_prepared": 0,
"prepared_datetime": null,
"is_delivered": 0,
"delivered_datetime": null,
"is_done": 0,
"done_datetime": null,
"is_canceled": 0,
"cancel_datetime": null,
"cancel_pic": "",
"cancel_reason": "",
"ratings": null,
"rating_desc": null,
"is_processing": 0,
"processing_datetime": null,
"courier": "sameday",
"is_courier": 1,
"courier_datetime": "2023-11-05 16:20:56",
"is_pickup": 0,
"courier_price": 20000,
"poin_used": 0
},
"add_point": 40000,
"use_point": 0,
"usecase": "webhook-midtrans",
"is_used": 0,
"is_expired": 0,
"created": "2023-11-09 12:32:00",
"expired_date": null
}
}user_points/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}Logs
logs/create [POST]
logs/explore?page=1&length=10 [POST]
logs/search [POST]
logs/table [POST]
logs/{?} [GET]
logs/{?}/delete [DELETE]
logs/{?}/update [PUT]
Static Contents
static_contents/create [POST]
JSON Request
{
"type": "about-us",
"contents": "lorem ipsum sir dolor amet for about colederma has estabhilized in 2018... etc"
}JSON Response
{
"static_contents": {
"id": 1,
"type": "about-us",
"contents": "lorem ipsum sir dolor amet for about colederma has estabhilized in 2018... etc"
}
}static_contents/explore?page=1&length=10 [POST]
JSON Request
{
"type": "booking-info"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 5,
"type": "booking-info",
"contents": "lorem ipsum sir dolor amet for about booking schedules ... etc"
}
]
}static_contents/search [POST]
JSON Request
{
"type": "about-us"
}JSON Response
{
"page": 1,
"totalpage": 1,
"length": 10,
"displayed": 1,
"anchor": [
{
"page": 1
}
],
"totaldata": 1,
"data": [
{
"id": 1,
"type": "about-us",
"contents": "lorem ipsum sir dolor amet for about colederma has estabhilized in 2018... etc"
}
]
}static_contents/table [POST]
Search Param
typeTable Specs
"id", //0
"type", //1
"contents", //2static_contents/{?} [GET]
JSON Response
{
"static_contents": {
"id": 1,
"type": "about-us",
"contents": "lorem ipsum sir dolor amet for about colederma has estabhilized in 2018... etc"
}
}static_contents/{?}/delete [DELETE]
JSON Response
{
"deleted": true
}static_contents/{?}/update [PUT]
JSON Request
{
"type": "about-us",
"contents": "lorem ipsum sir dolor amet for about colederma has estabhilized in 2018... etc"
}JSON Response
{
"static_contents": {
"id": 1,
"type": "about-us",
"contents": "lorem ipsum sir dolor amet for about colederma has estabhilized in 2018... etc"
}
}Menu Reedem Item
*Limited obat menu reedem from prescriptions.
menu_reedems/add_to_carts [POST]
{
"id_menu": 13,
"id_orders": 92,
"id_threads": 40
}JSON Response
{
"add_to_carts": true
}Reports
report/penjualan/stats [POST]
Post Request
tgl_awal
tgl_akhir
order_type
status
id_menus
id_doctorsJSON Response
{
"total_sales": 14,
"total_online_consultation": 2,
"amount_sales": 4132000,
"amount_online_consultation": 600000,
"amount_discount": 0,
"amount_total": 4732000,
"total_customer": 13
}report/penjualan/overall [POST]
Search Param
tgl_awal
tgl_akhir
order_type
status
id_menus
id_doctorsTable Specs
"order_code", //0
"order_date", //1
"order_type", //2
"nama_pemesan", //3
"total_price", //4
"total_discount", //5
"courier_price", //6
"poin_used", //7
"grand_totals", //8
"status", //9report/penjualan/products [POST]
Search Param
tgl_awal
tgl_akhir
order_type
status
id_menusTable Specs
"nama_menus", //0
"qty", //1
"price_total", //2report/penjualan/online_consultations [POST]
tgl_awal
tgl_akhir
order_type
status
id_doctorsTable Specs
"doctors", //0
"qty", //1
"amount", //2report/offline/appoinment/performance [POST]
Search Param
tgl_awal
tgl_akhir
id_services
id_doctorsTable Specs
"doctors", //0
"services_name", //1
"qty", //2
"durations", //3
"doctors_picture_url", //4Dashboard
dashboard/total/pendapatan [POST]
Perhitungan: Year to date
JSON Response
{
"pendapatan": [
{
"months": 10,
"years": 2023,
"amounts": "5345000",
"month_names": "October"
},
{
"months": 11,
"years": 2023,
"amounts": "8174381",
"month_names": "November"
},
{
"months": 12,
"years": 2023,
"amounts": "2246796",
"month_names": "December"
}
]
}dashboard/total/invoice [POST]
Perhitungan: Year to date
JSON Response
{
"invoice": [
{
"months": 10,
"years": 2023,
"counts": 4,
"month_names": "October"
},
{
"months": 11,
"years": 2023,
"counts": 31,
"month_names": "November"
},
{
"months": 12,
"years": 2023,
"counts": 10,
"month_names": "December"
}
]
}dashboard/total/products [POST]
JSON Response
{
"items": [
{
"id_menu": 4,
"nama_menus": "Age Corretor Serum Generasi 2",
"counts": "16"
},
{
"id_menu": 10,
"nama_menus": "Brightening Pore Serum",
"counts": "13"
},
{
"id_menu": 11,
"nama_menus": "Brightening Night Cream",
"counts": "13"
},
{
"id_menu": 5,
"nama_menus": "Age Corrector Night Cream",
"counts": "6"
},
{
"id_menu": 15,
"nama_menus": "Acne Night Cream",
"counts": "2"
}
]
}dashboard/total/services [POST]
JSON Response
{
"items": [
{
"id_services": 1,
"services_name": "Art Peel",
"counts": 16
},
{
"id_services": 25,
"services_name": "MICRO B",
"counts": 7
},
{
"id_services": 26,
"services_name": "Facial",
"counts": 5
},
{
"id_services": 2,
"services_name": "Bubble Glow",
"counts": 2
}
]
}dashboard/upcoming/offline_appoinments [POST]
Table Specs
"id", //0
"id_doctors", //1
"id_services", //2
"id_doctor_schedules", //3
"id_users", //4
"id_patients", //5
"custom_price", //6
"hari", //7
"jam", //8
"tanggal", //9
"status", //10
"users", //11
"nama_lengkap_pasien", //12
"services_name", //13
"doctors", //14
"digisoft_invoice_numbers", //15
"reschedule_counts", //16
"starts", //17
"ends", //18
"cancel_reason", //19dashboard/upcoming/ecommerce [POST]
Table Specs
"id", //0
"pic_admin", //1
"id_admin", //2
"id_member", //3
"id_promo_discount_applied", //4
"nama_pemesan", //5
"notelp_pemesan", //6
"email_pemesan", //7
"alamat_pemesan", //8
"alamat_kirim", //9
"order_date", //10
"order_type", //11
"order_code", //12
"pickup_datetime", //13
"queue_number", //14
"catatan_order", //15
"total_price", //16
"total_discount", //17
"total_pajak", //18
"total_buffertime", //19
"status", //20
"is_paid", //21
"payment_redirect_url", //22
"paid_date", //23
"pay_channel", //34
"is_prepared", //25
"prepared_datetime", //26
"is_delivered", //27
"delivered_datetime", //28
"nama_penerima", //29
"is_done", //30
"done_datetime", //31
"is_canceled", //32
"cancel_datetime", //33
"cancel_pic", //34
"ratings", //35
"rating_desc", //36
"cancel_reason", //37
"is_processing", //38
"processing_datetime", //39
"is_courier", //40
"courier_datetime", //41
"is_pickup", //42
"courier_price", //43
"poin_used", //44
"nomor_resi", //45dashboard/upcoming/promotions [POST]
Table Specs
"id", //0
"id_menu", //1
"type", //2
"value", //3
"quota", //4
"start_datetime", //5
"expired_datetime", //6
"display_codes", //7
"title", //8
"description", //9
"img_promotions", //10Extra
payments/webhooks/clients [GET]
JSON Response
{
"snap_js": "https://app.sandbox.midtrans.com/snap/snap.js",
"client_key": "SB-Mid-client-*****************"
}