Get Invoices

  • GET /api/invoices/<invoice_uuid>/ - Get details about a specific invoice.

    This endpoint retrieves detailed information about a specific invoice, including its items, total cost, and payment status. You'll need the invoice_uuid of the invoice, which you can obtain from the "List Invoices" endpoint (8.1.1).

    Request Example:

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

    Response Example:

    {
    "uuid": "invoice_uuid",
    "year": 2025,
    "month": 3,
    "state": "paid",
    "total": 100.00,
    "items": [
    {
    "name": "Virtual Machine Usage",
    "price": 50.00,
    //... other item details...
    },
    {
    "name": "Object Storage Usage",
    "price": 50.00,
    //... other item details...
    }
    ],
    //... other fields...
    }

    Status Codes:

    • 200 OK: The invoice details were successfully retrieved.
    • 401 Unauthorized: The user making the request is not authorized.
    • 404 Not Found: The specified invoice invoice_uuid does not exist.