Agency Finance

Get invoices

get

Returns a paginated list of invoices associated with the agency.

Authorizations
Query parameters
from_dateinteger · int64Optional

Start of date range in epoch milliseconds

to_dateinteger · int64Optional

End of date range in epoch milliseconds

page_numberintegerOptional

Page number

Default: 1
limitintegerOptional

Number of invoices per page

Default: 10
Responses
200
Successfully retrieved invoices
application/json
Responseall of
get
GET /agency/finance/invoices/ HTTP/1.1
Host: test.swooveapi.com
Authorization: Bearer JWT
Accept: */*
{
  "success": true,
  "code": 200,
  "message": "Estimate completed",
  "responses": {
    "docs": [
      {
        "_id": "text",
        "source": "DELIVERY",
        "status": "PAID",
        "is_requested": true,
        "discount": null,
        "currency_code": "GHS",
        "currency_symbol": "₵",
        "currency_name": "Ghanaian Cedis",
        "payer_id": "text",
        "receiver_id": "text",
        "agency_id": "text",
        "trip_id": "text",
        "description": "text",
        "redirect_url": "text",
        "estimate_id": "text",
        "individual_delivery_id": "text",
        "payment_type": "CASH",
        "option_id": "text",
        "subscription_id": "text",
        "category": "DELIVERY FEES",
        "payment_link": "text",
        "customer_name": "text",
        "customer_email": "text",
        "customer_mobile": "text",
        "referrence_id": "text",
        "channel": "text",
        "is_deleted": true,
        "date_created": 1,
        "date_changed": 1,
        "price": 1,
        "balance": 1,
        "delivery": {
          "pickup": {
            "type": "text",
            "value": "text",
            "contact": {
              "name": "text",
              "mobile": "text",
              "email": "text"
            },
            "country_code": "GH",
            "lat": 1,
            "lng": 1,
            "location": "text"
          },
          "dropoff": {
            "type": "text",
            "value": "text",
            "contact": {
              "name": "text",
              "mobile": "text",
              "email": "text"
            },
            "country_code": "GH",
            "lat": 1,
            "lng": 1,
            "location": "text"
          },
          "items": [
            {
              "itemName": "text",
              "itemQuantity": 1,
              "itemCost": 1,
              "description": "text",
              "itemWeight": 1,
              "is_fragile": false,
              "dimensions": {
                "x": 1,
                "y": 1,
                "z": 1
              }
            }
          ],
          "contact": {
            "name": "text",
            "mobile": "text",
            "email": "text"
          },
          "instructions": "text",
          "reference": "text",
          "estimate_id": "text"
        }
      }
    ],
    "total": 1,
    "limit": 1,
    "page": 1,
    "pages": 1
  }
}

Was this helpful?