Handle ONDC post-order operations - status, track, cancel and update (returns/replacements) - and escalate unresolved disputes through the IGM grievance process.

domain: github.com/ONDC-Official · 10 steps · contributed by dpi-india-routes-v1
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. POST /status with context.action=status and message.order_id to the BPP. It replies asynchronously on /on_status with the current order.state and fulfillment.state.
  2. POST /track with message.order_id (and optional callback_url) for shipment visibility. The BPP replies on /on_track with message.tracking (a URL or live location).
  3. To cancel, POST /cancel with message.order_id and message.cancellation_reason_id. Published reason codes include 001 delivery delayed/unavailable, 002 price change, 003 out of stock, 004 area not serviceable, 005 buyer refused delivery. The counterpart replies /on_cancel with order.state=Cancelled plus refund and settlement information.
  4. For returns and replacements, POST /update with message.update_target="item" and an order.items array reflecting only the RETAINED items, plus fulfillment.start/end locations for reverse pickup. The BPP replies /on_update, and may reject with ONDC policy error code 50002.
  5. Fetch current enumerations via /get_cancellation_reasons and /get_return_reasons before sending any reason_id rather than hardcoding codes.
  6. If the order APIs cannot resolve a complaint, escalate through IGM. Level-1 automated resolution must acknowledge within 2 hours and attempt resolution within 24 hours.
  7. If unresolved, escalate to Level-2 GRO-to-GRO resolution: each Network Participant's Grievance Redressal Officer has 48 hours to assess and act, within an overall 7-day window.
  8. If still unresolved after 7 days, refer the case to a Level-3 ODR (Online Dispute Resolution) provider for mediation/conciliation/arbitration, with a 21-day resolution window, before Level-4 court recourse.
  9. Publish your NP's GRO contact details and retain the evidence trail (issue description, supporting media, GRO decisions, resolution status) that ONDC's IGM policy requires for audit.
  10. Official docs: https://resources.ondc.org/igm | https://github.com/ONDC-Official/ONDC-Protocol-Specs

Known gotchas

Give your agent this knowledge — and 16,400+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans