Schemas
CreditCheckResponse
organisationNumberOrganisation number of the company
companyNameRegistered name of the company
approvedTrue if the company is approved for invoice purchases. If approved, verify that the order amount does not exceed either availableLimit or perOrderLimit before creating the order.
currencyISO 4217 currency code for the amounts
availableLimit^-?[0-9]+\.[0-9]{2}$ · requiredRemaining credit for invoice purchases, in currency
perOrderLimit^-?[0-9]+\.[0-9]{2}$ · requiredMaximum amount for a single order
declineReasonsWhy the company was declined. Present only when approved is false, UNDEFINED if no specific reason is given. Values may be added over time, so handle unknown values.
ConsolidatedInvoiceRequest
invoiceIdsIDs of the B2B invoice orders to include, as returned when the orders were created. Each ID must appear only once.
referenceOptional merchant reference, passed on to the invoice provider
ConsolidatedInvoiceResponse
consolidatedInvoiceIdEntur's ID of the consolidated invoice
B2bInvoiceRequest
orderIdThe Entur order ID for which to create the invoice
redirectUrlThe URL the buyer is redirected to after completing verification with the invoice provider
paymentIdThe payment ID associated with this invoice
transactionIdThe transaction ID from payment-service connected to this invoice. The transaction must have payment type TWO_B2B or TWO_B2B_CONSOLIDATED.
organisationNumber^[89][0-9]{8}$ · requiredNorwegian organisation number of the company being invoiced (9 digits, starting with 8 or 9). Company details such as name and address are automatically retrieved from Brønnøysundregistrene by the invoice provider.
Contact information for the buyer
BuyerInfo
firstNameThe buyer's first name
lastNameThe buyer's last name
emailThe buyer's email address
phoneNumberThe buyer's phone number
departmentThe buyer's department. If provided, it will appear on the invoice.
projectThe project the purchase relates to. If provided, it will appear on the invoice.
referenceMerchant reference for the purchase, e.g. a purchase order number. If provided, it will appear on the invoice.
B2bInvoiceCreateResponse
paymentUrlURL the buyer must navigate to in order to verify the invoice purchase
invoiceIdEntur's internal ID of the created invoice
ApiError
titleA short, human-readable summary of the problem type.
timestampstatuserrorexceptionmessagepathdetailA human-readable explanation specific to this occurrence of the problem.
errorsValidation errors, if any.
B2bInvoiceLine
idId of the invoice line. Credit lines get their own id.
orderLineIdId of the order line the product belongs to
productDescriptionDescription of the purchased product
quantityQuantity purchased
amountAmount including VAT, in the invoice currency. Negative for credited amounts.
taxAmountVAT included in the amount. Negative for credited amounts.
taxRateVAT rate in percent
operationHow the line affects the invoice. Current values: CHARGE, CREDIT, ADJUST. New values may be added; clients must accept unknown values.
createdAtWhen the line was created
updatedAtWhen the line was last updated
B2bInvoiceFee
orderFeeIdId of the fee on the order
descriptionDescription of the fee
feeTypeType of fee, e.g. INVOICE, CHANGE or REFUNDING
orderLineIdsOrder lines the fee is associated with
amountAmount including VAT, in the invoice currency. Negative for credited amounts.
taxAmountVAT included in the amount. Negative for credited amounts.
operationHow the line affects the invoice. Current values: CHARGE, CREDIT, ADJUST. New values may be added; clients must accept unknown values.
taxRateVAT rate in percent
currencyCurrency in ISO 4217 format
B2bInvoiceResponse
invoiceIdEntur's id of the invoice
orderIdThe Entur order the invoice belongs to
invoiceTypeTWO_B2B for invoices invoiced on their own, TWO_B2B_CONSOLIDATED for invoices that are invoiced through a consolidated invoice
statusStatus of the invoice. Current values:
- PENDING: created, but not yet invoiced
- INVOICED: invoiced to the buyer
- AWAITING_CONSOLIDATION: ready to be included in a consolidated invoice
- CONSOLIDATED: invoiced through a consolidated invoice, see consolidatedInvoiceId
- PARTIALLY_CREDITED: part of the invoice has been credited
- CREDITED: the whole invoice has been credited
New values may be added; clients must accept unknown values. Payment status is not included.
totalAmountSum of all lines and fees including VAT, net of credits
currencyCurrency in ISO 4217 format
createdAtWhen the invoice was created
consolidatedInvoiceIdId of the consolidated invoice this invoice is part of. Set when the invoice is invoiced through a consolidated invoice, and remains set if the invoice is later credited.
updatedAtWhen the invoice was last updated