- API Create/Update Order
- API Create Order ko hoạt động
E dùng placeId vừa tạo ở trên để call API này ko đc, thử dùng placeId trong hệ thống cũng ko đc.
[POST] https://develop-owner-admin.rakuichi-space.com/api/v1/order
Payload:
{
"orderId": 10,
"facilityId": 10,
"placeId": 11,
"startDate": "2025-07-11",
"endDate": "2025-07-15",
"ownerId": 1,
"orderStatus": 1,
"commodity": "au",
"commodityDetail": "スマホの新規契約申込を受付",
"shopName": "XX店",
"shopTel": "000-000-0000",
"staffName": "相沢、池野",
"staffNum": 2,
"managerName": "須藤",
"managerTel": "000-000-0000",
"handout": "パンフレット",
"carryInTime": "08:00",
"carryOutTime": "19:00",
"carry": 1,
"carryRemark": "わ123-456",
"power": 1,
"powerDetail": "パソコン3台を利用する",
"desk": 1,
"deskDetail": "机3台を利用する",
"chair": 1,
"chairDetail": "椅子3脚を利用する",
"remark": "早めに利用可否の回答が欲しい"
}
=> Trả về lỗi 500 Intarnal Server Error. Ko ghi rõ message.
- API Update Order:
https://develop-owner-admin.rakuichi-space.com/api/v1/order/1
Payload:
{
{
"orderId": 1,
"orderStatus": 1
}
Call trả về status 200, ko có message.
Nhưng khi get order có id là 1, thì orderStatus chưa đúng:
{
"orderId": 1,
"facilityId": null,
"placeId": null,
"startDate": "2025-12-17",
"endDate": "2025-12-18",
"ownerId": null,
"commodity": "その他鑑定(金銭授受なし)",
"commodityDetail": "テスト商材",
"shopName": "テスト店舗",
"shopTel": null,
"staffName": null,
"staffNum": 3,
"managerName": "テスト責任者",
"managerTel": "000-000-0001",
"handout": null,
"carryInTime": "09:00",
"carryOutTime": "19:00",
"carry": 1,
"carryRemark": null,
"power": 1,
"powerDetail": null,
"desk": 2,
"deskDetail": null,
"chair": 2,
"chairDetail": null,
"remark": null,
"orderStatus": 5,
"place": null,
"facilityParentName": "テスト施設1",
"ownerOrganizationName": "オーナー企業1"
}
=> orderStatus là 5 => sai