Skip to content

Contributions API ​

Contribution functionality is controlled entirely by the active policy configuration. It is not a feature that ships enabled.

Endpoints ​

text
GET  /api/v1/bookings/:bookingId/contribution
POST /api/v1/bookings/:bookingId/contribution

Availability ​

json
{
  "status": "DISABLED",
  "contribution": null
}

or, when the policy enables a mode:

json
{
  "status": "CONFIGURED",
  "type": "APPROVED_COST_SHARE",
  "amount": 10,
  "currency": "AED"
}

Create ​

json
{
  "type": "APPROVED_COST_SHARE",
  "amount": 10,
  "currency": "AED"
}

Requires Idempotency-Key.

The API rejects any contribution mode not enabled by the active policy, with CONTRIBUTION_NOT_AVAILABLE. This includes PETROL_CONTRIBUTION: the mode exists so the gate can refuse it, not so it can be used.

Every contribution records the policy_version in force when it was created, so a later policy change does not retroactively change how historical contributions are interpreted.

What this endpoint must never do ​

  • Scale with demand, time, distance or availability
  • Accept a driver-set or passenger-set price
  • Accept an auction or bid
  • Treat the mode name as evidence of legality

A contribution amount is not a fare. See Contribution Policy for the full rules and the prohibited identifiers.

KHAWI — same route, go together.