Payments
1 API call in this section.
Get Delivery Payments
Customer Portal / Delivery Management / Payments
GET
/customer/delivery/paymentsCustomer payment page for delivery module.
Summary cards: total/paid/unpaid
Tabs with counts: all/paid/pending/unpaid
Transaction history based on
paymentswherepayment_type=DELIVERY anduser_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
| Parameter | Type | Description |
|---|---|---|
page | string | Page number (>=1) Example: |
limit | string | Items per page (1-50) Example: |
status | string | Tab filter: all | paid | pending | unpaid Example: |
from_dateOptional | string | Optional ISO date lower bound ( |
to_dateOptional | string | Optional ISO date upper bound ( |
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
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}