If you cannot fulfill an order, reject it with a clear reason:
Copy
curl -X PATCH "https://api.offergrid.io/provider/orders/ITEM_ID/status" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "status": "rejected", "providerNotes": "Service not available at this address. Building does not have fiber infrastructure." }'
Common rejection reasons:
Service not available at location
Address outside service area
Technical limitations (building wiring, line of sight)
Filter orders by status to focus on what needs attention:
Copy
# Get pending ordersGET /provider/orders?status=pending# Get orders needing schedulingGET /provider/orders?status=accepted# Get active servicesGET /provider/orders?status=active
For high-volume providers, consider automating order acceptance:
Copy
// Example: Auto-accept if service is availableasync function processNewOrder(orderId: string) { const order = await getOrderDetails(orderId); const available = await checkServiceAvailability(order.serviceAddress); if (available) { await updateOrderStatus(orderId, { status: 'accepted', providerNotes: 'Auto-accepted. Customer will be contacted within 24 hours.', }); // Trigger internal fulfillment workflow await scheduleInstallation(order); } else { await updateOrderStatus(orderId, { status: 'rejected', providerNotes: 'Service not available at this location.', }); }}