Schemas
ErrorMessage
errorCodeThe error code.
longEnglishLong error message (English).
shortEnglishShort error message (English).
longNorwegianLong error message (Norwegian).
shortNorwegianShort error message (Norwegian).
ConsentRequest
consentCodeConsent code. Use the consent code + consent base version to identify the consent base
isSmsSupportedWhether the organisation supports SMS as a contact method
organisationIdThe organisation the consent is valid for.
isEmailSupportedWhether the organisation supports email as a contact method
validToIf set, the date the consent is valid to. Set the date to deactivate the consent. Can only be set to a date before the consent base validTo. If not set the consent is active from validFrom and forever after.
validFromIf set, the date the consent is valid from. Can only be set to a date after consent base validFrom. If not set, the consent base is in draft mode.
consentBaseVersionConsent base version for adding a consent to a specific version. If not provided, the latest version is used.
ConsentResponse
idConsent ID.
changedAtWhen the consent was last changed. ISO 8601 date format
createdAtWhen the consent was created. ISO 8601 date format
Consent base
consentCodeCode of the consent base
isSmsSupportedWhether the organisation supports SMS as a contact method
organisationIdThe organisation the consent is valid for.
isEmailSupportedWhether the organisation supports email as a contact method
validToIf set, the date the consent is valid to. Set the date to deactivate the consent. Can only be set to a date before the consent base validTo. If not set the consent is active from validFrom and forever after.
validFromIf set, the date the consent is valid from. Can only be set to a date after consent base validFrom. If not set, the consent base is in draft mode.
ConsentBaseRequest
Consent terms with long and short description in multiple languages. The descriptions can contain MarkDown
consentCodeConsent code, identifying the consent base. Must be unique within the system, prefixing it with the organisation's code space is advisable tp avoid conflict. Has a maximum length of 20 characters.
validToIf set, the date the consent base is valid to. Set the date to deactivate the consent. If not set the consent is active from validFrom and onwards.
validFromIf set, the date the consent base is valid from. It is not possible to change the terms after this date without creating a new version. If not set, the consent base is in draft mode.
consentOwnerOrgIdThe organisation that owns the consent. If not set all organisations can use the consent base. |If you're a partner, this will be filled out from your authentication token.
Internal description, describing the use cases for the consent base
orgNameSubstitutionPatternThe pattern on which to perform substitution within terms. Facilitates reusable consent bases across organisations.
ConsentCrmResponse
consentIdThe id of the Consent that has been consented
consentCodeThe consent code of the base consent associated with the consent
customerRefCustomer ref, a unique identifier for the customer within an organisation
createdByOrgIdThe organisation through which the consent was given
customerNumberCustomer number, a unique identifier for the customer.
givenConsentIdGiven consent id.
consentBaseVersionThe consent base version associated with the consent
consentOrganisationIdThe organisation that owns the Consent. Typically an 'Operatør'
emailThe customer's email
lineRefReference to the customers journey line, in NeTEx format
countryCodeThe telephone number country code
toStopPlaceThe stop place where the customer’s journey ended, in NeTEx format.
fromStopPlaceThe stop place where the customer’s journey started, in NeTEx format.
telephoneNumberThe customer's telephone number
originalDatedServiceJourneyIdUnique Id for a specific Service Journey, in NeTEx format with ENT as operator
ConsentBaseResponse
Consent terms with long and short description in multiple languages. The descriptions can contain MarkDown
versionThe consent base version
changedAtWhen the consent base was last changed. ISO 8601 date format
createdAtWhen the consent base was created. ISO 8601 date format
consentCodeConsent code used to identify the consent base
validToIf set, the date the consent base is valid to. If this date is in the past, the consent base is deactivated. If not set, the consent is active from validFrom and onwards.
validFromIf set, the date the consent base is valid from. It is not possible to change the consent terms after this date without creating a new version. If not set, the consent base is in draft mode.
consentOwnerOrgIdThe organisation that owns the consent base. If not set, the consent base can be used by all organisations.
Internal description, describing the use cases for the consent base
orgNameSubstitutionPatternThe pattern on which to perform substitution within terms. Facilitates reusable consent basess across organisations
ConsentPatchRequest
validToIf set, the date the consent is valid to. Set the date to deactivate the consent. If not set the consent is active from validFrom and forever after
ConsentTermsRequest
languageCodeISO-639-3 languageCode.
fullDescriptionText describing the terms in detail. The text can contain MarkDown
shortDescriptionShort text explaining the terms. The text can contain MarkDown
GivenConsentRequest
consentIdThe id of the consent defining what and to whom the customer has consented.
consentChoiceWhether this consent has been approved or rejected.
customerNumberCustomer number.
expirationDateWhen the consent expires. ISO 8601 date format
emailThe contact email provided with the consent.
lineRefReference to the customers journey line, in NeTEx format
countryCodeThe telephone number country code provided with the consent
customerRefCustomer reference. Note: If you do not provide a customer reference, the customer number will used as reference.
toStopPlaceThe stop place where the customer’s journey ended, in NeTEx format.
fromStopPlaceThe stop place where the customer’s journey started, in NeTEx format.
telephoneNumberThe telephone number provided with the consent
originalDatedServiceJourneyIdUnique Id for a specific Service Journey, in NeTEx format with ENT as operator
ConsentTermsResponse
languageCodeISO-639-3 language code. 3 characters
fullDescriptionText describing the terms in detail. The text can contain MarkDown
shortDescriptionShort text explaining the terms. The text can contain MarkDown
GivenConsentResponse
idUnique id for the given consent.
Consent response, includes the consent base
changedAtWhen the consent was last changed. ISO 8601 date format
consentIdThe id of the consent defining what the customer has consented.
createdAtWhen the consent was given. ISO 8601 date format
consentChoiceWhether this consent has been approved or rejected.
createdByOrgIdThe organisation through which the consent was given
customerNumberCustomer number. Entur number unique across organisations
expirationDateWhen the consent expires. ISO 8601 date format
distributionChannelDistribution channel through which the consent was given.
emailThe contact email provided with the consent.
lineRefReference to the customers journey line, in NeTEx format
countryCodeThe telephone number country code provided with the consent
customerRefCustomer reference. External reference, unique within an organisation
toStopPlaceThe stop place where the customer’s journey ended, in NeTEx format.
fromStopPlaceThe stop place where the customer’s journey started, in NeTEx format.
telephoneNumberThe telephone number provided with the consent
originalDatedServiceJourneyIdUnique Id for a specific Service Journey, in NeTEx format
GivenConsentPutRequest
consentChoiceWhether this consent has been approved or rejected.
expirationDateWhen the consent expires. ISO 8601 date format
emailThe contact email provided with the consent.
lineRefReference to the customers journey line, in NeTEx format
countryCodeThe telephone number country code provided with the consent
toStopPlaceThe stop place where the customer’s journey ended, in NeTEx format.
fromStopPlaceThe stop place where the customer’s journey started, in NeTEx format.
telephoneNumberThe telephone number provided with the consent
originalDatedServiceJourneyIdUnique Id for a specific Service Journey, in NeTEx format with ENT as operator
ConsentBaseVersionRequest
Consent description and terms in multiple languages. Supports MarkDown
validToIf set, the date the consent base id valid to. Set the date to deactivate the consent. If not set the consent is active from validFrom and forever after
validFromThe date the consent base is valid from. It is not possible to change the consent terms after this date without creating a new version. If not set the consent is in draft mode.
Internal description, describing what the usecases are for the consent
orgNameSubstitutionPatternThe pattern on which to perform substitution within consentDescription and consentTerms. Facilitates reusable consents across organisations.
GivenConsentBulkGetRequest
customerRefsCustomer references to look up.
customerNumbersCustomer numbers to look up.
InternalDescriptionRequest
languageCodeISO-639-3 languageCode. 3 characters
descriptionA description for the partner administrating consents. If the request is an update and this is set to null, the description for the language will be deleted
InternalDescriptionResponse
descriptionA description for the partner administrating consents
languageCodeISO-639-3 language code. 3 characters
GivenConsentBulkUpdateRequest
consentIdThe id of the consent defining what and to whom the customer has consented.
consentChoiceWhether this consent has been approved or rejected.
customerNumberThe customer number
expirationDateWhen the consent expires. ISO 8601 date format
emailThe contact email provided with the consent.
lineRefReference to the customers journey line, in NeTEx format
countryCodeThe telephone number country code provided with the consent
customerRefCustomer reference. Note: If you do not provide a customer ref, the customer number will used as reference.
toStopPlaceThe stop place where the customer’s journey ended, in NeTEx format.
fromStopPlaceThe stop place where the customer’s journey started, in NeTEx format.
telephoneNumberThe telephone number provided with the consent
originalDatedServiceJourneyIdUnique Id for a specific Service Journey, in NeTEx format with ENT as operator
ConsentBaseVersionPatchRequest
Terms to add. Only new languages can be added to existing terms. Updating terms for an existing language will result in an exception.
validToIf set, the date the consent base is valid to. Set the date to deactivate the consent base. If not set, the consent base is active from validFrom and onwards
The internal description. Is only exposed for admin endpoints