API Reference

Tax Codes

6 endpoints· Auth: JWT or API Key
get/api/v1/console/accounting/tax-codes JWT API Key

List the catalogue

Capability (any)
view_glormanage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Query parameters

Kind
string
`vat` or `withholding`. Optional.
AppliesTo
TaxAppliesTo
`sales`, `purchases` or `both`. Optional.
Active
boolean
—
IncludeDeleted
boolean
—
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/tax-codes" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/tax-codes JWT API Key

Create a tax code

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "code": "string",
  "name": "string",
  "nameAr": "string",
  "kind": "string",
  "ratePermille": 0,
  "appliesTo": "Sales",
  "recoverable": false
}
code
string
Upper-cased on save, then validated against `^[A-Z0-9_-]{1,32}$`.
name
string
—
nameAr
string
—
kind
string
`vat` or `withholding`. Withholding at source is Iraq's live regime; VAT ships staged behind `VAT_ENABLED` because no sector rate is confirmed (BR-093).
ratePermille
integer (int32)
Integer per-mille in [0, 1000].
appliesTo
TaxAppliesTo
—
recoverable
boolean
Whether purchase VAT under this code may be reclaimed (comeback r2-acc5): recoverable VAT is input VAT on the return, non-recoverable VAT is a cost (6130). Null keeps the current value (new codes: recoverable).

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/tax-codes" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "code": "string",
  "name": "string",
  "nameAr": "string",
  "kind": "string",
  "ratePermille": 0,
  "appliesTo": "Sales",
  "recoverable": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/accounting/tax-codes/{id} JWT API Key

One tax code

Capability (any)
view_glormanage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/tax-codes/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/accounting/tax-codes/{id} JWT API Key

Edit name, rate and applicability

Code and kind are frozen.

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "name": "string",
  "nameAr": "string",
  "ratePermille": 0,
  "appliesTo": "Sales",
  "recoverable": false
}
name
string
—
nameAr
string
—
ratePermille
integer (int32)
—
appliesTo
TaxAppliesTo
—
recoverable
boolean
Whether purchase VAT under this code may be reclaimed (comeback r2-acc5): recoverable VAT is input VAT on the return, non-recoverable VAT is a cost (6130). Null keeps the current value (new codes: recoverable).

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/accounting/tax-codes/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "nameAr": "string",
  "ratePermille": 0,
  "appliesTo": "Sales",
  "recoverable": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/accounting/tax-codes/{id} JWT API Key

Tombstone a tax code

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/accounting/tax-codes/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/tax-codes/{id}/active JWT API Key

Deactivate or reactivate

Deactivation governs what may newly be selected and never touches an amount already captured on a line — retiring the tax a document was correctly charged under would rewrite the document.

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "active": false,
  "reason": "string"
}
active
boolean
—
reason
string
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/tax-codes/{id}/active" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "active": false,
  "reason": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu