📖
Rulecube documentation
v2.4
v2.4
  • Overview
  • Quick Start
  • Tutorial
    • Getting started
    • Create and Run Your First Ruleset
    • Use Constants and Methods
    • Create and Call Functions
    • Adding Testcases
    • Using Lookup Tables
    • Using Entities
    • Using Forms
  • How-to Guides
    • Logging in and Authorization
      • Activate Your Account From an Invitation
      • Log in to Rulecube
      • Change Your Password
      • Recover Your Password
      • Two-factor authentication (2FA)
      • Invite Other Users to Rulecube
      • Edit a User's Role
      • Delete a User
    • Ruleset Development
      • Create a Ruleset
      • Set the Input for a Ruleset
      • Create a Rule
      • Generate Alerts
      • Try out a Ruleset
      • Call a Ruleset from Your Software
      • Entities
        • Create an Entity
        • Drag and Drop a JSON Schema or XSD to create entities
        • Entity instantiation
        • Persisted Entities
      • Constants
        • Constant Tables
      • Functions
      • Built-in Functions
      • Create and Run a Testcase
      • Delete a Ruleset or Components
      • Debugging your Ruleset
    • Create a Workflow
      • Workflow step types
      • Working with documents in a workflow
    • Work with (Environment) Variables
    • Call a Ruleset via Its API From Postman
    • Creating input from JSON Schema
    • Use a Ruleset from Your Software
    • Ruleset Productivity Tips
    • Create an Ockto workflow
    • Alert aggregation
    • Forms
      • Introduction and overview
      • Create a Data table
  • Language Reference
    • Global
    • Array
    • Compression
    • Crypto
    • Date
    • Encryption (deprecated)
    • Finance
    • Http
    • Mail
    • MongoDB
    • Ockto
    • PDF
    • SQL
    • Statistics
    • System
    • UserStore
    • Workflow
Powered by GitBook
On this page
  1. Language Reference

Ockto

Collection of Ockto functions, to get personal data from validated external sources.

Methods

startSession

startSession(sessionId: string, ocktoOptions: { testCaseId?: string, consentCode: Ockto.ConsentCodes, ocktoType: string, odmVersion: string, requestDocuments: string[], disablePartner: boolean, psd2InfoIncluded: boolean, psd2AmountOfMonths: number })

Starts an Ockto session. To be able to use Ockto, an applicable license must be configured for the Tenant.

Parameters

sessionId string

The sessionId used in Ockto.

ocktoOptions { testCaseId?: string, consentCode: Ockto.ConsentCodes, ocktoType: string, odmVersion: string, requestDocuments: string[], disablePartner: boolean, psd2InfoIncluded: boolean, psd2AmountOfMonths: number }

The Ockto options you want to use.

consentCode

ocktoType

Provides the combination of datasources that needs to be collected by the consumer. Contact Ockto support to get the right type.

odmVersion

The version of ODM returned. When left empty or null is used, the latest ODM version will be returned. (V#_#).

requestDocuments

Per specified document a link is returned in the ODM. Using this link the receiver can download the document. Documents are available for 10 minutes and will be deleted when downloaded. By default Ockto does not return documents. Possible values: UPO, UWV, PSD2, PDF

disablePartner

If true, Ockto will not show the add partner data pop-up within the app.

psd2InfoIncluded

If set to true, Ockto will return PSD2 data.

psd2AmountOfMonths

Number of months to be collected (up to 12 moths)

Return type

{ sessionId: string, qrCode: string }

Examples

Ockto.startSession("ac1b098c-928b-4db2-8f47-ca1bec360eba", {
  consentCode: Ockto.ConsentCodes.Algemeen,
  ocktoType: "P",
  odmVersion: "v4_3",
  requestDocuments: [],
  disablePartner: true,
  psd2InfoIncluded: true,
  psd2AmountOfMonths: 3
})

getStatus

getStatus(sessionId: string)

Gets the status of an Ockto session.

Parameters

sessionId string

The sessionId used in Ockto.

Return type

string

Examples

Ockto.getStatus("ac1b098c-928b-4db2-8f47-ca1bec360eba")

getResult

getResult(sessionId: string)

Gets the result of an Ockto session.

Parameters

sessionId string

The sessionId used in Ockto.

Return type

{ [key: string]: any; }

Examples

Ockto.getResult("ac1b098c-928b-4db2-8f47-ca1bec360eba")
PreviousMongoDBNextPDF

Last updated 1 month ago

Consent provided in the app to the user. View the for more information.

Ockto support portal