Get a concept purchase invoice

Prev Next
Get
/api/v1/invoices/conceptpurchaseinvoices

Get an existing concept purchase invoice.

Get a concept purchase invoice

This endpoint retrieves an existing concept purchase invoice, including its header details, financial and service charge periods, and invoice lines.

Developers call it to check the current state and content of a concept purchase invoice previously registered through the create endpoint, for example to verify how it was processed before it moves through the approval workflow to become a final purchase invoice.

The invoice is looked up either by its reference together with the relation reference of the supplier, or by its external identifier.

This endpoint only returns concept purchase invoices created by the API user making the request. Concept purchase invoices created by other users or other API users in the same Bloxs environment are not returned, even if they exist and are otherwise accessible to that environment. This restriction is intentional. For example, when a supplier uses this endpoint to retrieve its own concept purchase invoices, it cannot see or retrieve concept purchase invoices created by other suppliers or internal users in the same environment.


Request Fields

Field

Type

Required

Description

reference

String (max 100 characters)

Optional

Internal identifier of the concept purchase invoice to retrieve, assigned by the caller on creation. When reference is supplied, relationReference must also be supplied.

relationReference

String (max 100 characters)

Optional

Reference to the relation, the supplier the invoice was received from. Required when reference is supplied, used together with reference to identify the invoice.

externalIdentifier

String (max 100 characters)

Optional

External identifier of the invoice, as supplied by the caller on creation. Can be used instead of reference and relationReference to look up the invoice.


Response Fields

Field

Type

Required

Description

reference

String (max 100 characters)

Required

Internal identifier of the concept purchase invoice.

externalIdentifier

String (max 100 characters)

Optional

External identifier of the invoice, as supplied by the caller on creation.

ownerReference

String (max 100 characters)

Required

Reference to the owner, the administration the invoice is booked against.

relationReference

String (max 100 characters)

Required

Reference to the relation, the supplier the invoice was received from.

subject

String (max 512 characters)

Optional

Subject describing the invoice as a whole.

invoiceDate

Date (ISO 8601, format YYYY-MM-DD)

Optional

Date on the invoice. Read only in the response.

expiryDate

Date (ISO 8601, format YYYY-MM-DD)

Optional

Date by which the invoice is expected to be paid or settled. Read only in the response.

paymentTermName

String

Optional

Name of the payment term applied to the invoice.

paymentMethod

Integer (enum)

Optional

How the invoice is settled. Allowed values: 1 = DirectDebit, 2 = BankTransfer, 3 = Withdrawal, 4 = Cash, 5 = iDEAL.

totalAmountExcl

Decimal

Optional

Total invoice amount excluding VAT, in major currency units. The sum of amountExcl across all lines.

totalAmountVAT

Decimal

Optional

Total VAT amount for the invoice, in major currency units. The sum of amountVAT across all lines.

totalAmountIncl

Decimal

Optional

Total invoice amount including VAT, in major currency units. Equals totalAmountExcl plus totalAmountVAT.

fromBankAccountIban

String (max 34 characters)

Optional

IBAN of the account the payment is made from.

toBankAccountIban

String (max 34 characters)

Optional

IBAN of the account the payment is made to, typically the supplier's account.

verifyInvoiceTotalAmount

Decimal

Optional

Total amount that was supplied on creation, used to validate against the calculated invoice total.

financialPeriodModel.financialYear

Integer

Optional

Financial year the invoice is booked in.

financialPeriodModel.financialIndex

Integer

Optional

Financial period index within the financial year the invoice is booked in.

financialPeriodModel.amountOfTransitoricPeriods

Integer

Optional

Number of transitoric periods the invoice amount is spread over.

serviceCostsPeriodModel.financialYear

Integer

Optional

Financial year used for service charge allocation of this invoice.

serviceCostsPeriodModel.financialIndex

Integer

Optional

Service charge period index within the service charge financial year.

serviceCostsPeriodModel.amountOfTransitoricPeriods

Integer

Optional

Number of transitoric periods the service charge allocation is spread over.

lines

Array of objects

Optional

The invoice lines that build up the invoice totals.

lines[].lineIndex

Integer

Optional

Sequence number of the line within the invoice.

lines[].description

String (max 512 characters)

Optional

Description of the line item.

lines[].ledgerAccountCode

String (max 12 characters)

Optional

Code of the ledger account the line amount is booked to.

lines[].realEstateObjectReference

String (max 100 characters)

Optional

Reference to the real estate object the line amount is allocated to.

lines[].taxRateCode

String (max 100 characters)

Optional

Code of the tax rate applied to the line.

lines[].amountExcl

Decimal

Optional

Line amount excluding VAT, the net amount, in major currency units.

lines[].amountVAT

Decimal

Optional

VAT amount for the line. Holds an amount, not a rate.

lines[].amountIncl

Decimal

Optional

Line amount including VAT, the gross amount, in major currency units. Equals amountExcl plus amountVAT.

lines[].useAlternativeFinancialPeriod

Boolean

Optional

Indicates whether alternateFinancialPeriodModel holds the financial year and index applied to this line, as opposed to the invoice level financialPeriodModel.financialYear and financialPeriodModel.financialIndex. In the current implementation this value is always true, so alternateFinancialPeriodModel always holds the financial year and index applied to the line. This does not mean the line uses a different financial period than the invoice. The values in alternateFinancialPeriodModel can be equal to or different from financialPeriodModel.financialYear and financialPeriodModel.financialIndex at invoice level.

lines[].alternateFinancialPeriodModel.financialYear

Integer

Optional

Financial year applied to this line. Always populated, since useAlternativeFinancialPeriod is always true in the current implementation. Can be equal to or different from financialPeriodModel.financialYear at invoice level.

lines[].alternateFinancialPeriodModel.financialIndex

Integer

Optional

Financial period index applied to this line. Always populated, since useAlternativeFinancialPeriod is always true in the current implementation. Can be equal to or different from financialPeriodModel.financialIndex at invoice level.

lines[].alternateFinancialPeriodModel.amountOfTransitoricPeriods

Integer

Optional

Number of transitoric periods used to spread this line's amount over multiple financial periods.

lines[].useAlternativeServiceCostsPeriod

Boolean

Optional

Indicates whether alternateServiceCostsPeriodModel holds the service charge financial year and index applied to this line, as opposed to the invoice level serviceCostsPeriodModel.financialYear and serviceCostsPeriodModel.financialIndex. In the current implementation this value is always true, so alternateServiceCostsPeriodModel always holds the service charge financial year and index applied to the line. This does not mean the line uses a different service charge period than the invoice. The values in alternateServiceCostsPeriodModel can be equal to or different from serviceCostsPeriodModel.financialYear and serviceCostsPeriodModel.financialIndex at invoice level.

lines[].alternateServiceCostsPeriodModel.financialYear

Integer

Optional

Service charge financial year applied to this line. Always populated, since useAlternativeServiceCostsPeriod is always true in the current implementation. Can be equal to or different from serviceCostsPeriodModel.financialYear at invoice level.

lines[].alternateServiceCostsPeriodModel.financialIndex

Integer

Optional

Service charge period index applied to this line. Always populated, since useAlternativeServiceCostsPeriod is always true in the current implementation. Can be equal to or different from serviceCostsPeriodModel.financialIndex at invoice level.

lines[].alternateServiceCostsPeriodModel.amountOfTransitoricPeriods

Integer

Optional

Number of transitoric periods for this line's service charge allocation when useAlternativeServiceCostsPeriod is true.

Security
Query parameters
reference
string

The internal identifier of the model (i.e. Reference, Code, Name, depends on model). When given 'relationReference' should also be given

relationReference
string

The internal identifier of the invoice's relation. Required when 'reference' is given.

Min length0
Max length100
externalIdentifier
string

The external API identifier of the model.

Responses
200

OK

Expand All
object
reference
string
Min length0
Max length100
externalIdentifier
string | null
Min length0
Max length100
ownerReference
string
Min length0
Max length100
relationReference
string
Min length0
Max length100
subject
string | null
Min length0
Max length512
invoiceDate
string (date) | null
expiryDate
string (date) | null
paymentTermName
string | null
paymentMethod
integer (int32) | null

DirectDebit = 1 BankTransfer = 2 Withdrawal = 3 Cash = 4 iDEAL = 5

totalAmountExcl
number (double) | null
totalAmountVAT
number (double) | null
totalAmountIncl
number (double) | null
fromBankAccountIban
string | null
Min length0
Max length34
toBankAccountIban
string | null
Min length0
Max length34
verifyInvoiceTotalAmount
number (double) | null
financialPeriodModel
object (InvoiceBookingPeriodInfoAPIModel)
financialYear
integer (int32)
financialIndex
integer (int32)
amountOfTransitoricPeriods
integer (int32) | null
serviceCostsPeriodModel
object (InvoiceBookingPeriodInfoAPIModel)
financialYear
integer (int32)
financialIndex
integer (int32)
amountOfTransitoricPeriods
integer (int32) | null
lines
Array of object (ConceptPurchaseInvoiceLineAPIModel) | null
object
lineIndex
integer (int32)
description
string | null
Min length0
Max length512
ledgerAccountCode
string | null
Min length0
Max length12
realEstateObjectReference
string | null
Min length0
Max length100
taxRateCode
string | null
Min length0
Max length100
amountExcl
number (double) | null
amountVAT
number (double) | null
amountIncl
number (double) | null
useAlternativeFinancialPeriod
boolean
alternateFinancialPeriodModel
object (InvoiceBookingPeriodInfoAPIModel)
financialYear
integer (int32)
financialIndex
integer (int32)
amountOfTransitoricPeriods
integer (int32) | null
useAlternativeServiceCostsPeriod
boolean
alternateServiceCostsPeriodModel
object (InvoiceBookingPeriodInfoAPIModel)
financialYear
integer (int32)
financialIndex
integer (int32)
amountOfTransitoricPeriods
integer (int32) | null
404

The requested concept purchase invoice was not found.