POST /v1/superadmin/management/courier/address| Header | Value | Deskripsi |
|---|---|---|
| Content-Type | application/json | Format request body JSON |
| Authorization | Bearer <token> | JWT token sesuai role |
{
"userId": "J-QVrN4fX9ioaZE",
"countryId": "d23623e3-c9be-45f9-ab73-51c577c4f042",
"provinceId": "fe261e49-bcea-46e2-b26a-e15f30f4af71",
"regencyId": "36b50851-2abf-4ed2-91f9-197bab9b8205",
"districtId": "1bda8379-78f4-485b-ad70-761c800f24b8",
"villageId": "53b6114c-ba7f-456a-9f17-92a88755d99b",
"fullAddress": "Testing Adrees",
"zipCode": "12190",
"longitude": 106.816666,
"latitude": -6.200000
}curl --location --request PUT 'https://v1.dev.bukalombok.com/v1/superadmin/management/courier/cqAw0qxd0EmZlEQ/address' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": "vOGlKHNPZyglRLu",
"countryId": "9e5bf828-a291-493f-8786-9dacf8aa7cb1",
"provinceId": "0fd95e87-fad7-4508-994d-8f79112e2c89",
"regencyId": "9e01fc9f-e34e-4027-a935-5dafef7b4055",
"districtId": "e93cc564-6233-4354-b0a9-d8a7d09f80c3",
"villageId": "9bca181f-0d64-42a6-8ea9-421fb8cf452a",
"fullAddress": "Testing Update Courier Address",
"zipCode": "12191",
"longitude": 106.816666,
"latitude": -6.200000
}'{
"meta": {
"success": true,
"status": 200,
"message": "Alamat courier berhasil diperbarui"
},
"data": {
"id": "BZa_G5xRSGuUHPb",
"fullAddress": "Testing Adrees",
"zipCode": "12190",
"longitude": 106.816666,
"latitude": -6.2,
"country": "Indonesia",
"province": "Nusa Tenggara Barat",
"regency": "Lombok Tengah",
"district": "Praya",
"village": "Mertak"
}
}