API Reference
VAT Return
The VAT return for a period.
3 endpoints· Auth: JWT or API Key
get
/api/v1/console/accounting/vat-return JWT API KeyGet vat-return
- Capability (any)
view_glormanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Query parameters
| From string (date) | First business day; null means the first of the current Baghdad month. |
| To string (date) | Last business day, inclusive; null means today. |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/vat-return" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/accounting/vat-return/entries JWT API KeyGet entries
- Capability (any)
view_glormanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Query parameters
| From string (date) | — |
| To string (date) | — |
| Box string | output_sales | output_z_reports | output_invoices | input_purchases | adjustments; null for all. |
| Page integer (int32) | — |
| PerPage integer (int32) | — |
| Search string | Free-text filter. Its meaning is per-resource and documented on the endpoint. |
| Skip integer (int32) | Rows to skip, derived — never sent by the caller on this surface. |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/vat-return/entries" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/accounting/vat-return/export JWT API KeyGet export
- Capability (any)
view_glormanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Query parameters
| From string (date) | — |
| To string (date) | — |
| Format string | csv (default) | xlsx | pdf |
| Lang string | — |
| Digits string | — |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/vat-return/export" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu