Base URL
| Environment | URL |
|---|---|
| Production | https://admin.dazo.id/api |
| Local | http://localhost:8000/api |
Authentication
Semua endpoint API (kecuali login) menggunakan Laravel Sanctum token:
Authorization: Bearer {token}Token di-generate saat login web via AdminController::login().
Route Groups
Auth
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| POST | /api/login | AdminController::login | Login admin |
| POST | /api/logout | AdminController::logout | Logout admin |
Search (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| GET | /api/search/package | SearchController::package | Search package |
| GET | /api/search/addon | SearchController::addon | Search addon |
| GET | /api/search/users | SearchController::users | Search users |
| GET | /api/search/customer | SearchController::customer | Search customer |
| GET | /api/search/account-managers | SearchController::accountManagers | Search account managers |
| GET | /api/search/payment | SearchController::payment | Search payment |
| GET | /api/search/order | SearchController::order | Search order |
| GET | /api/search/device | SearchController::device | Search device |
| GET | /api/search/contacts | SearchController::contact | Search contacts |
| GET | /api/search/coupon | SearchController::coupon | Search coupon |
| GET | /api/search/covendor | SearchController::covendor | Search covendor |
Customer (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| POST | /api/customer/store | CustomerController::store | Create customer |
Ticketing (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| POST | /api/ticketing-feedback/claim | TicketingFeedbackController::claim | Claim ticket |
| GET | /api/ticketing-feedback/show/{id} | TicketingFeedbackController::getOne | Get ticket detail |
Device (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| GET | /api/device/show/{id} | DeviceController::detail | Get device detail |
| POST | /api/device/store | DeviceController::store | Create device |
| GET | /api/device/check/{id} | DeviceController::check | Check device status |
| GET | /api/device/reload/{id} | DeviceController::reload | Reload device |
| DELETE | /api/device/destroy/{id} | DeviceController::destroy | Delete device |
| GET | /api/device/get-qr | DeviceController::getQr | Get QR code |
| GET | /api/device/restart-session | DeviceController::restartSession | Restart session |
Package (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| GET | /api/package/list | PackageController::list | List packages |
RajaOngkir (Public)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| GET | /api/rajaongkir/province | RajaongkirController::province | List provinces |
| GET | /api/rajaongkir/city | RajaongkirController::city | List cities |
| GET | /api/rajaongkir/autocomplete | RajaongkirController::autocomplete | Autocomplete address |
| GET | /api/rajaongkir/kecamatan | RajaongkirController::kecamatan | List subdistricts |
| POST | /api/rajaongkir/waybill | RajaongkirController::waybill | Track waybill |
| GET | /api/rajaongkir/expedisi | RajaongkirController::expedisi | List expeditions |
Live Chat (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| POST | /api/livechat/get-new | LiveChatController::getNewChat | Get new chats |
| POST | /api/livechat/get-list | LiveChatController::getChatList | Get chat list |
| POST | /api/livechat/get-inbox | LiveChatController::getInbox | Get inbox |
| POST | /api/livechat/save-attachment | LiveChatController::saveAttachment | Save attachment |
| POST | /api/livechat/finish | LiveChatController::finishChat | Finish chat |
| POST | /api/livechat/handling-gudang | LiveChatController::requestHandleGudang | Request warehouse handling |
| POST | /api/livechat/handling-finish | LiveChatController::finishHandleGudang | Finish warehouse handling |
| POST | /api/livechat/move | LiveChatController::moveChat | Move chat |
Addon (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| GET | /api/addon/list | AddonController::list | List addons |
CRM (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| GET | /api/crm/list | CrmController::list | List CRM data |
| POST | /api/crm/update_status | CrmController::update_status | Update CRM status |
Contact (Public)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| GET | /api/contact/check-contact/{wa} | ContactController::checkContact | Check contact by WA |
Covendor (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| POST | /api/covendor/store | CovendorController::store | Create covendor |
| POST | /api/covendor/update/{id} | CovendorController::update | Update covendor |
| POST | /api/covendor/destroy/{id} | CovendorController::destroy | Delete covendor |
Chat (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| GET | /api/chat/check-chat/{wa} | ChatController::getChatListByContact | Get chat by WA |
Withdraw (Sanctum)
| Method | Endpoint | Controller | Deskripsi |
|---|---|---|---|
| GET | /api/withdraw | WithdrawController::index | List withdrawals |
| POST | /api/withdraw/approve/{id} | WithdrawController::approve | Approve withdrawal |
| POST | /api/withdraw/reject/{id} | WithdrawController::reject | Reject withdrawal |
| POST | /api/withdraw/force-update/{id} | WithdrawController::forceUpdateStatus | Force update status |
| GET | /api/withdraw/fee-collector | WithdrawController::getFeeCollectorAccount | Get fee collector |
| POST | /api/withdraw/fee-collector | WithdrawController::createFeeCollectorAccount | Create fee collector |
Platform Settings (Public + Sanctum)
| Method | Endpoint | Controller | Middleware | Deskripsi |
|---|---|---|---|---|
| GET | /api/platform-settings/withdraw-fees | PlatformSettingController::getWithdrawFees | — | Get withdraw fees (public) |
| POST | /api/platform-settings/withdraw-fees | PlatformSettingController::updateWithdrawFees | auth:sanctum | Update withdraw fees |