Schemas
Operation
A transaction has a list of operations performed on a transaction. These operations can have one of the values in this enum.
PaymentType
The actual type of payment.
FixedPricing
agreementTypeThe pricing model type.
amountThe fixed amount to charge per interval, in minor units, e.g: øre.
currencyISO 4217 currency code.
Defines the billing interval for a payment agreement.
PageOfCredit
Items on a specific page
totalItemsTotal number of items
totalPagesTotal number of pages available to browse
PaymentError
pathThe url path that was accessed when the error happenened.
errorThe error that occurred.
statusThe http status of the response.
messageA message detailing the error.
exceptionWhat exception caused the error.
timestampWhen the error occurred
errorReasonIn some cases, the client is required to act upon getting a PaymentError. When action is required from the client, this field will be populated. Valid values: SOFT_DECLINE, REFUSED_BY_ISSUER, RESOURCE_BUSY.
ScaExemption
The type of SCA (secure customer authentication) Exemption for a transaction. Defaults to NO_EXEMPTION. Other available values are: LOW_VALUE.
CreditRequest
orderIdID of the order this credit belongs to.
orderVersionVersion of the order this credit belongs to.
totalCreditAmount^[1-9][0-9]{0,17}\.[… · requiredAmount to credit, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
List of individual transactions to credit.
currency[A-Z]{3}The currency used for this credit. Default value is 'NOK'
settlementIdSupplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.
customerNumberCustomer who owns this credit. This value is only considered for privileged client (internal and partner tenants.
ErrorResponse
codeThe error code. Used in combination with the error source to find more information about the error.
sourceWhere the error originates from.
messageA description of the error that occurred.
PageOfPayment
Items on a specific page
totalItemsTotal number of items
totalPagesTotal number of pages available to browse
CreditResponse
orderIdID of the order this payment belongs to.
creditIdIdentification of this credit resource.
orderVersionVersion of the order this credit belongs to.
totalCreditAmountTotal amount to credit, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
List of individual transactions to credit.
activeIf active is false, credit is considered uneditable. The only way to change this property is through an internal Admin endpoint or the mergePatch endpoint. Editable: true
currencyThe currency used for this credit.
settlementIdSupplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.
customerNumberID of the customer who owns this credit.
organisationIdID of the organisation who created this credit.
InvoiceRequest
invoiceIdId of Invoice. Only set in request for PUT
redirectUrl^(https?://).{0,1024…Location to be redirected to from the payment terminal. Required for Collector
languageCodeLanguage code to override terminal language and invoice if possible. Overrides customer preferences. ISO 639-3 format.
externalInvoiceNumberAn external invoice number that is generated outside the sales system. This number is the invoice number on the written invoice, and must be sent to Xledger
customerIdentificationNumberCustomer identification number to identify customer information on electronic banking transactions. Used for penalty fare invoices in Xledger. Has absolutely nothing to do with Entur customers.
PaymentRequest
orderIdId of the order this payment belongs to.
totalAmount^[1-9][0-9]{0,17}\.[… · requiredAmount to pay, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
orderVersionVersion of the order this payment belongs to.
currency[A-Z]{3}3-letter ISO 4217 currency code. Default is NOK.
Information used to create a transaction.
settlementIdSupplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.
customerNumberCustomer who owns this payment. This value is only considered for privileged client (internal and partner tenants.
PaymentTypeFee
name[A-Z]{3}:[^:]+:[^:]+ · requiredName of the fee in NeTEX format identifying a fee.
amount^[1-9][0-9]{0,17}\.[… · requiredTotal amount including taxes
currencyThe currency in 3-letter ISO-4217 standard codes
taxAmountThe total amount of taxes this fee consists of
reasonThe reason for the fee, if applicable.
taxCodeThe tax code for the tax rate, if applicable
taxRateThe tax rate of this fee, if applicable
WalletProvider
Examples of providers are ApplePay and GooglePay. Both of these are supported.
AppClaimRequest
descriptionCustomize the text to be presented to the end-user in the payment app. This often involves some kind of product information.
phoneNumber^([0-9]{8}|\+?[0-9]{…Phone number where the claim should be presented. Accepted formats: 8-digit Norwegian number (country code 47 is added automatically if not provided), MSISDN (digits only, country code included, 10–15 digits), or E.164 (leading +, 10–15 digits). Supported country codes: Norway (47), Denmark (45), Sweden (46), Finland (358).
redirectUrlLocation to be redirected to from the 3rd party landing page/app.
FlexiblePricing
agreementTypeThe pricing model type.
currencyISO 4217 currency code.
GiftCardRequest
giftCardCodeThe code identifying a gift card.
InvoiceResponse
invoiceIdID of the invoice connected to the payment. Used to lookup invoice in the invoice api
paymentIdID of the payment the transaction belongs to. Used with the transactionId to later capture transaction.
transactionIdID of the transaction this terminal belongs to. Used with the paymentId to later capture transaction.
expiryDateIf paymentType is COLLECTOR_B2B: Expiry date for when invoice is no longer payable
publicTokenIf paymentType is COLLECTOR_B2B: Token used in creation of payment iframe
terminalUriIf paymentType is COLLECTOR: Location of the payment terminal, else null
PaymentResponse
orderIdId of the order this payment belongs to.
currency3-letter ISO 4217 currency code. Default is NOK.
createdAtTimestamp for when payment was created.
paymentIdId of payment
totalAmountAmount to pay, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot. Editable: true
orderVersionVersion of the order this payment belongs to.
organisationIdId of the organisation who created this payment.
activeThis is to block any transactions after the corresponding order version is reset. Clients importing transactions need to either cancel or credit each transaction externally, and the credit the transaction directly using the transaction's credit endpoint. To continue using the same order id, the payment has to be reactivated with the correct total amount before any new actions can be made to this payment. Editable: true
updatedAtTimestamp for when payment was last updated.
settlementIdSupplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.
customerNumberID of the customer who owns this payment.
List of all transactions belonging to this payment.
RecurringStatus
Status of this recurring payment
TerminalRequest
redirectUrl^(https?://).{0,1024… · requiredLocation to be redirected to from the payment terminal.
autoSaleIf this flag is set to true, the capture call after a customer returns from the terminal is not needed. The processing starts automatically. This is only compatible with payments done with payment cards.
singlePageIf this flag is set to true, we will attempt to generate a single-page terminal. If false, multi-page terminal might be used.
callbackUrlLocation where notification of payment completion will be sent. If this is not provided, then the client will have to check for completion manually by getting the transaction and checking its status. The callback will be repeated until the server receives an HTTP 202 response.
countryCodeISO 3166-1 Alpha 2 country code used for certain terminals (PayPal, Collector). Used to decide which country store the customer wants to use. Default is 'NO'
storePaymentShould the card be stored for recurring payments. If customer is not logged in, the value of this will be disregarded.
customerNumberCustomer number used with recurring payment creation. This field is optional and will only be considered for certain privileged clients.
transactionTypeSet the type of transaction. Only set this field to MIT_UCOF if you want to create a Merchant Initiated Transaction (MIT) which refers to a card payment started by a merchant without the customer being actively involved. If this value is not set, a payment terminal will be created as normal.
terminalLanguageLanguage used in the payment terminal. Default is 'no_NO'.
TransactionType
Set the type of transaction. Only set this field to MIT_UCOF if you want to create a Merchant Initiated Transaction (MIT) which refers to a card payment started by a merchant without the customer being actively involved. If this value is not set, a payment terminal will be created as normal.
ValidationError
pathThe url path that was accessed when the error happenened.
errorThe error that occurred.
statusThe http status of the response.
messageA message detailing the error.
exceptionWhat exception caused the error.
timestampWhen the error occurred
errorReasonIn some cases, the client is required to act upon getting a PaymentError. When action is required from the client, this field will be populated. Valid values: SOFT_DECLINE, REFUSED_BY_ISSUER, RESOURCE_BUSY.
errorsVariablePricing
agreementTypeThe pricing model type.
amountThe amount to charge per interval, in minor units, e.g: øre.
currencyISO 4217 currency code.
Defines the billing interval for a payment agreement.
suggestedMaxAmountA suggested maximum amount per charge, in minor units.
AgreementPricing
agreementTypeThe pricing model type.
AppClaimResponse
paymentIdID of the payment the transaction belongs to. Used with the transactionId to later capture transaction.
appClaimUrlLocation of the payment terminal.
transactionIdID of the transaction this terminal belongs to. Used with the transactionId to later capture transaction.
AuthorizeRequest
totalAmountAmount to pay, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
CreditMergePatch
totalCreditAmountAmount to credit, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
activeActive is used during activation of credit
List of individual transactions to credit.
PaymentTypeGroup
A PaymentTypeGroup used to override which kind of method to use for reimbursement, instead of using same as used for the payment transaction.This will only take effect if the payment method on the payment transaction allows for overriding.
TerminalLanguage
Language used in the payment terminal. Default is 'no_NO'.
TerminalResponse
terminalUriLocation of the payment terminal.
paymentIdID of the payment the transaction belongs to. Used with the transactionId to later capture transaction.
transactionIdID of the transaction this terminal belongs to. Used with the paymentId to later capture transaction.
recurringPaymentIdID of the recurring payment this terminal belongs to.
AgreementInterval
unitThe time unit for the interval.
countThe number of time units per interval.
AuthorizeResponse
paymentIdID of the payment the transaction belongs to. Used with the transactionId to later capture transaction.
transactionIdID of the transaction this terminal belongs to. Used with the paymentId to later capture transaction.
PaymentMergePatch
totalAmountAmount to pay, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot. Editable: true
activeActive is used during activation of payment
settlementIdId of a settlement used to identify on-site payments i.e. mobile terminals, ticket vending machines and customer service help-desks.
TransactionStatus
Current state of the transaction.
TransactionRequest
amountAmount to pay, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
currency[A-Z]{3}3-letter ISO 4217 currency code. Default is NOK.
isImportImport flag. Selects a special payment method for imports.
paymentTypeThe actual type of payment.
scaExemptionThe type of SCA (secure customer authentication) Exemption for a transaction. Defaults to NO_EXEMPTION. Other available values are: LOW_VALUE.
with3DSecureFlag to choose payment methods with or without 3D Secure. This option is only accessible to privileged clients.
createAgreementIf true, a new FLEXIBLE Vipps agreement is created and the transaction amount becomes the initial charge. The user must approve the agreement before the charge is processed. Use with paymentType VIPPS / paymentTypeGroup MOBILE. Mutually exclusive with paymentAgreementId and recurringPaymentId.
paymentTypeGroupA PaymentTypeGroup used to override which kind of method to use for reimbursement, instead of using same as used for the payment transaction.This will only take effect if the payment method on the payment transaction allows for overriding.
paymentAgreementIdID of the payment agreement to charge against. Used for Vipps recurring agreement payments. Mutually exclusive with recurringPaymentId.
recurringPaymentIdID of the saved payment method to use for this transaction.
TransactionSummary
capturedAmountCaptured amount, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
creditedAmountCredited amount, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
remainingAmountToCreditRemaining amount to credit, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
remainingAmountToCaptureRemaining amount to capture, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
TerminalCountryCode
ISO 3166-1 Alpha 2 country code used for certain terminals (PayPal, Collector). Used to decide which country store the customer wants to use. Default is 'NO'
TransactionResponse
amountAmount to pay, represented in the standard currency unit. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot. Deprecated and will be removed in next version of API. Use summary instead.
statusCurrent state of the transaction.
currency3-letter currency code. (ISO 4217)
createdAtTimestamp for when transaction was first created.
transactionIdID of the specific transaction.
rrnReconciliation reference number used to track a transaction through different economy systems.
Aggregated summary of amounts on a transaction.
updatedAtTimestamp for when transaction was last updated.
cardNumberLast 4 digits in card number (PAN - Personal Account Number)
paymentTypeThe actual type of payment.
Log of each successful operation made on the transaction. Failing operations will not be included.
Extra transaction data from external client. Only relevant for clients using the import flow.
paymentTypeGroupA PaymentTypeGroup used to override which kind of method to use for reimbursement, instead of using same as used for the payment transaction.This will only take effect if the payment method on the payment transaction allows for overriding.
paymentAgreementIdID of the payment agreement associated with this transaction, if any.
recurringPaymentIdReference to the saved payment agreement this transaction will use, if any was specified.
Fee related to a payment method.
PaymentMethodResponse
idUnique identifier for a payment method.
paymentTypeGroupGroup for the payment type. Payment types which are payment cards is in the PAYMENTCARD group.
distributionChannelIdDistribution Channels controls which organisations can sell, refund or inform on available products or salepoints.
clientIdID of the client this payment method belongs to. This ID is the one found in the client's token.
paymentTypeThe actual type of payment.
Current payment configuration set up for psp-client relationship.
Fee related to a payment method.
PaymentWebhookRequest
eventNameThe name of the event that is being sent with the webhook. Currently only support CREDIT-events
A summary of the the different operations done on a transaction.
enturPaymentTransactionIdThe transaction id of the transaction in Entur's system.
idThe identification of a sent webhook event.
timestamp^[0-9]+$Unix timestamp (seconds since epoch) for when webhook was sent.
Extra transaction data from external client. Only relevant for clients using the import flow.
externalTransactionIdThe transaction id of the transaction in the partners system. This is provided by the partner when importing the transaction.
PanHashTerminalRequest
panHashThe pan hash used to execute the payment.
redirectUrl^(https?://).{0,1024… · requiredLocation to be redirected to from the payment terminal.
recurringType^R|S$ · requiredThe type of the recurring payment. Can be either R og S.
InternalTerminalRequest
redirectUrl^(https?://).{0,1024… · requiredLocation to be redirected to from the payment terminal.
RecurringPaymentRequest
nicknameNickname for the recurring payment
isPrimaryIs the recurring payment the primary recurring payment of the user. There can only be one primary recurring payment at a time. Therefore, changing this status to true might set another recurring payment's isPrimary to false.
customerNumberThe customer number this recurring payment belongs to. This field is optional and will only be considered for certain privileged clients. This value can not be updated.
CreditTransactionRequest
amount^[1-9][0-9]{0,17}\.[… · requiredAmount to credit, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
paymentTransactionIdReference to the transaction to credit.
currency[A-Z]{3}3-letter ISO 4217 currency code. Default is NOK.
reimbursementTypeGroupA PaymentTypeGroup used to override which kind of method to use for reimbursement, instead of using same as used for the payment transaction.This will only take effect if the payment method on the payment transaction allows for overriding.
Required data when importing transaction/overriding method of reimbursement. This only works when importing already credited transactions, and will only be considered when this is the case.
InternalTerminalResponse
terminalUrlLocation of the payment terminal.
paymentIdID of the payment the transaction belongs to.
transactionIdID of the transaction this terminal belongs to.
PaymentAgreementResponse
statusThe current status of the agreement.
Base pricing model for a payment agreement.
agreementIdThe unique identifier of the payment agreement.
productNameName of the product or subscription.
Base provider-specific data in an agreement response.
RecurringPaymentResponse
primaryIs the recurring payment the primary recurring payment of the user. There can only be one primary recurring payment at a time. Therefore, changing this status to true might set another recurring payment's isPrimary to false.
expiresAtWhen the recurring payment is no longer valid
maskedPanThe stored card's masked number
paymentTypeThe actual type of payment.
cardExpiresAtThe stored card's expiration date, may be longer than the recurring payment's expiration date, but never shorter.
recurringStatusStatus of this recurring payment
recurringPaymentIdID of the recurring payment
nicknameNickname for the recurring payment
TransactionImportRequest
transactionConfirmedAtTime when payment transaction was completed by the client.
rrnReconciliation reference number used to track a transaction through different economy systems. Required for PAYMENTCARD.
companyId[\d]{1,4}Id of the issuing organisation. The id is equal to the internal id in Enturs Organisation Register. Required for ECARD.
terminalIdUnique identifier for a physical terminal. Makes a transaction unique together with rrn. Required for PAYMENTCARD.
paymentTypeName of the specific payment type used. This further specifies the type of payment method used for this transaction. Often referred to as the name of the issuer for payment cards in the transaction data retrieved from payment terminals. Required for PAYMENTCARD.
envNetworkId[\d]{6}County code for issuer
Any extra transaction data which could be relevant can be specified as a key value map of strings.
mediaSerialNumberId[\d]{1,10}Numerical e-Card identifier. Required for ECARD.
externalTransactionIdTransaction ID from 3rd party payment provider.
CreditTransactionResponse
amountAmount to credit, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
paymentIdReference to the payment the credited payment transaction belongs to.
paymentTransactionIdReference to the transaction this credit transaction credits.
reimbursementTypeGroupGeneral type of reimbursement method.
rrnReconciliation reference number used to track a transaction through different economy systems.
statusStatus of this credit transaction.
currency3-letter ISO 4217 currency code. Default is NOK.
createdAtTimestamp for when transaction was first created.
updatedAtTimestamp for when transaction was last updated.
creditedAtTime when credit was confirmed.
newGiftCardIdReference to the gift card id (contract uuid) the credited payment transaction belongs to. Note: This field will be set if the transaction was credited to a gift card.
Extra transaction data from external client. Only relevant for clients using the import flow.
reimbursementMethodSpecific type of reimbursement method.
WebhookTransactionSummary
capturedAmountThe amount that has been captured on this transaction
creditedAmountThe amount that has been credited on this transaction.
PageOfWebhookConfiguration
Items on a specific page
totalItemsTotal number of items
totalPagesTotal number of pages available to browse
WebhookConfigurationRequest
baseUrlThe client specified base url where they want to use for all event paths.
A collection of which webhooks events and the paths they should be sent to. The path is combined with the base url to form a complete url
AgreementRequestProviderData
agreementProviderThe payment provider for the agreement.
PaymentConfigurationResponse
idUnique identifier of this payment configuration.
accountNameName describing the owner of the configuration. Usually the name of the client.
paymentProviderThe payment service provider this configuration is used for. This is not necessarily a 3rd party provider. This will control the way the API is used.
Key/value map of merchant configuration parameters needed for each merchant. See documentation for specific merchant on which parameters are required.
TransactionOperationResponse
posPoint-of-sale id which performed this operation.
amountAmount for this operation, represented in the standard currency. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022. The integer and fractional digits are separated by a dot.
operationA transaction has a list of operations performed on a transaction. These operations can have one of the values in this enum.
timestampTime when operation was completed. A date without a time zone in the ISO 8601 calendar system.
Information about an error that occurred.
distributionChannelIdDistribution Channels controls which organisations can sell, refund or inform on available products or salepoints. The distribution channel id represents a specific distribution channel.
WebhookConfigurationResponse
secretThe secret that should be used to validate the signature of receive webhooks. This is generated by Entur.
baseUrlThe client specified base url where they want to use for all event paths.
A collection of which webhooks events and the paths they should be sent to. The path is combined with the base url to form a complete url
organisationIdThe organisation that own this webhook configuration
idThe id of the webhook configuration
AgreementResponseProviderData
agreementProviderThe payment provider for the agreement.
CreatePaymentAgreementRequest
Base pricing model for a payment agreement.
productNameName of the product or subscription.
Base provider-specific data for creating an agreement.
customerNumberThe customer number for the agreement.
WebhookConfigurationEventPaths
pathThe path a webhook event should be sent to.
eventA webhook event. Possible values are: CREDIT.
RegisterWalletTransactionRequest
paymentDataContains payment data that will be ECC encrypted. Client should send this as a JSON-string containing the data as described in https://developer.apple.com/documentation/passkit/payment-token-format-reference#Payment-token-format-reference .
walletProviderExamples of providers are ApplePay and GooglePay. Both of these are supported.
redirectUrlPoints to where users should be redirected to for 3DS handling after registering payment, according to client. This is optional, and should only be used for GooglePay and if the transaction is being initiated from a web client, and not an app client.
RegisterWalletTransactionResponse
paymentIdID of the payment the transaction belongs to. Used with the transactionId to later capture transaction.
terminalUriLocation of the payment terminal for handling 3DS. This will only be returned if the redirectUrl was provided in the request.
transactionIdID of the transaction this terminal belongs to. Used with the paymentId to later capture transaction.
walletProviderExamples of providers are ApplePay and GooglePay. Both are supported.
VippsAgreementRequestProviderData
agreementProviderThe payment provider for the agreement.
merchantRedirectUrlURL to redirect the customer to after they have accepted or rejected the agreement in Vipps.
merchantAgreementUrlURL where the customer can manage the agreement on the merchant's site.
phoneNumberThe customer's phone number for Vipps push notification.
VippsAgreementResponseProviderData
agreementProviderThe payment provider for the agreement.
confirmationUrlURL to redirect the customer to for confirming the agreement in Vipps.