Billing

This page will dive into the different endpoints for billing.


GET/api/v1/invoices

List all invoices

This endpoint allows you to retrieve a paginated list of all your invoices. By default, a maximum of 200 invoices are shown per page.

Optional attributes

  • Name
    limit
    Type
    integer
    Description

    Limit the number of invoices returned.

  • Name
    offset
    Type
    integer
    Description

    Select the page of invoices returned.

Request

GET
/api/v1/invoices
curl -G https://api.urvafreight.com/api/v1/invoices \
  -H "Authorization: Bearer {token}" \
  -d limit=200 \
  -d offset=0

Response

{
  "status": "success",
  "data": {
    "invoices": [
      {
        "created_at": "Mon, 10 Feb 2025 09:59:35 GMT",
        "end_date": null,
        "invoice_date": null,
        "invoice_id": "56624da4-ec87-4470-8f8d-c6e53ec03703",
        "invoice_url": null,
        "payment_status": "pending",
        "start_date": "Mon, 10 Feb 2025 00:00:00 GMT",
        "status": "open",
        "total": 0,
        "total_saved": "31756.45",
        "total_spent": "635129",
        "user_id": "cus_TwrZZI2vchR6"
      },
    ],
  }
}

Was this page helpful?