List Invoices

This section provides API endpoints for accessing and managing your cost-related information, such as invoices.

  • GET /api/invoices/ - List invoices.

    This endpoint retrieves a list of invoices for your account. You can filter the invoices by various criteria, such as the project or the date range.

    Request Example:

    GET [https://api.wayscloud.services/api/invoices/](https://www.google.com/search?q=https://api.wayscloud.services/api/invoices/)
    Authorization: Token <your_api_token>

    Optional Query Parameters:

    Parameter Description
    project Filter invoices by project UUID.
    year Filter invoices by year.
    month Filter invoices by month.
    state Filter invoices by state (e.g., "pending", "paid").

    Response Example:

    {
    "next": null,
    "previous": null,
    "count": 2,
    "results": [
    {
    "uuid": "invoice_uuid_1",
    "year": 2025,
    "month": 3,
    "state": "paid",
    "total": 100.00,
    //... other fields...
    },
    {
    "uuid": "invoice_uuid_2",
    "year": 2025,
    "month": 4,
    "state": "pending",
    "total": 150.00,
    //... other fields...
    }
    ]
    }

    Status Codes:

    • 200 OK: The list of invoices was successfully retrieved.
    • 401 Unauthorized: The user making the request is not authorized