Schemas
CleosProblemJsonDto
typeURI identifying the type of problem. NOTE: type about:blank may still be used for general errors.
titlestatusdetailinstanceAbsolute 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.
timestampServer side timestamp of incident, used by cleos problem-types
correlationIdCorrelation ID for tracking the error, used by cleos problem-types. Typically based on the request header X-Correlation-Id
Domain object references that caused the error on problem type cleos-ref. NOTE: These may be references to entities outside of CLEOS
PartnerRefDto
idnameThe 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
annexRefRepresentation 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
cancelIf 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.
guidPriceContribution may be provided if a custom weight on Price is needed. The Amount will always be recalculated as the sum of PriceContributions.
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
descriptionPartnerCommentDto
commentPartnerMoneyDto
amount^-?\d{1,12}\.\d{2}$ · requiredThe 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.
currencyThe currency of the amount in ISO 4217 format. Default NOK if not provided
taxCodeThe standard tax code applicable to the amount, if any
localTaxCodeThe 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^\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^\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
posRefReference to the PointOfSale (POS) for which the settlement is created.
distributionChannelRefReference to the Distribution Channel for which the settlement is created.
settlementDateSettlement Date for the settlement on the format YYYY.MM.DD
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.
msgSubjectIdidsettlementNoSettlement 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.
correctionForSmntIdIf this settlement is a correction of a previous settlement, the internal CLEOS ID of the settlement being corrected must be provided.
externalSettlementNoExternal 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.
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
transactionTypeType of the transaction being submitted for clearing. This type MUST be assigned to the relevant Chart Of Accounts by the Cleos Administrator first.
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.
orderIdOrderID 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)
orderVersionOrderVersion is a sequential version number for the transaction. It is used to track changes to the transaction over time.
PartnerSettlementImportResponseDto
idUnique identifier of queued Settlement Import.
posRefsettlementDatesettlementNocorrectedSettlementIdexternalSettlementNoignoreSequenceIndicates whether sequence errors will be ignored during import, typical for negative settlement sequences (corrections).
commentsstatusStatus code indicating the result of the import operation. This will always be 0 (TO BE PROCESSED) on creation. 1 indicates SUCCESSFUL CLEARING
statusDescriptionMessage providing additional information on the import status.