API Docs / Operations / Returns / List Returns

List Returns

GET /tenants/{tenant}/returns

Lists the tenant's monthly returns, latest tax period first by default. Filter by the year the tax month ends in and by status (Open, Submitted, Accepted, Error); sort by taxPeriod, status, invoiceCount, contactCount or deductions.

Parameters

NameTypeDescription
tenant* path string

The tenant code (the organisation's URL stub)

The tenant code (the organisation's URL stub)

status query enum

Open Submitted Accepted Error

Open Submitted Accepted Error

offset query integer (int32)

Number of records to skip (default: 0). Use with limit for pagination.

Number of records to skip (default: 0). Use with limit for pagination.

limit query integer (int32)

Maximum number of records to return (default: 10, max: 50)

Maximum number of records to return (default: 10, max: 50)

sortBy query enum

Field to sort by. Valid values depend on the resource.

TaxPeriod Status InvoiceCount ContactCount Deductions

Field to sort by. Valid values depend on the resource.

TaxPeriod Status InvoiceCount ContactCount Deductions

sortDesc query boolean

Sort in descending order (true) or ascending order (false, default)

Sort in descending order (true) or ascending order (false, default)

year query integer

Only returns for tax months ending in this calendar year. Omitted: every year.

Only returns for tax months ending in this calendar year. Omitted: every year.

Responses

400 Bad Request
application/problem+json
401 Unauthorized – Invalid or missing API key
403 Forbidden
application/problem+json
404 Not Found
application/problem+json