📋 Методы (3)
Метод | Endpoint | Назначение |
getSupplyOrderTimeslots | /v1/fbo/supply-order/timeslots | Список доступных таймслотов поставки |
getSupplyOrderTimeslotStatus | /v1/fbo/supply-order/timeslot/status | Статус занятости таймслота |
updateSupplyOrderTimeslot | /v1/fbo/supply-order/timeslot/update | Изменение таймслота поставки |
🚀 Пример
// Получить таймслоты и выбрать подходящий
const times = await api.fbo.getSupplyOrderTimeslots({
warehouse_id: 123,
date_from: '2024-01-15T00:00:00Z',
date_to: '2024-01-22T00:00:00Z'
});
const slot = times.timeslots?.find(s => s.is_available);
if (slot) {
await api.fbo.updateSupplyOrderTimeslot({
supply_order_id: 456,
timeslot_id: slot.timeslot_id
});
}