GET
/
sales_invoices
curl --request GET \
  --url https://api.zivio.net/api/v3/sales_invoices \
  --header 'X-API-Key: <api-key>' \
  --header 'zivio-tenant-id: <api-key>'
{
  "invoices": [
    {
      "id": "1",
      "status": "draft",
      "job_id": "23",
      "job_summary": "Some text about the project",
      "net_total": "16000.00",
      "tax_total": "2000.00",
      "total": "18000.00",
      "ccy": "GBP",
      "due_on": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "milestone_id": "435",
      "updated_at": "2023-11-07T05:31:56Z",
      "approved_at": "2023-11-07T05:31:56Z",
      "approved_by": {
        "id": "7158",
        "first_name": "Jack",
        "last_name": "Jones",
        "email": "jack_jones@example.com",
        "org_name": "Organisation Ltd",
        "org_id": "567",
        "business_unit": "Public Private Partnerships",
        "division": "Infastructure",
        "department": "Bridges",
        "vetting_status": "PASSED",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "custom_fields": {
          "key": "value"
        },
        "has_oversight": "<string>"
      },
      "client_org": {
        "id": "7158",
        "name": "Company Ltd",
        "is_external_client": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      },
      "client": {
        "id": "7158",
        "first_name": "Jack",
        "last_name": "Jones",
        "email": "jack_jones@example.com",
        "org_name": "Organisation Ltd",
        "org_id": "567",
        "business_unit": "Public Private Partnerships",
        "division": "Infastructure",
        "department": "Bridge Building",
        "vetting_status": "PASSED",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "custom_fields": {
          "key": "value"
        },
        "has_oversight": "<string>"
      },
      "supplier": {
        "id": "77",
        "name": "Company Inc",
        "email": "jack_jones@companyinc.com",
        "vetting_status": "PASSED",
        "tax_number": "9876543234",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    }
  ]
}

Authorizations

X-API-Key
string
header
required
zivio-tenant-id
string
header
required

Query Parameters

status
string

Filter by a status, [draft, unpaid, paid, level_1_approved, approved, pending, rejected]

created
string

Date range [YYYY-MM-DD+TO+YYYY-MM-DD] to search based on created timestamp for object.

updated
string

Date range [YYYY-MM-DD+TO+YYYY-MM-DD] to search based on updated timestamp for object.

approved
string

Date range [YYYY-MM-DD+TO+YYYY-MM-DD] to search based on updated timestamp for object.

due_on
string

Date range [YYYY-MM-DD+TO+YYYY-MM-DD] to search based on updated timestamp for object.

sort
string

Results are sorted by created desc as default. Ordering may be specified, available options are ['approved', 'created', 'updated'], which can be combined in a comma separated list, e.g. approved:desc,updated:desc,created:asc

limit
integer

Number of results returned per request

page
integer

Paginate results when number of results exceeds limit

Response

200
*/*
ok
invoices
object[]