# List invoices `GET /api/v1/invoices` Lists annual certifications by payment direction, year, or subject. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Invoices → Read**. ## Query parameters - `payment_type` (string) — Filter by incoming or outgoing payments. - `fiscal_year` (integer) — Filter by fiscal year. - `subject_type` (string) — Filter by athlete or staff. - `subject_id` (integer) — Filter by subject ID. - `athlete_id` (integer) — Filter by athlete ID. Takes precedence over subject_type and subject_id. - `context` (string) — Use athlete_detail or athlete_details to return only the ID, fiscal year, invoice number, payment type, and amount. - `include_readable` (integer) — Use 1 to include formatted dates and payer names in readable. Alias expand_readable. Amounts remain in minor units. - `expand_subject` (integer) — Use 1 to include the subject object. - `q` (string) — Search invoice code or notes. - `length` (integer) — Number of records to return. - `start` (integer) — Zero-based offset. - `draw` (string) — Optional request marker echoed in the response. - `sort` (string) — Sort by id, fiscal_year, payment_type, invoice_number, invoice_code, amount, tsc, tsu, subject_name, payer_parent1_name, or payer_parent2_name. Prefix the field name with a minus sign for descending order. - `order` (string) — Direction for unprefixed sort fields. Use asc or desc. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --get \ --url "https://api.asdincloud.com/api/v1/invoices" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --data-urlencode "fiscal_year=2025" \ --data-urlencode "payment_type=incoming" \ --data-urlencode "length=25" ``` ## Response **200 OK** Returns matching certifications in `data`, with counts before and after text search. Example with fictional data and selected fields. ```json { "status": "success", "data": [ { "id": 44, "fiscal_year": 2025, "payment_type": "incoming", "subject_type": "athlete", "subject_id": 42, "currency": "EUR", "amount": 18000, "invoice_number": 4, "invoice_code": "incoming-2025-000004", "payer_parent1_id": null, "amount_parent1": null, "payer_parent2_id": null, "amount_parent2": null, "payment_count": 3, "certification_parent_mode": "athlete", "template_id": 27, "notes": null, "athlete_fullname": "EXAMPLE ALEX" } ], "records_total": 1, "records_filtered": 1, "draw": null } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission.