Entur · Schema
Credit
Information about credits performed on an order.
CompanyPublic TransportJourney PlanningMobilityOpen DataNorwayTransitGraphQL
Properties
| Name | Type | Description |
|---|---|---|
| active | boolean | If 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 |
| creditId | integer | Identification of this credit resource. |
| creditTransactions | array | List of individual transactions to credit. |
| currency | string | The currency used for this credit. |
| customerNumber | string | ID of the customer who owns this credit. |
| orderId | string | ID of the order this payment belongs to. |
| orderVersion | integer | Version of the order this credit belongs to. |
| organisationId | integer | ID of the organisation who created this credit. |
| settlementId | integer | Supplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal. |
| totalCreditAmount | string | Total 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. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/entur/main/json-schema/entur-credit-response-schema.json",
"title": "Credit",
"description": "Information about credits performed on an order.",
"x-generated": "2026-10-09",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/entur-payment-partner-openapi.yml#/components/schemas/CreditResponse",
"required": [
"creditId",
"creditTransactions",
"orderId",
"orderVersion",
"totalCreditAmount"
],
"type": "object",
"properties": {
"active": {
"type": "boolean",
"description": "If 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"
},
"creditId": {
"type": "integer",
"description": "Identification of this credit resource.",
"format": "int64"
},
"creditTransactions": {
"type": "array",
"description": "List of individual transactions to credit.",
"items": {
"$ref": "#/$defs/CreditTransactionResponse"
}
},
"currency": {
"type": "string",
"description": "The currency used for this credit."
},
"customerNumber": {
"type": "string",
"description": "ID of the customer who owns this credit."
},
"orderId": {
"type": "string",
"description": "ID of the order this payment belongs to."
},
"orderVersion": {
"type": "integer",
"description": "Version of the order this credit belongs to.",
"format": "int32"
},
"organisationId": {
"type": "integer",
"description": "ID of the organisation who created this credit.",
"format": "int64"
},
"settlementId": {
"type": "integer",
"description": "Supplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.",
"format": "int64"
},
"totalCreditAmount": {
"type": "string",
"description": "Total 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."
}
},
"$defs": {
"CreditTransactionResponse": {
"title": "CreditTransaction",
"required": [
"amount",
"paymentId",
"paymentTransactionId",
"reimbursementTypeGroup"
],
"type": "object",
"properties": {
"amount": {
"type": "string",
"description": "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."
},
"createdAt": {
"type": "string",
"description": "Timestamp for when transaction was first created.",
"format": "date-time",
"readOnly": true
},
"creditedAt": {
"type": "string",
"description": "Time when credit was confirmed.",
"format": "date-time"
},
"currency": {
"type": "string",
"description": "3-letter ISO 4217 currency code. Default is NOK."
},
"newGiftCardId": {
"type": "string",
"description": "Reference 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.",
"readOnly": true
},
"paymentId": {
"type": "integer",
"description": "Reference to the payment the credited payment transaction belongs to.",
"format": "int64"
},
"paymentTransactionId": {
"type": "integer",
"description": "Reference to the transaction this credit transaction credits.",
"format": "int64"
},
"reimbursementMethod": {
"type": "string",
"description": "Specific type of reimbursement method."
},
"reimbursementTypeGroup": {
"type": "string",
"description": "General type of reimbursement method."
},
"rrn": {
"type": "string",
"description": "Reconciliation reference number used to track a transaction through different economy systems."
},
"status": {
"type": "string",
"description": "Status of this credit transaction.",
"enum": [
"CREATED",
"CREDITED"
]
},
"transactionData": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Extra transaction data from external client. Only relevant for clients using the import flow."
},
"updatedAt": {
"type": "string",
"description": "Timestamp for when transaction was last updated.",
"format": "date-time",
"readOnly": true
}
},
"description": "Represents a credit transaction referring to a payment transaction."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/entur-credit-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.