Entur Developer
Clearing

CleosProblemJsonDto

DTO representing the generic response of an error condition according to the JSON+ERROR content type (RFC 9457).
type
​string · enum · uri

URI identifying the type of problem. NOTE: type about:blank may still be used for general errors.

Enum values:
about:blank
urn:problem-type:cleos-default
urn:problem-type:cleos-ref
title
​string
status
​integer · int32
detail
​string
instance
​string · uri

Absolute URI to the the resource causing the error. Note that this is technically not a reference to the persistent error instance, but still useful default behaviour.

​object
timestamp
​string · date-time

Server side timestamp of incident, used by cleos problem-types

correlationId
​string

Correlation ID for tracking the error, used by cleos problem-types. Typically based on the request header X-Correlation-Id

​PartnerRefDto[]

Domain object references that caused the error on problem type cleos-ref. NOTE: These may be references to entities outside of CLEOS

PartnerRefDto

A REF is a reference that is intended for business logic use, with best effort NAME lookups in GUI and reporting. For most practical purposes it can be considered a URN on the format NAMESPACE:TYPE:ID, but this is not guaranteed.
id
​string · minLength: 0 · maxLength: 100 · required
name
​string

The NAME corresponding to the REF, if found in the CLEOS REF lookup table (best effort). NOTE: This may be set for REFs returned by CLEOS, the client is not expected to submit this value.

PartnerAnnexDto

Generic representation of a node in a recursive transaction tree structure.
annexRef
​string · minLength: 0 · maxLength: 100 · required
​PartnerMoneyDto · required

Representation of an amount with relevant metadata such as currency and tax information. The Annex will be considered without Price Contribution if amount is 0.00

cancel
​boolean

If true, this annex root (and all sub-annexes) will be accounted with DEBED/CREDIT switched. Typically used for reversing older versions of the transaction. Default false.

guid
​string · minLength: 0 · maxLength: 38
​object

PriceContribution may be provided if a custom weight on Price is needed. The Amount will always be recalculated as the sum of PriceContributions.

​PartnerMoneyDto

Representation of an amount with relevant metadata such as currency and tax information. The Annex will be considered without Price Contribution if amount is 0.00

description
​string · minLength: 0 · maxLength: 500
​object
​PartnerAnnexDto[]
​PartnerAnnexDto[]

PartnerCommentDto

Any external comments relevant for clearing the settlement. This will not be part of the reporting context. Useful for guiding potential corrections.
comment
​string · minLength: 0 · maxLength: 500 · required

PartnerMoneyDto

Representation of an amount with relevant metadata such as currency and tax information. The Annex will be considered without Price Contribution if amount is 0.00
amount
​string · pattern: ^-?\d{1,12}\.\d{2}$ · required

The monetary amount in a 12.2 format (up to 12 digits before decimal, exactly 2 after). May be negative, for a discount or a refund.

currency
​string

The currency of the amount in ISO 4217 format. Default NOK if not provided

taxCode
​string

The standard tax code applicable to the amount, if any

localTaxCode
​string

The local tax code applicable to the amount, if any. NOTE: This is normally not necessary to set but may be relevant in scenarios where the tax rate for a code changes

taxRate
​string · pattern: ^\d{1,2}(\.\d{1,2})?…

The tax rate applicable to the amount, if any. NOTE: This must be consistent with the CLEOS configuration for the Tax Code (SEGMENT7)

weight
​string · pattern: ^\d{1,12}(\.\d{1,4})…

The weight associated with the amount, if any, in a 12.4 format (up to 12 digits before decimal, optionally followed by 1-4 after). Thw weight is used for proportional clearing based a custom weight instead of PriceContributions. For example representing distance or time.

PartnerSettlementImportDto

Generic Settlement submitted by Partner. This is a subset of the CLEOS settlement structure intended for self-serviced clearing.
posRef
​string · minLength: 0 · maxLength: 100 · required

Reference to the PointOfSale (POS) for which the settlement is created.

distributionChannelRef
​string · minLength: 0 · maxLength: 100 · required

Reference to the Distribution Channel for which the settlement is created.

settlementDate
​string · date · required

Settlement Date for the settlement on the format YYYY.MM.DD

​PartnerTransactionImportDto[] · required

List of Generic Transactions associated with the settlement. The list is required but may be empty: a period with no sales still consumes its Settlement Number, and submitting the empty Settlement keeps the sequence unbroken for the next one.

msgSubjectId
​string
id
​integer · int64
settlementNo
​integer · int64

Settlement Sequence Number. This must be a continuous sequence for the settlement not to fail clearing. Negative sequences are typically used for corrections that are out of sequence. If not specified, the next number in a negative sequence will automatically be assigned based previous correction on the same POS.

correctionForSmntId
​integer · int64

If this settlement is a correction of a previous settlement, the internal CLEOS ID of the settlement being corrected must be provided.

externalSettlementNo
​integer · int64

External Settlement Number provided by the Partner. If not provided, the settlementNo will be used as external reference as well.

Optional comments associated with the settlement. Used for audit trail and additional information relevant for clearing.

​object

Context map containing additional key-value pairs relevant for the settlement. Only simple key-value pairs are supported (String, Number, Boolean) with a max length of 100 characters per value.

PartnerTransactionImportDto

A transaction to be cleared, represented in a generic format suitable for various transaction types.
transactionType
​string · minLength: 0 · maxLength: 30 · required

Type of the transaction being submitted for clearing. This type MUST be assigned to the relevant Chart Of Accounts by the Cleos Administrator first.

​PartnerAnnexDto[] · minItems: 1 · required

The Annexes to be cleared. A transaction must carry at least one — a transaction with nothing to clear should be left out of the settlement entirely. A settlement covering a period with no sales is submitted with an empty genericTransactions list instead.

orderId
​string · minLength: 0 · maxLength: 50

OrderID is a unique identifier for the transaction within the Partner's system. It is used to track and manage the transaction throughout its lifecycle. Note that several transactions may refer to the same OrderID (eg both the sale and the payment transaction)

orderVersion
​integer · int32

OrderVersion is a sequential version number for the transaction. It is used to track changes to the transaction over time.

PartnerSettlementImportResponseDto

Relevant information on the successfully registered Settlement Import. See documentation for PartnerSettlementImportDto for details on fields that the client submitted.
id
​integer · int64

Unique identifier of queued Settlement Import.

posRef
​string
settlementDate
​string · date
settlementNo
​integer · int64
correctedSettlementId
​integer · int64
externalSettlementNo
​integer · int64
ignoreSequence
​boolean

Indicates whether sequence errors will be ignored during import, typical for negative settlement sequences (corrections).

comments
​string[]
status
​integer · int32

Status code indicating the result of the import operation. This will always be 0 (TO BE PROCESSED) on creation. 1 indicates SUCCESSFUL CLEARING

Example: 0
statusDescription
​string

Message providing additional information on the import status.

Did you find what you were looking for?