Payments
PaymentsAPI(client: DogeAPIClient, api: DogeAPI)
¶
Access payments-related endpoints (/payments/*).
client : DogeAPIClient HTTP client instance. api : DogeAPI Shared config provider for fetch_all, output_pydantic, etc.
| METHOD | DESCRIPTION |
|---|---|
get_payments |
Retrieve payment records made by government agencies. |
Source code in src/pydoge_api/endpoints/payments.py
get_payments(*, sort_by: Optional[str] = None, sort_order: Optional[str] = None, filter: Optional[str] = None, filter_value: Optional[str] = None, page: int = 1, per_page: int = 100) -> Union[PaymentResponse, dict, httpx.Response]
¶
Retrieve payment records made by government agencies.
| PARAMETER | DESCRIPTION |
|---|---|
|
Field to sort by. Options include 'amount' or 'date'.
TYPE:
|
|
Sort direction. One of 'asc' or 'desc'.
TYPE:
|
|
Filter key. One of 'agency_name', 'date', or 'org_name'.
TYPE:
|
|
The value to filter by.
TYPE:
|
|
Starting page number.
TYPE:
|
|
Number of results per page.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
PaymentResponse or dict or Response
|
Pydantic model if |