FOODSbyme

የAPI ሰነዶች በእንግሊዝኛ ናቸው።

የAPI ማጣቀሻ

Order Assignment API

Route creator orders to your fleet, programmatically.

The Order Assignment API lets logistics partners receive, accept, and manage delivery jobs as they are created across the FOODS network. Pull available jobs, accept them for a rider, and keep order state in sync with your own dispatch system.

አቅሞች

  • Receive available delivery jobs in your zones
  • Accept or decline jobs on behalf of a rider
  • Reassign a job between riders
  • Sync order lifecycle state with your dispatch system

Endpoints

GET/v1/orders/available

List unassigned jobs in your territories

POST/v1/orders/{order_id}/accept

Accept a job for a rider

POST/v1/orders/{order_id}/reassign

Move a job to another rider

GET/v1/orders/{order_id}

Retrieve a single order

Accept an order for a rider

ጥያቄ
curl -X POST https://api.foodsbyme.com/v1/orders/ord_8Kd2/accept \
  -H "Authorization: Bearer $FOODS_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "rider_id": "rdr_19f3" }'
ምላሽ · 200 OK
{
  "order_id": "ord_8Kd2",
  "status": "assigned",
  "rider_id": "rdr_19f3",
  "pickup": { "creator": "Mama Titi's Kitchen", "eta_mins": 7 },
  "dropoff": { "area": "Lekki Phase 1" },
  "payout_estimate": { "currency": "NGN", "amount": 850 }
}

ለመዋሃድ ዝግጁ ነዎት?

የአጋር ቁልፍ ይጠይቁ፣ የመፍትሔዎች ቡድናችንም ሥራ እንዲጀምሩ ይረዳዎታል።