Schemas
AppClaimResponse
appClaimUrlLocation 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 transactionId to later capture transaction.
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.
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.
List of individual transactions to credit.
activeActive is used during activation of credit
CreditRequest
List of individual transactions to credit.
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.
currency[A-Z]{3}The currency used for this credit. Default value is 'NOK'
customerNumberCustomer who owns this credit. This value is only considered for privileged client (internal and partner tenants.
settlementIdSupplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.
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.
GiftCardRequest
giftCardCodeThe code identifying a gift card.
InvoiceRequest
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.
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
languageCodeLanguage code to override terminal language and invoice if possible. Overrides customer preferences. ISO 639-3 format.
redirectUrl^(https?://).{0,1024…Location to be redirected to from the payment terminal. Required for Collector
invoiceIdId of Invoice. Only set in request for PUT
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.
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.
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.
terminalUriIf paymentType is COLLECTOR: Location of the payment terminal, else null
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
PanHashTerminalRequest
panHashThe pan hash used to execute the payment.
recurringType^R|S$ · requiredThe type of the recurring payment. Can be either R og S.
redirectUrl^(https?://).{0,1024… · requiredLocation to be redirected to from the payment terminal.
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.
PaymentRequest
orderIdId of the order this payment belongs to.
orderVersionVersion 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.
currency[A-Z]{3}3-letter ISO 4217 currency code. Default is NOK.
customerNumberCustomer who owns this payment. This value is only considered for privileged client (internal and partner tenants.
settlementIdSupplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.
Information used to create a transaction.
RecurringPaymentRequest
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.
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.
nicknameNickname for the recurring payment
RecurringPaymentResponse
cardExpiresAtThe stored card's expiration date, may be longer than the recurring payment's expiration date, but never shorter.
expiresAtWhen the recurring payment is no longer valid
maskedPanThe stored card's masked number
paymentTypeThe actual type of payment.
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.
recurringPaymentIdID of the recurring payment
recurringStatusStatus of this recurring payment
nicknameNickname for the recurring payment
RecurringStatus
Status of this recurring payment
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'
TerminalLanguage
Language 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.
TerminalRequest
redirectUrl^(https?://).{0,1024… · requiredLocation to be redirected to from the payment terminal.
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.
customerNumberCustomer number used with recurring payment creation. This field is optional and will only be considered for certain privileged clients.
storePaymentShould the card be stored for recurring payments. If customer is not logged in, the value of this will be disregarded.
terminalLanguageLanguage used in the payment terminal. Default is 'no_NO'.
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'
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.
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.
singlePageIf this flag is set to true, we will attempt to generate a single-page terminal. If false, multi-page terminal might be used.
TerminalResponse
terminalUriLocation of the payment terminal.
paymentIdID of the payment the transaction belongs to. Used with the transactionId to later capture transaction.
recurringPaymentIdID of the recurring payment this terminal belongs to.
transactionIdID of the transaction this terminal belongs to. Used with the paymentId to later capture transaction.
InternalTerminalRequest
redirectUrl^(https?://).{0,1024… · requiredLocation to be redirected to from the payment terminal.
InternalTerminalResponse
terminalUrlLocation of the payment terminal.
paymentIdID of the payment the transaction belongs to.
transactionIdID of the transaction this terminal belongs to.
TransactionImportRequest
transactionConfirmedAtTime when payment transaction was completed by the client.
companyId[\d]{1,4}Id of the issuing organisation. The id is equal to the internal id in Enturs Organisation Register. Required for ECARD.
envNetworkId[\d]{6}County code for issuer
mediaSerialNumberId[\d]{1,10}Numerical e-Card identifier. Required for ECARD.
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.
rrnReconciliation reference number used to track a transaction through different economy systems. Required for PAYMENTCARD.
terminalIdUnique identifier for a physical terminal. Makes a transaction unique together with rrn. Required for PAYMENTCARD.
externalTransactionIdTransaction ID from 3rd party payment provider.
Any extra transaction data which could be relevant can be specified as a key value map of strings.
RegisterWalletTransactionResponse
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.
walletProviderExamples of providers are ApplePay and GooglePay. Both are supported.
terminalUriLocation of the payment terminal for handling 3DS. This will only be returned if the redirectUrl was provided in the request.
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.
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.
recurringPaymentIdID of the saved payment method to use for this transaction.
paymentAgreementIdID of the payment agreement to charge against. Used for Vipps recurring agreement payments. Mutually exclusive with recurringPaymentId.
with3DSecureFlag to choose payment methods with or without 3D Secure. This option is only accessible to privileged clients.
scaExemptionThe type of SCA (secure customer authentication) Exemption for a transaction. Defaults to NO_EXEMPTION. Other available values are: LOW_VALUE.
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.
RegisterWalletTransactionRequest
walletProviderExamples of providers are ApplePay and GooglePay. Both of these are supported.
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 .
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.
WalletProvider
Examples of providers are ApplePay and GooglePay. Both of these are supported.
ScaExemption
The type of SCA (secure customer authentication) Exemption for a transaction. Defaults to NO_EXEMPTION. Other available values are: LOW_VALUE.
ValidationError
errorThe error that occurred.
exceptionWhat exception caused the error.
messageA message detailing the error.
pathThe url path that was accessed when the error happenened.
statusThe http status of the response.
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, ISSUER_UNAVAILABLE, RESOURCE_BUSY, USER_ERROR, COMPLIANCE_CHECK_FAILED.
errorsPaymentWebhookRequest
eventNameThe name of the event that is being sent with the webhook. Currently only support CREDIT-events
enturPaymentTransactionIdThe transaction id of the transaction in Entur's system.
A summary of the the different operations done on a transaction.
idThe identification of a sent webhook event.
timestamp^[0-9]+$Unix timestamp (seconds since epoch) for when webhook was sent.
externalTransactionIdThe transaction id of the transaction in the partners system. This is provided by the partner when importing the transaction.
Extra transaction data from external client. Only relevant for clients using the import flow.
WebhookTransactionSummary
capturedAmountThe amount that has been captured on this transaction
creditedAmountThe amount that has been credited on this transaction.
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
WebhookConfigurationResponse
baseUrlThe client specified base url where they want to use for all event paths.
secretThe secret that should be used to validate the signature of receive webhooks. This is generated by Entur.
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
WebhookConfigurationEventPaths
eventA webhook event. Possible values are: CREDIT.
path^/.*$ · requiredThe path a webhook event should be sent to. Must start with '/'. The full callback url is the base url with this path appended verbatim.
PageOfWebhookConfiguration
Items on a specific page
totalItemsTotal number of items
totalPagesTotal number of pages available to browse
AgreementInterval
unitThe time unit for the interval.
countThe number of time units per interval.
AgreementPricing
agreementTypeThe pricing model type.
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.
VariablePricing
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.
FlexiblePricing
agreementTypeThe pricing model type.
currencyISO 4217 currency code.
AgreementRequestProviderData
agreementProviderThe payment provider for the agreement.
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.
AgreementResponseProviderData
agreementProviderThe payment provider for the agreement.
VippsAgreementResponseProviderData
agreementProviderThe payment provider for the agreement.
confirmationUrlURL to redirect the customer to for confirming the agreement in Vipps.
CreatePaymentAgreementRequest
productNameName of the product or subscription.
customerNumberThe customer number for the agreement.
Base pricing model for a payment agreement.
Base provider-specific data for creating an agreement.
AgreementUpdateProviderData
agreementProviderThe payment provider for the agreement. Cannot be changed, and must match the agreement's existing provider.
VippsAgreementUpdateProviderData
agreementProviderThe payment provider for the agreement. Cannot be changed, and must match the agreement's existing provider.
merchantAgreementUrlURL where the customer can manage the agreement on the merchant's site. Must use HTTPS.
AgreementUpdatePricing
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: amount, currency, interval | |
| type = object · requires: amount, currency, interval +1 more |
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.
UpdatePaymentAgreementRequest
productNameName of the product or subscription.
Pricing model for an agreement that can be repriced. FLEXIBLE is deliberately absent: its amount is set per charge, so there is nothing on it to update.
Base provider-specific data for updating an agreement. Contains only the fields the provider allows changing after the agreement exists — which is why this is a separate schema from AgreementRequestProviderData.
PaymentAgreementResponse
agreementIdThe unique identifier of the payment agreement.
statusThe current status of the agreement.
productNameName of the product or subscription.
Base pricing model for a payment agreement.
Base provider-specific data in an agreement response.
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.
createdAtTimestamp for when transaction was first created.
creditedAtTime when credit was confirmed.
currency3-letter ISO 4217 currency code. Default is NOK.
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.
reimbursementMethodSpecific type of reimbursement method.
rrnReconciliation reference number used to track a transaction through different economy systems.
statusStatus of this credit transaction.
Extra transaction data from external client. Only relevant for clients using the import flow.
updatedAtTimestamp for when transaction was last updated.
CreditResponse
creditIdIdentification of this credit resource.
List of individual transactions to credit.
orderIdID of the order this payment belongs to.
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.
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.
customerNumberID of the customer who owns this credit.
organisationIdID of the organisation who created this credit.
settlementIdSupplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.
PageOfCredit
Items on a specific page
totalItemsTotal number of items
totalPagesTotal number of pages available to browse
PaymentError
errorThe error that occurred.
exceptionWhat exception caused the error.
messageA message detailing the error.
pathThe url path that was accessed when the error happenened.
statusThe http status of the response.
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, ISSUER_UNAVAILABLE, RESOURCE_BUSY, USER_ERROR, COMPLIANCE_CHECK_FAILED.
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.
Operation
A transaction has a list of operations performed on a transaction. These operations can have one of the values in this enum.
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.
TransactionOperationResponse
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.
posPoint-of-sale id which performed this operation.
timestampTime when operation was completed. A date without a time zone in the ISO 8601 calendar system.
distributionChannelIdDistribution Channels controls which organisations can sell, refund or inform on available products or salepoints. The distribution channel id represents a specific distribution channel.
Information about an error that occurred.
PaymentType
The actual type of payment.
PaymentTypeFee
amount^[1-9][0-9]{0,17}\.[… · requiredTotal amount including taxes
currencyThe currency in 3-letter ISO-4217 standard codes
name[A-Z]{3}:[^:]+:[^:]+ · requiredName of the fee in NeTEX format identifying a fee.
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
TransactionStatus
Current state of the 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.
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.
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.
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.
createdAtTimestamp for when transaction was first created.
currency3-letter currency code. (ISO 4217)
statusCurrent state of the transaction.
transactionIdID of the specific transaction.
cardNumberLast 4 digits in card number (PAN - Personal Account Number)
Log of each successful operation made on the transaction. Failing operations will not be included.
paymentTypeThe actual type of payment.
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.
paymentIdID of the payment this transaction belongs to.
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.
rrnReconciliation reference number used to track a transaction through different economy systems.
Aggregated summary of amounts on a transaction.
Extra transaction data from external client. Only relevant for clients using the import flow.
updatedAtTimestamp for when transaction was last updated.
Fee related to a payment method.
PaymentResponse
createdAtTimestamp for when payment was created.
currency3-letter ISO 4217 currency code. Default is NOK.
orderIdId of the order this payment belongs to.
orderVersionVersion of the order this payment belongs to.
organisationIdId of the organisation who created this payment.
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
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
customerNumberID of the customer who owns this payment.
settlementIdSupplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.
List of all transactions belonging to this payment.
updatedAtTimestamp for when payment was last updated.
PageOfPayment
Items on a specific page
totalItemsTotal number of items
totalPagesTotal number of pages available to browse
PaymentConfigurationResponse
accountNameName describing the owner of the configuration. Usually the name of the client.
idUnique identifier of this payment configuration.
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.
PaymentMethodResponse
distributionChannelIdDistribution Channels controls which organisations can sell, refund or inform on available products or salepoints.
idUnique identifier for a payment method.
paymentTypeGroupGroup for the payment type. Payment types which are payment cards is in the PAYMENTCARD group.
clientIdID of the client this payment method belongs to. This ID is the one found in the client's token.
Current payment configuration set up for psp-client relationship.
paymentTypeThe actual type of payment.
Fee related to a payment method.