Create and update credits. Create and execute credit transactions.
Search credits
Returns matching credits with all its transactions. Query params are able to used expression like gt:1 for searching. Other expressions can contain eq, ne, gt, gte, lt, lte.
query Parameters
creditIdID of Credit entity
customerNumberInternal numeric ID of customer which Credit is linked to
orderIdID of Order entity that Credit is linked to
orderVersionVersion of Credit entity
organisationIdID of organisation Credit entity is linked to
pageSelects a specific page in the collection
perPageSelects the number of elements per page
reimbursementMethodWhich specific payment transfer type is used for the CreditTransactions linked to the Credit. E.g. VIPPS, VISA, MASTERCARD
reimbursementTypeGroupWhich of the several groups of ways to transfer payment the CreditTransactions linked to the Credit entity is. E.g. MOBILE, PAYMENTCARD, CASH
rrnRetrieval Reference Number of CreditTransaction linked to Credit entity
settlementIdID of settlement the transaction is linked to.
statusEither CREATED or CREDITED depending on whether the actual credit action has been performed
totalCreditAmountTotal amount of credit, with one or more credit transactions
transactionIdId of (one of) the PaymentTransaction(s) performed as part of the credit
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
Search credits › Responses
OK
Items on a specific page
totalItemsTotal number of items
totalPagesTotal number of pages available to browse
Create credit transactions.
Creates credit transactions for all the payment transactions specified. The total credit amount must match the sum of the individual transactions, and each transaction cannot be higher than the paid amount.
Headers
Entur-Distribution-ChannelDistribution channel identifier.
Entur-POSPoint-of-sale identifier.
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
Create credit transactions. › Request Body
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.
Create credit transactions. › Responses
Ok
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.
Find a credit.
Returns the credit with all its credit transactions. The credit transactions have each backreferences to their corresponding payment transaction.
path Parameters
creditIdcreditId
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
Find a credit. › Responses
Ok
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.
Update the credit
The credit will be patched with specified fields. NULL values specifically set is considered as removing the field. In other words, only included fields will be modified. For more information about the PATCH endpoint and the merge-patch content-type, please refer to RFC7396.
path Parameters
creditIdcreditId
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
Update the credit › Request Body
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
Update the credit › Responses
OK
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.
Execute credit.
Credits all payment transactions in this credit, one at a time, and stops at the first one that fails. If the first one fails, nothing is credited and the call responds with its error. If a later one fails, the credit is partially credited: the payment transactions credited so far stay credited, and the call responds with 409 Conflict and errorReason PARTIALLY_CREDITED. Call this endpoint again to credit the rest; payment transactions already credited are skipped, never credited twice. After any error, retrieve the credit to see the status of each credit transaction.
path Parameters
creditIdcreditId
Headers
Entur-Distribution-ChannelDistribution channel identifier.
Entur-POSPoint-of-sale identifier.
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
Execute credit. › Responses
Ok
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.