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. |
The internal identifier of the model (i.e. Reference, Code, Name, depends on model). When given 'relationReference' should also be given
The internal identifier of the invoice's relation. Required when 'reference' is given.
The external API identifier of the model.
OK
DirectDebit = 1 BankTransfer = 2 Withdrawal = 3 Cash = 4 iDEAL = 5
The requested concept purchase invoice was not found.