Realization compilation
NOT_IMPLEMENTED_NO_PAYABLE_CONTRACT
POST https://kls.kinganlogic.com/v1/machine/realization/compile
M02–M13 are priced offers with paid execution held. Base collection is disabled.
Complete JSON contract · OpenAPI · Rail status
Authentication, request and response schemas
{
"schema": "KLS_MACHINE_FUNCTION_PAGE_V1",
"skuId": "KLS-M12",
"title": "Realization compilation",
"url": "https://kls.kinganlogic.com/v1/machine/realization/compile",
"method": "POST",
"contentType": "application/json",
"documentationUrl": "https://kls.kinganlogic.com/capabilities/machines/M12",
"availability": "NOT_IMPLEMENTED_NO_PAYABLE_CONTRACT",
"authentication": {
"acceptedCredentials": false,
"reason": "No execution contract implemented; never send payment."
},
"requestContract": {
"status": "NOT_IMPLEMENTED",
"acceptedRequestSchema": {
"not": {}
}
},
"responses": {
"503": {
"description": "Not purchasable; a reference price or caller payment header does not authorize execution",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"error"
],
"additionalProperties": false,
"properties": {
"error": {
"const": "BASE_RAIL_HELD_NO_PAYMENT_AUTHORIZATION_ACCEPTED"
}
}
}
}
}
}
},
"parameters": [],
"workflowPaths": {
"/v1/machine/realization/compile": {
"post": {
"operationId": "kls.realization.compile",
"summary": "KLS-M12 Base HELD; no settlement adapter accepted",
"x-availability": "HELD",
"x-reference-price": {
"asset": "USDC",
"standardAtomic": "490000",
"maximumAtomic": "790000"
},
"responses": {
"503": {
"description": "Not purchasable; a reference price or caller payment header does not authorize execution",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"error"
],
"additionalProperties": false,
"properties": {
"error": {
"const": "BASE_RAIL_HELD_NO_PAYMENT_AUTHORIZATION_ACCEPTED"
}
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"MachineInput": {
"type": "object",
"required": [
"schemaId",
"payload"
],
"additionalProperties": false,
"properties": {
"schemaId": {
"type": "string"
},
"payload": {}
}
},
"MachineError": {
"type": "object",
"required": [
"error"
],
"additionalProperties": false,
"properties": {
"error": {
"type": "string"
},
"authorityCreates": {
"const": false
},
"instruction": {
"type": "string"
}
}
},
"Preflight": {
"type": "object",
"required": [
"preflight",
"referenceUsdAtomic",
"maximumUsdAtomic",
"payment",
"evaluation"
],
"additionalProperties": false,
"properties": {
"referenceUsdAtomic": {
"const": "50000"
},
"maximumUsdAtomic": {
"const": "50000"
},
"payment": {
"const": "NOT_AUTHORIZED"
},
"evaluation": {
"const": "NOT_RUN"
},
"preflight": {
"type": "object",
"required": [
"skuId",
"schemaId",
"schemaSha256",
"inputSha256",
"payloadSha256",
"canonicalization",
"engineVersion",
"sourceCommit",
"schemaHashCanonicalization"
],
"additionalProperties": false,
"properties": {
"skuId": {
"const": "KLS-M01"
},
"schemaId": {
"type": "string"
},
"schemaSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"inputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"payloadSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"canonicalization": {
"const": "PCPD-JSON-UTF16-SAFE-INTEGER-V1"
},
"engineVersion": {
"type": "string"
},
"sourceCommit": {
"type": "string",
"pattern": "^[a-f0-9]{40}$"
},
"schemaHashCanonicalization": {
"const": "JSON_SORT_KEYS_UTF8_NO_WHITESPACE_V1"
}
}
}
}
},
"Quote": {
"type": "object",
"required": [
"orderId",
"skuId",
"inputSha256",
"schemaSha256",
"buyer",
"merchant",
"network",
"genesisHash",
"rail",
"asset",
"protocol",
"amountMicroCcd",
"maximumMicroCcd",
"referenceUsdAtomic",
"tariffVersion",
"tariffApprovedAt",
"createdAt",
"expiresAt",
"memo",
"signingKeyId",
"sourceCommit",
"networkFee"
],
"properties": {
"orderId": {
"type": "string",
"format": "uuid"
},
"skuId": {
"const": "KLS-M01"
},
"inputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"schemaSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"buyer": {
"type": "string",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{50}$"
},
"merchant": {
"type": "string",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{50}$"
},
"network": {
"enum": [
"concordium:testnet",
"concordium:mainnet"
]
},
"genesisHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"rail": {
"enum": [
"testnet",
"mainnet"
]
},
"asset": {
"const": "CCD"
},
"protocol": {
"const": "native-ccd-invoice-v1"
},
"amountMicroCcd": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,19})$"
},
"maximumMicroCcd": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,19})$"
},
"referenceUsdAtomic": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,19})$"
},
"tariffVersion": {
"type": "string"
},
"tariffApprovedAt": {
"type": "string",
"format": "date-time"
},
"createdAt": {
"type": "integer",
"description": "Unix milliseconds"
},
"expiresAt": {
"type": "integer",
"description": "Unix milliseconds"
},
"memo": {
"type": "string"
},
"signingKeyId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"sourceCommit": {
"type": "string",
"pattern": "^[a-f0-9]{40}$"
},
"networkFee": {
"type": "object",
"required": [
"amountMicroCcd",
"paidBy",
"status"
],
"properties": {
"amountMicroCcd": {
"type": "null"
},
"paidBy": {
"const": "BUYER"
},
"status": {
"const": "WALLET_QUOTE_REQUIRED"
}
}
}
}
},
"NativeInvoice": {
"type": "object",
"required": [
"quote",
"recoveryToken",
"payment",
"evaluation",
"walletHandoff",
"recovery"
],
"properties": {
"quote": {
"$ref": "#/components/schemas/Quote"
},
"recoveryToken": {
"type": "string",
"x-sensitive": true,
"description": "Private order capability returned with the invoice. Persist before wallet signing; never place in a URL or public log."
},
"payment": {
"const": "UNPAID"
},
"evaluation": {
"const": "NOT_RUN"
},
"walletHandoff": {
"type": "object",
"required": [
"type",
"sender",
"recipient",
"amountMicroCcd",
"memoText",
"memoEncoding",
"network",
"genesisHash"
],
"properties": {
"type": {
"const": "NATIVE_CCD_TRANSFER_WITH_MEMO"
},
"sender": {
"type": "string"
},
"recipient": {
"type": "string"
},
"amountMicroCcd": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,19})$"
},
"memoText": {
"type": "string"
},
"memoEncoding": {
"const": "CBOR_TEXT_STRING"
},
"network": {
"type": "string"
},
"genesisHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
},
"recovery": {
"type": "string",
"format": "uri"
}
}
},
"Evaluation": {
"type": "object",
"required": [
"skuId",
"schemaId",
"schemaSha256",
"inputSha256",
"payloadSha256",
"canonicalization",
"engineVersion",
"sourceCommit",
"schemaHashCanonicalization",
"decision",
"issues",
"claimCeiling",
"authorityCreates",
"paymentFinalityCreates"
],
"properties": {
"skuId": {
"const": "KLS-M01"
},
"schemaId": {
"type": "string"
},
"schemaSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"inputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"payloadSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"canonicalization": {
"const": "PCPD-JSON-UTF16-SAFE-INTEGER-V1"
},
"engineVersion": {
"type": "string"
},
"sourceCommit": {
"type": "string",
"pattern": "^[a-f0-9]{40}$"
},
"schemaHashCanonicalization": {
"const": "JSON_SORT_KEYS_UTF8_NO_WHITESPACE_V1"
},
"decision": {
"enum": [
"PASS",
"BLOCK"
]
},
"issues": {
"type": "array",
"maxItems": 16,
"items": {
"type": "object",
"required": [
"validationPath",
"rule",
"validationHint"
],
"properties": {
"validationPath": {
"type": "string",
"maxLength": 240
},
"rule": {
"type": "string"
},
"validationHint": {
"type": "string"
}
}
}
},
"claimCeiling": {
"const": "STATELESS_SCHEMA_CONFORMANCE_ONLY"
},
"authorityCreates": {
"const": false
},
"paymentFinalityCreates": {
"const": false
}
}
},
"SignedReceipt": {
"type": "object",
"required": [
"body",
"receiptSha256",
"receiptSignature",
"signingKeyId",
"canonicalization"
],
"properties": {
"receiptSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"receiptSignature": {
"type": "string",
"description": "Compact Ed25519 JWS over the canonical body; independently pin the signing key."
},
"signingKeyId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"canonicalization": {
"const": "PCPD-JSON-UTF16-SAFE-INTEGER-V1"
},
"body": {
"type": "object",
"required": [
"receiptVersion",
"catalogId",
"quote",
"evaluation",
"evaluationSha256",
"payment",
"thirdPartyAttestation",
"authorityCreates"
],
"properties": {
"receiptVersion": {
"const": "1.0.0"
},
"catalogId": {
"const": "KLS_OWNER_MACHINE_PRICING_V1"
},
"quote": {
"$ref": "#/components/schemas/Quote"
},
"evaluation": {
"$ref": "#/components/schemas/Evaluation"
},
"evaluationSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"thirdPartyAttestation": {
"type": "null"
},
"authorityCreates": {
"const": false
},
"payment": {
"type": "object",
"required": [
"finality",
"settlement",
"settlementAmountMicroCcd",
"networkFeeMicroCcd",
"finalityBasis"
],
"properties": {
"finality": {
"const": "FINALIZED_SUCCESS"
},
"finalityBasis": {
"const": "CONFIGURED_TRUSTED_READER"
},
"settlementAmountMicroCcd": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,19})$"
},
"networkFeeMicroCcd": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,19})$"
},
"settlement": {
"type": "object",
"required": [
"status",
"genesisHash",
"network",
"transactionHash",
"sender",
"recipient",
"amountMicroCcd",
"memo",
"blockHash",
"blockTime",
"feeMicroCcd"
],
"properties": {
"status": {
"const": "FINALIZED_SUCCESS"
},
"genesisHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"network": {
"type": "string"
},
"transactionHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"sender": {
"type": "string"
},
"recipient": {
"type": "string"
},
"amountMicroCcd": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,19})$"
},
"memo": {
"type": "string"
},
"blockHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"blockTime": {
"type": "integer",
"description": "Unix milliseconds"
},
"feeMicroCcd": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,19})$"
}
}
}
}
}
}
}
}
},
"BaseSignedReceipt": {
"type": "object",
"required": [
"body",
"receiptSha256",
"receiptSignature",
"signingKeyId",
"canonicalization"
],
"properties": {
"receiptSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"receiptSignature": {
"type": "string"
},
"signingKeyId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"canonicalization": {
"const": "PCPD-JSON-UTF16-SAFE-INTEGER-V1"
},
"body": {
"type": "object",
"required": [
"receiptVersion",
"catalogId",
"binding",
"evaluation",
"evaluationSha256",
"payment",
"thirdPartyAttestation",
"authorityCreates"
],
"properties": {
"receiptVersion": {
"const": "1.0.0"
},
"catalogId": {
"const": "KLS_OWNER_MACHINE_PRICING_V1"
},
"evaluation": {
"$ref": "#/components/schemas/Evaluation"
},
"evaluationSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"thirdPartyAttestation": {
"type": "null"
},
"authorityCreates": {
"const": false
},
"binding": {
"type": "object",
"required": [
"orderId",
"skuId",
"inputSha256",
"schemaSha256",
"sourceCommit",
"signingKeyId",
"authorizationSha256",
"contextSha256",
"merchant",
"network",
"asset",
"priceAtomic",
"maximumAtomic",
"policyPublicationHash",
"createdAt"
],
"properties": {
"orderId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"skuId": {
"const": "KLS-M01"
},
"inputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"schemaSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"signingKeyId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"sourceCommit": {
"type": "string",
"pattern": "^[a-f0-9]{40}$"
},
"authorizationSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"contextSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"merchant": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"network": {
"const": "eip155:8453"
},
"asset": {
"const": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"priceAtomic": {
"const": "50000"
},
"maximumAtomic": {
"const": "50000"
},
"policyPublicationHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"createdAt": {
"type": "integer"
}
}
},
"payment": {
"type": "object",
"required": [
"status",
"priceAtomic",
"maximumAtomic",
"settlementAmountAtomic",
"networkFeeAtomic",
"gatewayPaymentResponse",
"finality"
],
"properties": {
"status": {
"const": "AUTHORIZED_PENDING_GATEWAY_SETTLEMENT"
},
"priceAtomic": {
"const": "50000"
},
"maximumAtomic": {
"const": "50000"
},
"settlementAmountAtomic": {
"type": "null"
},
"networkFeeAtomic": {
"type": "null"
},
"gatewayPaymentResponse": {
"type": "null"
},
"finality": {
"const": "NOT_OBSERVED_BY_ORIGIN"
}
}
}
}
}
}
},
"PendingOrder": {
"type": "object",
"required": [
"orderId",
"state",
"quote",
"nextAction",
"paymentFinality"
],
"properties": {
"orderId": {
"type": "string"
},
"state": {
"enum": [
"QUOTED",
"EVALUATING"
]
},
"quote": {
"$ref": "#/components/schemas/Quote"
},
"nextAction": {
"type": "string"
},
"paymentFinality": {
"enum": [
"FINALIZED_SUCCESS",
"NOT_PROVEN"
]
}
}
}
},
"securitySchemes": {
"orderRecovery": {
"type": "http",
"scheme": "bearer",
"description": "Private per-order recovery token, not payment authority"
}
}
},
"openapi": "https://kls.kinganlogic.com/openapi.json",
"paymentStatus": "https://kls.kinganlogic.com/capabilities/payment-status.json",
"tariff": {
"testnet": "https://kls.kinganlogic.com/offers/kls-testnet-v1",
"base": "Owner-supplied 2026-11-16 KLS tariff; collection and enhanced-tier activation remain unapproved."
},
"boundary": "M02–M13 are priced offers with paid execution held. Base collection is disabled."
}Example calls
Availability probe only; expect HTTP 503 JSON, not execution. No payment or credential is accepted.
curl -sS -i 'https://kls.kinganlogic.com/v1/machine/realization/compile' -H 'Content-Type: application/json' --data '{}'