Skip to main content
The Load Bills endpoint returns the complete billing history for courier invoices managed within Shiipp, including computed totals, tax amounts, payment records, and current invoice status. Access is automatically scoped by role: courier users see only their own billing records, while admin and manager roles have visibility across all couriers in the tenant.

Endpoint

GET /api/LoadCourierBills.php

Authentication

All requests must include a valid JWT Bearer token in the Authorization header.
Authorization: Bearer <your_jwt_token>

Role-Based Scoping

Receives the full billing history for all couriers in the tenant. Results are ordered by created_at descending.

Example Request

curl https://app.shiipp.com/api/LoadCourierBills.php \
  -H "Authorization: Bearer <your_jwt_token>"

Response

200 — Success

{
  "status": "success",
  "count": 5,
  "data": [
    {
      "bill_id": "bill-uuid",
      "invoice_number": "INV-2024-001",
      "courier_id": "courier-uuid",
      "courier_name": "Express Couriers",
      "courier_code": "EXP",
      "service_type": "Air Standard",
      "start_date": "2024-01-01",
      "end_date": "2024-01-31",
      "total_packages": 47,
      "subtotal": 348.00,
      "tax_amount": 34.80,
      "total_amount": 382.80,
      "paid_amount": 382.80,
      "status": "paid",
      "created_at": "2024-02-01 09:00:00"
    }
  ]
}

Response Fields

count
integer
Total number of bill records returned in this response.
data
array
Array of invoice objects.

Notes

To compute the outstanding balance on any invoice, subtract paid_amount from total_amount. A result of 0.00 indicates the invoice is fully settled, which will also be reflected by status: "paid".
Courier role users typically see only published and paid invoices. draft invoices are hidden from couriers until they are finalized and published by an admin or manager through the billing UI.