Skip to main content

Payments

1 API call in this section.

Get Delivery Payments​

Customer Portal / Delivery Management / Payments
GET/customer/delivery/payments

Customer payment page for delivery module.

  • Summary cards: total/paid/unpaid

  • Tabs with counts: all/paid/pending/unpaid

  • Transaction history based on payments where payment_type=DELIVERY and user_id=customer

Notes

  • Read-only endpoint (no Pay Now).

COD_SETTLEMENT records represent driver settlements and are excluded from this customer payment list and its summary, including for accounts that are both drivers and customers.

Query parameters

ParameterTypeDescription
pagestring

Page number (>=1)

Example: 1

limitstring

Items per page (1-50)

Example: 10

statusstring

Tab filter: all | paid | pending | unpaid

Example: all

from_dateOptionalstring

Optional ISO date lower bound (created_at)

to_dateOptionalstring

Optional ISO date upper bound (created_at)

Headers

ParameterTypeDescription
Authorizationstring

Example: Bearer {{access_token}}

Staging
Request
curl
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/customer/delivery/payments?page=1&limit=10&status=all" \2  --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"

Response examples

200OK
Response body
json
1{2  "success": true,3  "data": {4    "summary": {5      "total_amount": 700,6      "paid_amount": 600,7      "unpaid_amount": 1008    },9    "statuses": [10      {11        "key": "all",12        "label": "All",13        "count": 314      },15      {16        "key": "paid",17        "label": "Paid",18        "count": 119      },20      {21        "key": "pending",22        "label": "Pending",23        "count": 124      },25      {26        "key": "unpaid",27        "label": "Unpaid",28        "count": 229      }30    ],31    "payments": [32      {33        "id": "uuid",34        "amount": 100,35        "currency": "IQD",36        "status": "PENDING",37        "payment_method": "NASS",38        "payment_method_type_id": "uuid",39        "payment_purpose": null,40        "created_at": "2026-02-28T06:52:48.720513Z",41        "receipt_status": null,42        "receipt_generated_at": null,43        "has_receipt": false,44        "delivery": {45          "id": "uuid",46          "delivery_code": 1909,47          "from": "Pickup address",48          "to": "Dropoff address"49        }50      }51    ],52    "pagination": {53      "page": 1,54      "limit": 10,55      "total": 3,56      "total_pages": 1,57      "has_next_page": false,58      "has_previous_page": false59    }60  }61}