Entur Developer
Partner
REST
Invoices

CreditCheckResponse

Result of a credit check for a company
organisationNumber
​string · required

Organisation number of the company

Example: 817352812
companyName
​string · required

Registered name of the company

Example: MONOZUKI AS
approved
​boolean · required

True 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.

currency
​string · required

ISO 4217 currency code for the amounts

Example: NOK
availableLimit
​string · pattern: ^-?[0-9]+\.[0-9]{2}$ · required

Remaining credit for invoice purchases, in currency

Example: 487160.62
perOrderLimit
​string · pattern: ^-?[0-9]+\.[0-9]{2}$ · required

Maximum amount for a single order

Example: 487160.62
declineReasons
​string[]

Why 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.

Example: ["TOO_HIGH_RISK"]

ConsolidatedInvoiceRequest

Request to consolidate several B2B invoice orders into one invoice
invoiceIds
​integer[] · minItems: 1 · required

IDs of the B2B invoice orders to include, as returned when the orders were created. Each ID must appear only once.

Example: [900001,900002,900003]
reference
​string

Optional merchant reference, passed on to the invoice provider

Example: PROJECT-2026-10

ConsolidatedInvoiceResponse

The created consolidated invoice
consolidatedInvoiceId
​integer · int64 · required

Entur's ID of the consolidated invoice

Example: 900100

B2bInvoiceRequest

Request to create a B2B invoice
orderId
​string · required

The Entur order ID for which to create the invoice

Example: CPPT96C8
redirectUrl
​string · required

The URL the buyer is redirected to after completing verification with the invoice provider

Example: https://partner-app.example.com/payment/complete
paymentId
​integer · int64 · required

The payment ID associated with this invoice

Example: 436801
transactionId
​integer · int64 · required

The transaction ID from payment-service connected to this invoice. The transaction must have payment type TWO_B2B or TWO_B2B_CONSOLIDATED.

Example: 123123321
organisationNumber
​string · pattern: ^[89][0-9]{8}$ · required

Norwegian 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.

Example: 817352812
​BuyerInfo · required

Contact information for the buyer

BuyerInfo

Contact information for the buyer
firstName
​string · required

The buyer's first name

Example: Ola
lastName
​string · required

The buyer's last name

Example: Nordmann
email
​string · required

The buyer's email address

Example: ola.nordmann@acme.org
phoneNumber
​string · required

The buyer's phone number

Example: +4749999999
department
​string

The buyer's department. If provided, it will appear on the invoice.

Example: Sales Dpt
project
​string

The project the purchase relates to. If provided, it will appear on the invoice.

Example: Some project
reference
​string · maxLength: 140

Merchant reference for the purchase, e.g. a purchase order number. If provided, it will appear on the invoice.

Example: PO-12345

B2bInvoiceCreateResponse

The created B2B invoice
paymentUrl
​string · required

URL the buyer must navigate to in order to verify the invoice purchase

Example: https://checkout.two.inc/mi/order/dLBPjwCr6UTf5nS9setTSv40UqSjDsE
invoiceId
​integer · int64 · required

Entur's internal ID of the created invoice

Example: 900001

ApiError

title
​string · required

A short, human-readable summary of the problem type.

timestamp
​string · date-time · required
status
​integer · int32 · required
error
​string · required
exception
​string · required
message
​string · required
path
​string · required
detail
​string

A human-readable explanation specific to this occurrence of the problem.

errors
​string[]

Validation errors, if any.

B2bInvoiceLine

A product line on the invoice
id
​integer · int64 · required

Id of the invoice line. Credit lines get their own id.

Example: 212345
orderLineId
​string · required

Id of the order line the product belongs to

Example: 83c87fa0-062a-471a-a840-6296717edefc
productDescription
​string · required

Description of the purchased product

Example: Vy Ordinær Stavanger stasjon - Bergen stasjon
quantity
​integer · int32 · required

Quantity purchased

Example: 1
amount
​string · required

Amount including VAT, in the invoice currency. Negative for credited amounts.

Example: 899.00
taxAmount
​string · required

VAT included in the amount. Negative for credited amounts.

Example: 96.32
taxRate
​string · required

VAT rate in percent

Example: 12
operation
​string · required

How the line affects the invoice. Current values: CHARGE, CREDIT, ADJUST. New values may be added; clients must accept unknown values.

Example: CHARGE
createdAt
​string · date-time · required

When the line was created

updatedAt
​string · date-time

When the line was last updated

B2bInvoiceFee

A fee on the invoice
orderFeeId
​string · required

Id of the fee on the order

Example: 44c5af69-6ab0-0b5a-8c31-2dc8a78c2abe
description
​string · required

Description of the fee

Example: Fakturagebyr
feeType
​string · required

Type of fee, e.g. INVOICE, CHANGE or REFUNDING

Example: INVOICE
orderLineIds
​string[] · required

Order lines the fee is associated with

Example: ["83c87fa0-062a-471a-a840-6296717edefc"]
amount
​string · required

Amount including VAT, in the invoice currency. Negative for credited amounts.

Example: 49.00
taxAmount
​string · required

VAT included in the amount. Negative for credited amounts.

Example: 9.80
operation
​string · required

How the line affects the invoice. Current values: CHARGE, CREDIT, ADJUST. New values may be added; clients must accept unknown values.

Example: CHARGE
taxRate
​string

VAT rate in percent

Example: 25
currency
​string

Currency in ISO 4217 format

Example: NOK

B2bInvoiceResponse

A B2B invoice order
invoiceId
​integer · int64 · required

Entur's id of the invoice

Example: 900001
orderId
​string · required

The Entur order the invoice belongs to

Example: CPPT96C8
invoiceType
​string · required

TWO_B2B for invoices invoiced on their own, TWO_B2B_CONSOLIDATED for invoices that are invoiced through a consolidated invoice

Example: TWO_B2B
status
​string · required

Status 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.

Example: INVOICED
totalAmount
​string · required

Sum of all lines and fees including VAT, net of credits

Example: 948.00
currency
​string · required

Currency in ISO 4217 format

Example: NOK
​B2bInvoiceLine[] · required
​B2bInvoiceFee[] · required
createdAt
​string · date-time · required

When the invoice was created

consolidatedInvoiceId
​integer · int64

Id 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.

Example: 900100
updatedAt
​string · date-time

When the invoice was last updated

Did you find what you were looking for?