Fulfillment by OZON - Complete warehouse operations management
Create, track, and manage warehouse deliveries
Complete FBO posting lifecycle management
Real-time availability and capacity monitoring
Driver data, vehicle info, and timeslot management
Initialize supply order
Verify warehouse capacity
Book delivery window
Driver and vehicle data
Fulfillment handling
Monitor and analyze
import { OzonSellerAPI } from 'daytona-ozon-seller-api';
const api = new OzonSellerAPI({
clientId: 'your-client-id',
apiKey: 'your-api-key'
});
// Complete FBO workflow example
async function fboWorkflowExample() {
// 1. Check warehouse availability
const warehouses = await api.fbo.getWarehouseAvailability();
console.log('Available warehouses:', warehouses.warehouses?.length);
// 2. Get supply orders
const orders = await api.fbo.getSupplyOrdersList({
since: '2024-01-01T00:00:00Z',
to: '2024-01-31T23:59:59Z',
filter: { status: ['created', 'confirmed'] },
limit: 50
});
// 3. Process each order
for (const order of orders.supply_orders || []) {
// Get order details
const orderDetails = await api.fbo.getSupplyOrder({
supply_order_id: order.supply_order_id
});
// Get available timeslots
const timeslots = await api.fbo.getSupplyOrderTimeslots({
warehouse_id: order.warehouse_id,
date_from: '2024-01-15T00:00:00Z',
date_to: '2024-01-22T00:00:00Z'
});
// Update timeslot if needed
if (timeslots.timeslots?.length > 0) {
await api.fbo.updateSupplyOrderTimeslot({
supply_order_id: order.supply_order_id,
timeslot_id: timeslots.timeslots[0].timeslot_id
});
}
}
// 4. Get postings information
const postings = await api.fbo.getPostingsList({
since: '2024-01-01T00:00:00Z',
to: '2024-01-31T23:59:59Z',
filter: { status: ['shipped', 'delivered'] },
with: { analytics_data: true, financial_data: true },
limit: 100
});
console.log(`Processed ${postings.total} FBO postings`);
}
interface FboSupplyOrder {
supply_order_id: number;
status: 'created' | 'confirmed' | 'shipped' | 'delivered' | 'cancelled';
warehouse_id: number;
planned_delivery_date: string;
total_products: number;
total_amount: number;
created_at: string;
updated_at: string;
}
interface FboPosting {
posting_number: string;
status: 'awaiting_deliver' | 'delivered' | 'cancelled';
warehouse_id: number;
products: FboPostingProduct[];
analytics_data?: FboAnalyticsData;
financial_data?: FboFinancialData;
created_at: string;
delivered_at?: string;
}
interface FboWarehouse {
warehouse_id: number;
name: string;
location: string;
capacity_utilization: number; // 0-100%
is_accepting_supply: boolean;
working_hours: {
start_time: string;
end_time: string;
days: string[];
};
}
6 methods covering supply order lifecycle, bundle tracking, driver/vehicle data, and status monitoring.
3 methods for warehouse timeslot management, delivery scheduling, and logistics coordination.
4 methods for warehouse monitoring, posting management, and operational oversight.