Get invoice using specific key.

Request Information

URI Parameters :

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters :

None.

Response Information

Resource Description :

invoice_view
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier
internal_number

Internal number to identify the invoice

string
company_id

Foreign key to company, identifies the company of the invoice

globally unique identifier
company_code

Company code of the invoice

string
company_name

Company name of the invoice

string
company_email

Company email of the invoice

string
company_phone

Company phone of the invoice

string
date_create

Invoice creation date in utc

date
memo

Memo field for invoice

string
description

Decription field for invoice

string
invoice_type

Invoice type, possible values “ContractGenerated“ and “WorkOrderApproval“

string
source_type

Source of invoice, refers to the type of the object from which invoice is derived

string
source_id_in_table

Key of the object from which the invoice is derived

globally unique identifier
total_lines

Total amount of lines linked to the invoice

integer
total_amount

Total value of items in lines linked to the invoice

decimal number
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date
invoice_details

Details of invoice

Collection of invoice_details_view

Response Formats

application/json, text/json

Sample:
{
  "id": "735700f6-8cb8-4bac-9ae3-51d4ae5b24e5",
  "internal_number": "sample string 2",
  "company_id": "604863d3-59c0-4731-bef7-a45c505aa506",
  "company_code": "sample string 4",
  "company_name": "sample string 5",
  "company_email": "sample string 6",
  "company_phone": "sample string 7",
  "date_create": "2022-12-02T20:29:35.6858472+01:00",
  "memo": "sample string 9",
  "description": "sample string 10",
  "invoice_type": "sample string 11",
  "source_type": "sample string 12",
  "source_id_in_table": "fa2a16fa-edfa-4d9d-a177-dbd38c422cb0",
  "total_lines": 14,
  "total_amount": 15.0,
  "modified_dateutc": "2022-12-02T20:29:35.6858472+01:00",
  "invoice_details": [
    {
      "id": "0e59e5f7-bbbe-4de7-b59d-2bb5d07e9c16",
      "invoice_id": "79e5ede7-740a-474e-96f6-20eb69f9b063",
      "article_id": "441a41bd-e6e9-45ad-9d7b-af39afdcb5b9",
      "article_name": "sample string 4",
      "article_description": "sample string 5",
      "article_code": "sample string 6",
      "line_num": 7,
      "quantity_decimal": 9.0,
      "article_price": 10.0,
      "discount": 11.0,
      "vat_rate": 12.0,
      "vat_value": 13.0,
      "total_vat": 14.0,
      "total_line": 15.0,
      "total_line_with_vat": 16.0,
      "modified_dateutc": "2022-12-02T20:29:35.6858472+01:00"
    },
    {
      "id": "0e59e5f7-bbbe-4de7-b59d-2bb5d07e9c16",
      "invoice_id": "79e5ede7-740a-474e-96f6-20eb69f9b063",
      "article_id": "441a41bd-e6e9-45ad-9d7b-af39afdcb5b9",
      "article_name": "sample string 4",
      "article_description": "sample string 5",
      "article_code": "sample string 6",
      "line_num": 7,
      "quantity_decimal": 9.0,
      "article_price": 10.0,
      "discount": 11.0,
      "vat_rate": 12.0,
      "vat_value": 13.0,
      "total_vat": 14.0,
      "total_line": 15.0,
      "total_line_with_vat": 16.0,
      "modified_dateutc": "2022-12-02T20:29:35.6858472+01:00"
    }
  ]
}