Get a sales invoice service

Prev Next
Get
/api/v1/invoices/salesinvoiceservices

Get an existing sales invoice service.

Description

This endpoint retrieves a specific sales invoice service by utilizing the reference of this invoice. Sales invoice services are simplified sales invoices and therefore contain less properties than the normal sales invoices. 

If the user does not know the correct reference, the filter can be used to retrieve all available references.

Use Case

The user wants to retrieve an individual sales invoice service by specifying its reference. To obtain the reference of a particular sales invoice service, the user can first use the POST Get sales invoices services filtered and paged endpoint.

Request fields

The request contains the following fields:

FieldDescription
referenceThe unique identifier for this sales invoice service within Bloxs. This is unique (per client specific environment) for all sales invoice services. This identifier is generated by the Bloxs system.

Response fields

The 200 response contains the fields in the table below. For the GET operation it gives a up-to-date insight in the data that is currently registered in Bloxs.

FieldDescription
referenceThe unique identifier for this sales invoice service within Bloxs. This is unique (per client specific environment) for all sales invoice services. This identifier is generated by the Bloxs system.
externalIdentifier
The unique identifier within the system of the requesting party. This identifier is not generated by the Bloxs system.
salesContractReference

The unique identifier for the related sales contract within Bloxs. This identifier is generated by the Bloxs system.

ownerReference

The unique identifier for the related owner within Bloxs. This identifier is generated by the Bloxs system.

relationReferenceThe unique identifier for the related relation (not being the owner) within Bloxs. This identifier is generated by the Bloxs system.
supplyDateThe actual supply date of the service. This date can differ from the invoice date.
paymentMethod

The method by which the invoice is expected to be paid. The following options are availabe:

1 = Direct debit

2 = Bank transfer

workflowState

Indicates the status of sales invoice service. Each number represents a status, which is described below:

1 = Draft

2 = OnHold

3 = Cancelled

4 = ApprovalWorkflow

7 = Final

9 = Disapproved

10 = OwnerApprovalWorkflow

11 = DisapprovedByOwner

totalAmountExclTotal amount excluding VAT.
totalAmountVATTotal VAT amount.
totalAmountInclTotal amount including VAT.
lineIndexThe order in which the line items are portrayed.
descriptionThe default description of the invoice service line. It can provide extra details in addition to the name of the invoice service line.
numberOfItemsThe number of items associated with this specific invoice service item. If for example the service is 'office rental per 1 hour', this value should contain '1'
amountExclPerItemThe amount excluding VAT per item. Bloxs uses this field together with numberOfItems to calculate the amountExcl, amountVAT & amountIncl.
amountExclthe amount excluding VAT of this specific service item.
amountVATthe amount excluding VAT of this specific service item.
amountInclthe amount excluding VAT of this specific service item.
serviceItemName

Includes the name of the sales service line item. An example would be 'Office space rental 1 hour'.

ledgerAccountCodeThe ledger account code of this specific service item.
realEstateObjectReferenceThe unique identifier for the real estate object related to the service item within Bloxs. This identifier is generated by the Bloxs system.
Security
HTTP
Type Bearer

Please enter a valid token

Query parameters
reference
stringRequired

The internal identifier of the model (i.e. Reference, Code, Name, depends on model).

Responses
200

OK

Expand All
object
reference
string
Min length0
Max length100
externalIdentifier
string | null
salesContractReference
string | null
Min length0
Max length100
ownerReference
string
Min length0
Max length100
relationReference
string
Min length0
Max length100
supplyDate
string (date)
paymentMethod
integer (int32)
Valid values[ 1, 2 ]
Min length0
Max length256
workflowState
integer (int32)
Valid values[ 1, 2, 3, 4, 7, 9, 10, 11 ]
totalAmountExcl
number (double)
totalAmountVAT
number (double)
totalAmountIncl
number (double)
lines
Array of object (SalesInvoiceServiceLineAPIDetailModel) | null
object
lineIndex
integer (int32)
description
string | null
numberOfItems
integer (int32)
amountExclPerItem
number (double) | null
amountExcl
number (double) | null
amountVAT
number (double) | null
amountIncl
number (double) | null
serviceItemName
string | null
realEstateObjectReference
string | null
404

The requested sales invoice service was not found.