Skip to main content

Payments

1 API call in this section.

Get Delivery Payments

Customer Portal / Delivery Management / Payments
GET/customer/delivery/payments?page=1&limit=10&status=all

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).

Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request GET "$ONDI_BASE_URL/customer/delivery/payments?page=1&limit=10&status=all" \2  --header "Authorization: Bearer {{access_token}}"

Query parameters

pageOptional
query string

1

Page number (>=1)

limitOptional
query string

10

Items per page (1-50)

statusOptional
query string

all

Tab filter: all | paid | pending | unpaid

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

Responses

Success200OK
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}