courier.| Role | Hak Akses |
|---|---|
super_admin | Melihat data miliknya sendiri |
| Header |
Authorization: Bearer <token>
Content-Type: application/jsonNote:
Jika role courier,courier_idakan otomatis diambil dari token (tidak bisa lihat kurir lain).
curl --location --request PATCH 'https://v1.dev.bukalombok.com/v1/superadmin/managment/users/suspend' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_ids": [
"8c1f42b6-4fcd-4c9d-b178-61d8a9bdb80e",
"8c1f42b6-4fcd-4c9d-b178-61d8a9bdb80e",
"8c1f42b6-4fcd-4c9d-b178-61d8a9bdb80e"
],
"reason": "Pelanggaran aturan marketplace"
}'{
"meta": {
"success": true,
"status": 200,
"message": "Success"
},
"data": [
{
"id": "xQx9hr-zW11-hMy6-qEg3",
"name": "Mrs. Miranda Heidenreich",
"email": "Mckayla_Stracke34@yahoo.com",
"role": "customer",
"is_active": true
},
{
"id": "8bmdnR9cJZf1X1lIYRUPs",
"name": "Martha Zboncak",
"email": "Tamara.Simonis23@yahoo.com",
"role": "customer",
"is_active": true
},
{
"id": "LvuKPx3Hvan9xmUsHJ0pU",
"name": "John Streich",
"email": "Denis_Bednar@gmail.com",
"role": "customer",
"is_active": true
}
]
}