Loading

DFS Service Layer API (v1)

Download OpenAPI specification:Download

DFS API Description

Additional content will be added here

Authentication

Pre authenticate

Pre authenticates an account by username and password. Checks if the user should perform secondary authentication and if so, returns the available authentication factor for this user, the campaign contact details, status and session details. If the 2FA is disabled for this user then the credentials are checked against the database and the details are returned along with the session. Possible reasons of rejection with HTTP 200: PasscodeInvalid, ContactLocked or AccessDenied. Possible scenarios of pair (Status, Factor):

  • Auth - Passcode - The user is eligible for secondary authentication. The "/v1.1/contacts/{contactId}/authentication/authenticate" must be called as the secondary step which requires a passcode as input. The user will use the time-base one-time codes from a mobile app or a different channel (SMS)
  • Auth - Approve - The user is eligible for secondary authentication. The "/v1.1/contacts/{contactId}/authentication/authenticate" must be called as the secondary step
  • Auth - QrCode - The user is eligible for secondary authentication. The "/v1.1/contacts/{contactId}/authentication/authenticate" must be called as the secondary step
  • Allow - The user is configured to bypass secondary authentication, or is authenticating from a trusted device. The session details are returned and the user will be authenticated without a secondary step
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The pre authentication request which contains the user name, password, trusted device token and a flag to force expiring an existing session on the contact.

UserName
string

The contact name based on which authentication will be done.

Password
string

The password of the contact to authenticate.

TrustedDeviceToken
string

If the supplied token is valid, return an “allow” response, meaning that the user does not have to perform secondary authentication as the attempt originates from a trusted device.

ForceExpiringPreviousSession
required
boolean

A flag which indicates if the current existing session of the contact will be expired or not. It is useful when a contact is logged on multiple devices.

Responses

200

Pre-authentication returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/authentication/pre-authenticate
https://example-host/v1.1/authentication/pre-authenticate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "UserName": "test@additiv.com",
  • "Password": "password",
  • "TrustedDeviceToken": "Rm90MWRjdUc0dnhsRHhvM3lELWJhQjRwaV8zbk1tbkZBd2NOZ0sxbVFzZzo1NmYzYTk3NS03YTQwLTQ4MzAtYTcwMC0xMTkyNWM3NDk1ZjM6YXBpLmZ1dHVyYWUuY29t",
  • "ForceExpiringPreviousSession": true
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "Status": "Allow",
  • "Factor": "Approve",
  • "Provider": "Futurae",
  • "Length": 6,
  • "CampaignContact":
    {
    },
  • "Session":
    {
    }
}

Authenticate [OBSOLETED] Deprecated

Authenticates an account by username and password. This API is deprecated. Use the following endpoint to pre-authenticate: /v1.1/authentication/pre-authenticate. The GlobalSettings table must support the following settings: 2FAFactor = Passcode and 2FAProvider = MTan.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The authentication request which contains the user name, password and a flag to force expiring an existing session on the contact.

UserName
string

The contact name based on which authentication will be done.

Password
string

The password of the contact to authenticate.

ForceExpiringPreviousSession
required
boolean

A flag which indicates if the current existing session of the contact will be expired or not. It is useful when a contact is logged on multiple devices.

Responses

200

Contact identifier returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/authentication/authenticate
https://example-host/v1.1/authentication/authenticate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "UserName": "test@additiv.com",
  • "Password": "password",
  • "ForceExpiringPreviousSession": true
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "CampaignContact":
    {
    }
}

Authenticate

Performs secondary authentication using one of the available factors. The response of this endpoint depends on the chosen factor. If the two-factor authentication is disabled then the session details will be returned and the contact will be automatically authenticated. Possible reasons of rejection with HTTP 200: PasscodeInvalid, ContactLocked or AccessDenied. Possible scenarios of pair (Status, Factor):

  • Allow - Passcode - The session details are returned and the user will be authenticated.
  • Allow - Approve - The session details are returned and the user will be authenticated.
  • Auth / NULL - Approve - The end-user will approve or reject the authentication request via a 2FA mobile app.
  • Auth / NULL - QrCode - The end-user will scan the code received on AsynchronousParameters[QrCodeUrl]. For Auth status a temporary session is returned in order to allow status requests on the current authentication process. A callback is pending to be called by a 2FA provider to complete the authentication.
path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The authentication request which contains the passcode and a flag which establishes a trusted relationship.

Passcode
string

The passcode received on the phone or generated by installed application or on the different channels, such as slack.

SetTrusted
required
boolean

If the authentication is successful (i.e., result is allow), also return a trusted device token which can be used in the future to mark the device from which the authentication attempt took place as trusted.

Responses

200

Authentication details returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/contacts/{contactId}/authentication/authenticate
https://example-host/v1.1/contacts/{contactId}/authentication/authenticate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Passcode": "873154",
  • "SetTrusted": true
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "Status": "Allow",
  • "Factor": "Approve",
  • "TrustedDeviceToken": "Rm90MWRjdUc0dnhsRHhvM3lELWJhQjRwaV8zbk1tbkZBd2NOZ0sxbVFzZzo1NmYzYTk3NS03YTQwLTQ4MzAtYTcwMC0xMTkyNWM3NDk1ZjM6YXBpLmZ1dHVyYWUuY29t",
  • "CampaignContact":
    {
    },
  • "AuthStatusSessionId": "94790aadec3f4f518f6631ceda1c7d1e",
  • "Session":
    {
    },
}

Authenticate status

Checks the authentication status of an account by username and temporary session when async 2FA is enabled. This endpoint can return a response in two different ways:

  • It can wait until the authentication session has been completed and return when the result is available.
  • It can wait just for the next status update during the authentication session and return the new status. It can then be called once again to either retrieve the next status update or wait for the result to become available (depending on how it’s called this time). If the response is successful session details will be returned and the contact will be able to authenticate.
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The authenticate status request which contains the user name and authentication session.

UserName
string

The contact name based on which two factor authentication status is checked.

AuthStatusSessionId
string

The identifier to associate the status request with a specific authentication process. It is generated and returned by the endpoint starting the authentication.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/authentication/authenticate/status
https://example-host/v1.1/authentication/authenticate/status

Request samples

Content type
Copy
Expand all Collapse all
{
  • "UserName": "jim.jones@test.com",
  • "AuthStatusSessionId": "282c6d3e45fd46ef9d1455bccb77f193"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "TrustedDeviceToken": "Rm90MWRjdUc0dnhsRHhvM3lELWJhQjRwaV8zbk1tbkZBd2NOZ0sxbVFzZzo1NmYzYTk3NS03YTQwLTQ4MzAtYTcwMC0xMTkyNWM3NDk1ZjM6YXBpLmZ1dHVyYWUuY29t",
  • "Session":
    {
    }
}

Authenticate onboarding

Authenticates a contact to access onboarding. The authentication is done by mobile number. Use for mobile devices only (from native apps). Pre authenticates an existing contact to gain access to the onboarding using a mobile number as identifier. Triggers sending of second factor (mtan) to the contact to validate the contact. The follow up call with the mtan should be to /contacts/{contactId}/authentication/onboarding/activate.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The authentication onboarding request

MobileNumber
string

The mobile number used to identify the contact. It must be provided without country code separator (|), but including the country code prefix (00 or + as exit code). If the system is not in production mode (test mode) and there are multiple active contacts with the same mobile number then the first contact is returned. If the system is in production mode and there are multiple active contacts with the same mobile number then an HTTP 200 response with result 'MobileMultipleContacts' is returned.

DeviceToken
string

The unique identifier of the device. Does not change through the existence of the application.

PushToken
string

The push token used to send push notifications.

Platform
required
string
Enum: "iOS" "Android"

Device platform / Operating System. iOS,Android

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/authentication/authenticate/onboarding
https://example-host/v1.1/authentication/authenticate/onboarding

Request samples

Content type
Copy
Expand all Collapse all
{
  • "MobileNumber": "082179008188",
  • "DeviceToken": "B90BF9BE-588D-462A-AD00-19C7E26C50F8",
  • "PushToken": "5454332abb7ddd6101b20d132eb55c7cfb0b16b72647242e2de325717668c175",
  • "Platform": "iOS"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "ContactId": 10,
  • "ObfuscatedMobileNumber": "***|*******123"
}

Onboarding activate

Sends an activation link to the given contactId provided that the contact exists and the given mtan is valid. If the contact is already marked as active, it will be reset to be not active until the link is clicked by the contact. If the system is in testing mode, due to testing reasons, the new generated activation key is returned. It can be used later in the reset password flow.

path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The activate onboarding request

MTan
string

The mTan code received on the phone or on the different channels, such as slack.

RedirectUrl
string

optional - The front office redirect url that will be sent to the contact email once the mTan is validated in order to verify the email. If not specified in the request then it will be taken from the application setting. If both are defined, the request value take precedence. Only provide the url in the request if different clients (e.g. different mobile OS Apps) require different urls.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/authentication/onboarding/activate
https://example-host/v1.0/contacts/{contactId}/authentication/onboarding/activate

Request samples

Content type
Copy
Expand all Collapse all
{}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "UserName": "test.name",
  • "Email": "test.name@additiv.ch",
  • "ActivationKey": "9487fd6df75f49c6a7b30431f2eb9a19"
}

Authenticate mobile

Authenticates a contact on a mobile app by user name and password.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The authentication mobile request

UserName
string

The mobile number used to identify the contact.

Password
string

The password of the contact.

ForceExpiringPreviousSession
required
boolean

A flag which indicates if the current existing session of the contact will be expired or not. It is useful when a contact is logged on multiple devices.

DeviceToken
string

The unique identifier of the device. Does not change through the existence of the application.

PushToken
string

The push token used to send push notifications.

Platform
required
string
Enum: "iOS" "Android"

Device platform / Operating System. iOS,Android

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/authentication/authenticate/mobile
https://example-host/v1.0/authentication/authenticate/mobile

Request samples

Content type
Copy
Expand all Collapse all
{
  • "UserName": "test@additiv.com",
  • "Password": "password",
  • "ForceExpiringPreviousSession": true,
  • "DeviceToken": "B90BF9BE-588D-462A-AD00-19C7E26C50F8",
  • "PushToken": "5454332abb7ddd6101b20d132eb55c7cfb0b16b72647242e2de325717668c175",
  • "Platform": "iOS"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "Session":
    {
    }
}

Authenticate SSO

Performs single-sign-on authentication based on a JWT token. The provided JWT access token is validated before authentication.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The SSO authentication request.

AccessToken
string

The SSO jwt access token.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/authentication/authenticate/sso
https://example-host/v1.0/authentication/authenticate/sso

Request samples

Content type
Copy
Expand all Collapse all
{
  • "AccessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJmZjUyNTBhOGM5OTc0NDk4OGFjNjRjZmE2Y2IxNjJkNSIsImlzcyI6IkFkZGl0aXYgQUciLCJzdWIiOiJqZDFAamQuY29tIiwiaWF0IjoxNTI0MDQ0OTUyLCJleHAiOjE1MjQwNDg1NTJ9.KQKCN5CVouVlV0c2SmR1BJxrUr6AD9lWs4lz_qNiNxShsZOStBN8ZgTN20dC2457P90MI2922eFSwtU-G4BXXrLEegCChyXom50jKWI_wsNfXIt2mUD9TEoAXWMO6ITpWNKAm5f1UgPvHsPBh0JJmZ11JWoJkhbQcNjfuXsNra0YAs6D62Znxu-jDDiQWg8hf5379YUEDy6si0XRUXd8mRZ-NIjO_9N_FceabIrJhTelRbr9BrpSY-O929DDv2qBXj7wcLV4i4eZ0z5aotTXWSfjehTGRLgrtOnUOpZycJyqVbEahsOx5KJOwaq0pRZ_l7hOCwncJJ5rernutAjrzA"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "Session":
    {
    }
}

Authenticate mtan [OBSOLETED] Deprecated

Authenticates an account by username and mTan. If the authentication is successful, a session id along with a JWT access token is returned. This API is deprecated. Use the following endpoint to authenticate via MTan: /v1.1/contacts/{contactId}/authentication/authenticate. The GlobalSettings table must support the following settings: 2FAFactor = Passcode and 2FAProvider = MTan.

path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The authentication request

MTan
string

The mTan code received on the phone or on the different channels, such as slack.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/authentication/authenticate/mtan
https://example-host/v1.0/contacts/{contactId}/authentication/authenticate/mtan

Request samples

Content type
Copy
Expand all Collapse all
{
  • "MTan": "9d5s2g2q6"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "Session":
    {
    }
}

Renew token

Renews an expired or existing session/JWT token. Returns the renewed JWT token along with session id.

path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The renew token request

XTokenJwt
string

The XTokenJwt represented as Base64 including SessionId and JwtAccessToken which will be renewed.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

put /v1.0/contacts/{contactId}/authentication/tokens/renew
https://example-host/v1.0/contacts/{contactId}/authentication/tokens/renew

Request samples

Content type
Copy
Expand all Collapse all
{
  • "XTokenJwt": "MTJhNzk0YjQ2ZDVhNDEwNGI1MDM0NTZkYWQ5YThmOTQ6ZXlKaGJHY2lPaUpTVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnFkR2tpT2lJeE1tRTNPVFJpTkRaa05XRTBNVEEwWWpVd016UTFObVJoWkRsaE9HWTVOQ0lzSW1semN5STZJa0ZrWkdsMGFYWWdRVWNpTENKemRXSWlPaUkzSWl3aWFXRjBJam94TlRJMk9UYzVOemswTENKbGVIQWlPakUxTWpZNU9EQTVPVFI5LlNoT0FXc2VUNXcxbmxvVks4QTM3SUdlSjVaTXdNMVNaTTQ3SFB4QVBjZl83dDhyRFFvTUR0NjBqUmU1WWozZEJhd3BCZUdPY1lDMkpyRDN4LVlJelBfUk80T2RhM3pNZjhENTVBc3Rhb2s2VWtTeVJDS0ZhUG04U2JSY19GLW53RFE3emRLdVZiMlNDSngxS0JQUjhJd0dCZ0NzWEE3aThOMTl6clV0YzBYc3RUOF9aQmw5dmU4eHAzRkpQRkRmcmlyc1VTNEx6WWx4Tk03Rk1GTFB4N2d3WXozTnoxWDBjVG1IWnBhS2RFQ2lpZjlPZHlYY25zUVgwekFtZ2VGZFF1NHUxSzBuN21xRlZpRWcweUxJay1jVmNCdnZRLUU4eURoT1k0YlRrbC1NdUVNMFRRODFqZHR4ck1sWjc0RGo5bExyMzdjNTM1VkhFR3lfTkw3d1BuZw=="
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "Session":
    {
    }
}

Renew SSO token

Renews an expired or an existing SSO session/JWT token. Returns the renewed JWT token along with session id.

path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The renew token request

XTokenJwt
string

The XTokenJwt represented as Base64 including SessionId and JwtAccessToken which will be renewed.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

put /v1.0/contacts/{contactId}/authentication/tokens/renew/sso
https://example-host/v1.0/contacts/{contactId}/authentication/tokens/renew/sso

Request samples

Content type
Copy
Expand all Collapse all
{
  • "XTokenJwt": "MTJhNzk0YjQ2ZDVhNDEwNGI1MDM0NTZkYWQ5YThmOTQ6ZXlKaGJHY2lPaUpTVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnFkR2tpT2lJeE1tRTNPVFJpTkRaa05XRTBNVEEwWWpVd016UTFObVJoWkRsaE9HWTVOQ0lzSW1semN5STZJa0ZrWkdsMGFYWWdRVWNpTENKemRXSWlPaUkzSWl3aWFXRjBJam94TlRJMk9UYzVOemswTENKbGVIQWlPakUxTWpZNU9EQTVPVFI5LlNoT0FXc2VUNXcxbmxvVks4QTM3SUdlSjVaTXdNMVNaTTQ3SFB4QVBjZl83dDhyRFFvTUR0NjBqUmU1WWozZEJhd3BCZUdPY1lDMkpyRDN4LVlJelBfUk80T2RhM3pNZjhENTVBc3Rhb2s2VWtTeVJDS0ZhUG04U2JSY19GLW53RFE3emRLdVZiMlNDSngxS0JQUjhJd0dCZ0NzWEE3aThOMTl6clV0YzBYc3RUOF9aQmw5dmU4eHAzRkpQRkRmcmlyc1VTNEx6WWx4Tk03Rk1GTFB4N2d3WXozTnoxWDBjVG1IWnBhS2RFQ2lpZjlPZHlYY25zUVgwekFtZ2VGZFF1NHUxSzBuN21xRlZpRWcweUxJay1jVmNCdnZRLUU4eURoT1k0YlRrbC1NdUVNMFRRODFqZHR4ck1sWjc0RGo5bExyMzdjNTM1VkhFR3lfTkw3d1BuZw=="
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "Session":
    {
    }
}

Validate token

Validates a provided JWT access token (expiration, contactId, memberId, subject, auditContextId). Returns the result type of the validation (Success or one of the invalid result types).

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The validate token request

AccessToken
string

The JWT access token that will be validated.

Responses

200

The validation result returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/authentication/tokens/validate
https://example-host/v1.0/authentication/tokens/validate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "AccessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3NTIzMzE0YjU4ZDU0YTQxYTA1YzI2NDA4MmQzZDRlMiIsImlzcyI6IkFkZGl0aXYgQUciLCJzdWIiOiJzdGVsaWFuLmR1bWl0cmEiLCJpYXQiOjE1NDY4NTg4OTYsImV4cCI6MTU0Njg2MDA5NiwiY2lkIjoxMjM0LCJtaWQiOjB9.VA3Qlfs8tzqryo6imIyZ7vcRDipDI71W_7O6seuojhvoiWom8r0mQMIzgfzTB01CXFvBpx-BhfzODFT1bPsqSoSMdMEiwqMQA3TzaWDfkFmsfQ6ZEx9D7PbUD6TtHj8IrJFrIwlPBlRDuUXPz6lOxdaGMQxmpQagtLi-5NWmQPrj4WjmEvzDLcuWyjWZAuLqTr1xabVGYyZd-kb2dENaDdcjb73jsyw89ChnYii_5j81-mcudouwPIdm5ECvKBW5G2Anbi0ITwusS9eHGd7bx5JAJYKtpt8o2hk4VLC5qx4S6jCn0sTEiB5Kz5FxgFeAHfYesIPOY7SYTLPmF1A7Xw"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Get token by session id

Gets a JWT token for a given sessionId.

path Parameters
contactId
required
integer <int32>

The ID of the contact that the token belongs to.

sessionId
required
string

The session identifier.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.1/contacts/{contactId}/authentication/tokens/{sessionId}
https://example-host/v1.1/contacts/{contactId}/authentication/tokens/{sessionId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "Session":
    {
    }
}

Forgotten password

Triggers a forgotten password process based on username or email. The username takes the priority over email to identify the campaign contact if both are provided. If the contact is registered, then the details of the campaign contact are returned and an mTan is generated and sent to the contact.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The forgotten password request

Email
string

The email for which the password was forgotten.

UserName
string

The user name for which the password was forgotten.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/authentication/forgotten-password
https://example-host/v1.1/authentication/forgotten-password

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Email": "test@additiv.com",
  • "UserName": "test@additiv.com"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "ContactId": 10,
  • "ObfuscatedMobileNumber": "***|*******123"
}

Forgotten password mtan

Sends a forgotten password activation link by email to the given contactId provided that the contact exists, is active and that the given mtan is valid. After this call, the previous password, if existing, can no longer be used and the contact can log-in again only after setting a new password. If the system is in testing mode, due to testing reasons, the new generated activation key is returned. It can be used later in the reset password flow.

path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The forgotten password mtan request

MTan
string

The mTan code received on the phone or on the different channels, such as slack.

RedirectUrl
string

optional - The front office redirect url that will be sent to the contact email once the mTan is validated in order to set a new password. If not specified in the request then it will be taken from the application setting. If both are defined, the request value take precedence. Only provide the url in the request if different clients (e.g. different mobile OS Apps) require different urls.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/authentication/forgotten-password/mtan
https://example-host/v1.0/contacts/{contactId}/authentication/forgotten-password/mtan

Request samples

Content type
Copy
Expand all Collapse all
{}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "ActivationKey": "0ad50dccfeb34571904ce1c98f0859d6"
}

Reset password by activation key

Sets a password for an existing, active contact which is not authenticated based on the provided activation key. Can be used for first password creation or for password reset as long as the contact is active already. If the activation key is valid, the new password is set for the contact. Once the password is set the contact should be redirected to a login page and use the new password.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The reset password request

ActivationKey
string

The activation key used to validate the contact.

Password
string

The new password.

ConfirmPassword
string

The new password confirmed.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/authentication/reset-password
https://example-host/v1.0/authentication/reset-password

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ActivationKey": "565811c5a33940d388488dc7273f3cef",
  • "Password": "newpassword",
  • "ConfirmPassword": "newpassword"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Reset password by contact id

Sets a new password for an existing, active contact with password set which is authenticated based on the contact id provided.

path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The reset password request

Password
string

The new password.

ConfirmPassword
string

The new password confirmed.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/authentication/reset-password
https://example-host/v1.0/contacts/{contactId}/authentication/reset-password

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Password": "newpassword",
  • "ConfirmPassword": "newpassword"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Log off

Logs off an authenticated account.

path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/authentication/logoff
https://example-host/v1.0/contacts/{contactId}/authentication/logoff

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Get contact status

Checks whether a contact is locked due to multiple failed authentication attempts (passcode or mTan) and retrieves his status.

path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/authentication/status
https://example-host/v1.0/contacts/{contactId}/authentication/status

Response samples

Content type
Copy
Expand all Collapse all
{
  • "IsPasscodeLocked": true,
  • "IsMTanLocked": false,
  • "IsTwoFactorLocked": false,
  • "AccountStatusCode": "IsActive"
}

Unlock

Unlocks a contact that was locked due to multiple failed authentication attempts (passcode or mTan). If the contact is not locked an HTTP 200 with Result = ContactAlreadyUnlocked will be returned.

path Parameters
contactId
required
integer <int32>

The contact identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

delete /v1.0/contacts/{contactId}/authentication/unlock
https://example-host/v1.0/contacts/{contactId}/authentication/unlock

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Bank

Get bank list

Returns the list of all banks in the system.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/banks
https://example-host/v1.0/banks

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Create bank

Create a new bank

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

Properties of the bank to create

Name
string
Bic
string
Code
string

Responses

200

OK

post /v1.0/banks
https://example-host/v1.0/banks

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Name": "string",
  • "Bic": "string",
  • "Code": "string"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "Name": "Europe bank",
  • "Bic": "BARCGB22XXX",
  • "Code": "x9x9x9x"
}

Get bank

Return a bank by id

path Parameters
id
required
integer <int32>

Bank id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/banks/{id}
https://example-host/v1.0/banks/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "Name": "Europe bank",
  • "Bic": "BARCGB22XXX",
  • "Code": "x9x9x9x"
}

Update bank

Update existing bank

path Parameters
id
required
integer <int32>

Id of the existing bank

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

Properties of the bank to update

Name
string
Bic
string
Code
string

Responses

200

OK

put /v1.0/banks/{id}
https://example-host/v1.0/banks/{id}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Name": "string",
  • "Bic": "string",
  • "Code": "string"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "Name": "Europe bank",
  • "Bic": "BARCGB22XXX",
  • "Code": "x9x9x9x"
}

Delete bank

Delete bank

path Parameters
id
required
integer <int32>

Id of the existing bank

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

204

No Content

delete /v1.0/banks/{id}
https://example-host/v1.0/banks/{id}

Callback

Futurae success callback authenticate

Provides an API a Futurae server can call in order to deliver status updates as well as the result of a particular authentication attempt (also called authentication session). The URL will be called as a POST request with "Content-Type" header being "application/json". The body of the request will be a JSON object containing the following keys and corresponding values: user_id, username, session_id, result, status, status_msg and trusted_device_token. The session ID identifies the particular authentication session and is conditionally returned by /v1.1/authentication/authenticate endpoint.

query Parameters
authorization
required
string

The tenant hash identifier

Request Body schema:

The authentication request which contains information about authentication session status.

username
string

The contact name based on which authentication will be done.

user_id
string

The user identifier linked to the UserName used by 2FA provider.

session_id
string

A session ID that identifies the newly created authentication session. It can be used to receive real-time updates regarding the status of the authentication session.

trusted_device_token
string

A token that can be used to mark the device from which the authentication attempt took place as trusted. This can later be passed to the /authentication/preauthenticate endpoint, in order to immediately grant access (without performing secondary authentication), in case the authentication attempt originates from this device.

result
string
Enum: "Allow" "Auth" "Deny" "Waiting" "Unknown" "Success" "Expired" "Pending" "Disabled" "Locked" "InvalidPasscode" "Success2FaDisabled"

The result of the authentication: allow - Authentication was successful. Application should grant access to the user; deny - authentication failed; waiting - authentication is still in-progress.

status
string

The authentication status: bypass, disabled, locked_out.

status_msg
string

The authentication status message.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/callback/authentication/futurae
https://example-host/v1.1/callback/authentication/futurae

Request samples

Content type
Copy
Expand all Collapse all
{
  • "username": "john.jones@additiv.ch",
  • "user_id": "f8d93352-95e0-4ab6-a45a-e2ecb9a32e6b",
  • "session_id": "050b0821-8a63-4080-bf8c-c4413b90300a",
  • "trusted_device_token": "Rm90MWRjdUc0dnhsRHhvM3lELWJhQjRwaV8zbk1tbkZBd2NOZ0sxbVFzZzo1NmYzYTk3NS03YTQwLTQ4MzAtYTcwMC0xMTkyNWM3NDk1ZjM6YXBpLmZ1dHVyYWUuY29t",
  • "result": "Allow",
  • "status": "",
  • "status_msg": "Authenticated"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Futurae success callback enrollment

Provides an API a Futurae server can call in order to inform the application when the enrollment was successfully completed. The body of the request will be a JSON object containing the following keys and corresponding values: user_id, username, activation_code and result. The value of the latter will always be "success", since the callback will only be called when the enrollment is completed successfully.

query Parameters
authorization
required
string

The tenant hash identifier

Request Body schema:

The enrollment request which contains the result of the enrollment process.

username
string

The contact name based on which enrollment will be done.

user_id
string

The user identifier linked to the UserName used by 2FA provider.

activation_code
string

The activation code used to complete the enrollment of the device.

result
string

The result status. The value of the latter will always be “success”, since the callback will only be called when the enrollment is completed successfully.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/callback/enrollment/futurae
https://example-host/v1.1/callback/enrollment/futurae

Request samples

Content type
Copy
Expand all Collapse all
{
  • "username": "john.jones@additiv.ch",
  • "user_id": "56f3a975-7a40-4830-a700-11925c7495f3",
  • "activation_code": "futurae://enroll?activation_code=Rm90MWRjdUc0dnhsRHhvM3lELWJhQjRwaV8zbk1tbkZBd2NOZ0sxbVFzZzo1NmYzYTk3NS03YTQwLTQ4MzAtYTcwMC0xMTkyNWM3NDk1ZjM6YXBpLmZ1dHVyYWUuY29t",
  • "result": "Success"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Common

Health check

Performs a health check of the system. Will return "OK" as "text/plain" if everything is working properly.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/health-check
https://example-host/v1.0/health-check

Response samples

Content type
Copy
Expand all Collapse all
"string"

Get system settings

Returns system settings. If the optional group parameter is passed only settings for this group will be returned, otherwise all available settings.

query Parameters
group
string
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/settings
https://example-host/v1.0/settings

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Get system setting

Returns a specific system setting. The name of the group and the name of the key need to be supplied.

path Parameters
group
required
string
key
required
string
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/settings/{group}/{key}
https://example-host/v1.0/settings/{group}/{key}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Key": "string",
  • "Value": "string",
  • "Group": "string"
}

Reset system settings cache

Clears the cache which stores all the global settings.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

204

No Content

post /v1.0/settings/reset-cache
https://example-host/v1.0/settings/reset-cache

Clear caches

Clears all caches

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

204

No Content

post /v1.0/caches/clear
https://example-host/v1.0/caches/clear

Get current campaign configuration

Returns campaign configuration data. Returns data about the active campaign of the tenant, including a list of product offers and their products, the list of supported languages and the default language. The language DTOs also contain specifications that can be used for number formatting (NumberDecimalSeparator and NumberGroupSeparator).

query Parameters
language
required
string
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/campaigns/current/configuration
https://example-host/v1.0/campaigns/current/configuration

Response samples

Content type
Copy
Expand all Collapse all
{
  • "ProductOffers":
    [
    ],
  • "Languages":
    [
    ],
  • "DefaultLanguage":
    {
    },
  • "DefaultTimeZoneUtcOffsetMinutes": 0
}

Get country list

Returns the list of all countries in the system.

path Parameters
language
required
string

The language of the localized resources

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/countries/{language}
https://example-host/v1.0/countries/{language}

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get language list

Returns the list of all lanuages in the system.

path Parameters
language
required
string

The language of the localized resources

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/languages/{language}
https://example-host/v1.0/languages/{language}

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get bank branch list

Returns the list of all bank branches in the system.

path Parameters
language
required
string

The language of the localized resources

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/bankbranches/{language}
https://example-host/v1.0/bankbranches/{language}

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get severity levels list

Returns the list of all severity levels in the system.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/severity-levels
https://example-host/v1.0/severity-levels

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get datasources

Returns a list of all available data sources.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/datasources/all
https://example-host/v1.0/datasources/all

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get stored procedure names

Returns a list of stored procedures available for the provided data source and schema

path Parameters
dataSourceName
required
string

Name of the data source

schema
required
string

Name of the specific DB schema

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/datasources/{dataSourceName}/storedprocedures/{schema}
https://example-host/v1.0/datasources/{dataSourceName}/storedprocedures/{schema}

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Publish integration event

Publishes an integration event to the event bus

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The parameter DTO

Name
required
string

The actual name of the integration event. Since an event is something that happened in the past, the name of the event should be represented as a past-tense verb, like “OrderCreated”.

Group
string

An ID defining the group the integration event belongs to. This makes it easier to identify events that are all dealing with the same part of an application. An example would be “Ordering”. Not to be mistaken with the ContextId which identifies a unique context.

ContextId
string

Should contain a unique ID to identify the current context. It will be used to identify events belonging to the same context.

Data
string

The payload of the integration event serialized as JSON

EntityName
string

The optional entity name of the event bus. If not passed the default name 'DfsEventBus' will be used

Responses

200

OK

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/integrationevents/publish
https://example-host/v1.0/integrationevents/publish

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Name": "string",
  • "Group": "string",
  • "ContextId": "string",
  • "Data": "string",
  • "EntityName": "string"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Code": "ValidationFailed",
  • "Message": "Validation failed",
  • "Properties":
    {
    }
}

CommonContent

Private asset delivery forms

Gets all asset delivery forms for private clients

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/assetdeliveryforms/private
https://example-host/v1.0/assetdeliveryforms/private

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Corporate asset delivery forms

Gets all asset delivery forms for corporate clients

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/assetdeliveryforms/corporate
https://example-host/v1.0/assetdeliveryforms/corporate

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

All asset delivery forms

Gets all asset delivery forms regardless of the customer type

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/assetdeliveryforms
https://example-host/v1.0/assetdeliveryforms

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Private transferred assets sources

Gets all transferred assets sources available for private clients

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/transferredassetssources/private
https://example-host/v1.0/transferredassetssources/private

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Corporate transferred assets sources

Gets all transferred assets sources available for corporate clients

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/transferredassetssources/corporate
https://example-host/v1.0/transferredassetssources/corporate

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

All transferred assets sources

Gets all transferred assets sources available regardless of the customer type

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/transferredassetssources
https://example-host/v1.0/transferredassetssources

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Private income

Gets all incomes available for private clients

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/incomes/private
https://example-host/v1.0/incomes/private

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Corporate income

Gets all incomes available for corporate clients

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/incomes/corporate
https://example-host/v1.0/incomes/corporate

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

All income

Gets all incomes available regardless of the customer type

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/incomes
https://example-host/v1.0/incomes

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Marital status

Gets all marital statuses

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/maritalstatuses
https://example-host/v1.0/maritalstatuses

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Get risk categories

Gets all risk categories for a specific product

path Parameters
productId
required
integer <int32>
query Parameters
language
required
string
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/products/{productId}/riskcategories
https://example-host/v1.0/products/{productId}/riskcategories

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Get common content

Gets a collection of content artifacts (assets) by asset type

query Parameters
language
required
string
assetType
required
integer <int32>
startRowIndex
integer <int32>
pageSize
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/common/assets
https://example-host/v1.0/common/assets

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Employment types

Gets all employment types

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/employmenttypes
https://example-host/v1.0/employmenttypes

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Business sectors

Gets all business sectors

query Parameters
language
required
string

Language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/businesssectors
https://example-host/v1.0/businesssectors

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Html to pdf

Receives an HTML template, a JSON object, renders the HTML, then generates the PDF from it

query Parameters
downloadFileName
required
string
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

post /v1.0/htmlToPdf
https://example-host/v1.0/htmlToPdf

Response samples

Content type
Copy
Expand all Collapse all
{ }

Generate document schema template

Generates the document schema template using the specified parameters in the request.

Includes the schema, language, contentType, parameters, model and whether to include plain properties.
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
SchemaId
integer <int32>
SchemaKey
string
LanguageId
required
integer <int32>
ContentType
string
Parameters
object (Dictionary`2)

These are the input parameters that will be used by the Stored Procedure

Model
string

Model used by the template, bypassing Stored Procedure

IncludePlainProperties
required
boolean

Responses

200

OK

post /v1.0/templates/generateDocumentSchema
https://example-host/v1.0/templates/generateDocumentSchema

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SchemaId": 0,
  • "SchemaKey": "string",
  • "LanguageId": 0,
  • "ContentType": "string",
  • "Parameters":
    {
    },
  • "Model": "string",
  • "IncludePlainProperties": true
}

Response samples

Content type
Copy
Expand all Collapse all
{ }

Generate template

Generates a template using the specified parameters in the request.

Includes the metadata, language, contentType, parameters, model and whether to include plain properties.
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
TemplateMetadataId
integer <int32>
TemplateMetadataKey
string
LanguageId
required
integer <int32>
ContentType
string
Parameters
object (Dictionary`2)

These are the input parameters that will be used by the Stored Procedure

Model
string

Model used by the template, bypassing Stored Procedure

IncludePlainProperties
required
boolean

Responses

200

OK

post /v1.0/templates/generateTemplate
https://example-host/v1.0/templates/generateTemplate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "TemplateMetadataId": 0,
  • "TemplateMetadataKey": "string",
  • "LanguageId": 0,
  • "ContentType": "string",
  • "Parameters":
    {
    },
  • "Model": "string",
  • "IncludePlainProperties": true
}

Response samples

Content type
Copy
Expand all Collapse all
{ }

Preview template v2

Returns a preview of a generated template.

Includes the header, body, footer, contentType, pageOrientation, dataSet and parameters.
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Header
string
Body
string
Footer
string
ContentType
string
PageOrientation
required
string
Enum: "Portrait" "Landscape"
DataSetId
integer <int32>
DataSourceParameters
object (Dictionary`2)

Responses

200

OK

post /v1.0/templates/preview/v2
https://example-host/v1.0/templates/preview/v2

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Header": "string",
  • "Body": "string",
  • "Footer": "string",
  • "ContentType": "string",
  • "PageOrientation": "Portrait",
  • "DataSetId": 0,
  • "DataSourceParameters":
    {
    }
}

Response samples

Content type
Copy
Expand all Collapse all
{ }

Create render template types

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
Name
string

Responses

200

OK

post /v1.0/rendertemplates/types/create
https://example-host/v1.0/rendertemplates/types/create

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Update render template type

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
Name
string

Responses

200

OK

put /v1.0/rendertemplates/types/update
https://example-host/v1.0/rendertemplates/types/update

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Get render template type

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/types/{id}
https://example-host/v1.0/rendertemplates/types/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Delete render template type

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

delete /v1.0/rendertemplates/types/{id}
https://example-host/v1.0/rendertemplates/types/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Get all render template types

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/types/all
https://example-host/v1.0/rendertemplates/types/all

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Create render template category

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
Name
string

Responses

200

OK

post /v1.0/rendertemplates/categories/create
https://example-host/v1.0/rendertemplates/categories/create

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Update render template category

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
Name
string

Responses

200

OK

put /v1.0/rendertemplates/categories/update
https://example-host/v1.0/rendertemplates/categories/update

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Get render template category

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/categories/{id}
https://example-host/v1.0/rendertemplates/categories/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Delete render template category

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

delete /v1.0/rendertemplates/categories/{id}
https://example-host/v1.0/rendertemplates/categories/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string"
}

Get all render template categories

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/categories/all
https://example-host/v1.0/rendertemplates/categories/all

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Create render template generation data set

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
StoredProcedure
string
Alias
string
ConnectionString
string
InputParams
string
IsCustom
required
boolean

Responses

200

OK

post /v1.0/rendertemplates/datasets/create
https://example-host/v1.0/rendertemplates/datasets/create

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "StoredProcedure": "string",
  • "Alias": "string",
  • "ConnectionString": "string",
  • "InputParams": "string",
  • "IsCustom": true
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "StoredProcedure": "string",
  • "Alias": "string",
  • "ConnectionString": "string",
  • "InputParams": "string",
  • "IsCustom": true
}

Update render template generation data set

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
StoredProcedure
string
Alias
string
ConnectionString
string
InputParams
string
IsCustom
required
boolean

Responses

200

OK

put /v1.0/rendertemplates/datasets/update
https://example-host/v1.0/rendertemplates/datasets/update

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "StoredProcedure": "string",
  • "Alias": "string",
  • "ConnectionString": "string",
  • "InputParams": "string",
  • "IsCustom": true
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "StoredProcedure": "string",
  • "Alias": "string",
  • "ConnectionString": "string",
  • "InputParams": "string",
  • "IsCustom": true
}

Get render template generation data set

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/datasets/{id}
https://example-host/v1.0/rendertemplates/datasets/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "StoredProcedure": "string",
  • "Alias": "string",
  • "ConnectionString": "string",
  • "InputParams": "string",
  • "IsCustom": true
}

Delete render template generation data set

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

delete /v1.0/rendertemplates/datasets/{id}
https://example-host/v1.0/rendertemplates/datasets/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "StoredProcedure": "string",
  • "Alias": "string",
  • "ConnectionString": "string",
  • "InputParams": "string",
  • "IsCustom": true
}

Get all render template generation data sets

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/datasets/all
https://example-host/v1.0/rendertemplates/datasets/all

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Create render template metadata

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
CategoryId
required
integer <int32>
DataSetId
integer <int32>
ShowCustomer
required
boolean
Icon
string
Key
string
Name
string
ShowHeaderPerEachPage
required
boolean
ShowFooterPerEachPage
required
boolean
MemberId
required
integer <int32>
Types
Array of integers <int32>
SelectionParameters
Array of integers <int32>

Responses

200

OK

post /v1.0/rendertemplates/metadatas/create
https://example-host/v1.0/rendertemplates/metadatas/create

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "CategoryId": 0,
  • "DataSetId": 0,
  • "ShowCustomer": true,
  • "Icon": "string",
  • "Key": "string",
  • "Name": "string",
  • "ShowHeaderPerEachPage": true,
  • "ShowFooterPerEachPage": true,
  • "MemberId": 0,
  • "Types":
    [
    ],
  • "SelectionParameters":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Category":
    {
    },
  • "DataSet":
    {
    },
  • "ShowCustomer": true,
  • "Icon": "string",
  • "ShowHeaderPerEachPage": true,
  • "ShowFooterPerEachPage": true,
  • "LastModifiedDate": "2019-11-14T03:21:29Z",
  • "Key": "string",
  • "Name": "string",
  • "Order": 0,
  • "Types":
    [
    ],
  • "SelectionParameters":
    [
    ]
}

Update render template metadata

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
CategoryId
required
integer <int32>
DataSetId
integer <int32>
ShowCustomer
required
boolean
Icon
string
Key
string
Name
string
ShowHeaderPerEachPage
required
boolean
ShowFooterPerEachPage
required
boolean
MemberId
required
integer <int32>
Types
Array of integers <int32>
SelectionParameters
Array of integers <int32>

Responses

200

OK

put /v1.0/rendertemplates/metadatas/update
https://example-host/v1.0/rendertemplates/metadatas/update

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "CategoryId": 0,
  • "DataSetId": 0,
  • "ShowCustomer": true,
  • "Icon": "string",
  • "Key": "string",
  • "Name": "string",
  • "ShowHeaderPerEachPage": true,
  • "ShowFooterPerEachPage": true,
  • "MemberId": 0,
  • "Types":
    [
    ],
  • "SelectionParameters":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Category":
    {
    },
  • "DataSet":
    {
    },
  • "ShowCustomer": true,
  • "Icon": "string",
  • "ShowHeaderPerEachPage": true,
  • "ShowFooterPerEachPage": true,
  • "LastModifiedDate": "2019-11-14T03:21:29Z",
  • "Key": "string",
  • "Name": "string",
  • "Order": 0,
  • "Types":
    [
    ],
  • "SelectionParameters":
    [
    ]
}

Get render template metadata

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/metadatas/{id}
https://example-host/v1.0/rendertemplates/metadatas/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Category":
    {
    },
  • "DataSet":
    {
    },
  • "ShowCustomer": true,
  • "Icon": "string",
  • "ShowHeaderPerEachPage": true,
  • "ShowFooterPerEachPage": true,
  • "LastModifiedDate": "2019-11-14T03:21:29Z",
  • "Key": "string",
  • "Name": "string",
  • "Order": 0,
  • "Types":
    [
    ],
  • "SelectionParameters":
    [
    ]
}

Delete render template metadata

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

delete /v1.0/rendertemplates/metadatas/{id}
https://example-host/v1.0/rendertemplates/metadatas/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Category":
    {
    },
  • "DataSet":
    {
    },
  • "ShowCustomer": true,
  • "Icon": "string",
  • "ShowHeaderPerEachPage": true,
  • "ShowFooterPerEachPage": true,
  • "LastModifiedDate": "2019-11-14T03:21:29Z",
  • "Key": "string",
  • "Name": "string",
  • "Order": 0,
  • "Types":
    [
    ],
  • "SelectionParameters":
    [
    ]
}

Get all render template metadatas

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/metadatas/all
https://example-host/v1.0/rendertemplates/metadatas/all

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Create render template

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
LanguageId
required
integer <int32>
MetadataId
required
integer <int32>
Title
string
Header
string
Body
string
Footer
string

Responses

200

OK

post /v1.0/rendertemplates/create
https://example-host/v1.0/rendertemplates/create

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "LanguageId": 0,
  • "MetadataId": 0,
  • "Title": "string",
  • "Header": "string",
  • "Body": "string",
  • "Footer": "string"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Title": "string",
  • "Header": "string",
  • "Body": "string",
  • "Footer": "string",
  • "LanguageId": 0,
  • "Metadata":
    {
    },
  • "LastUpdateDate": "2019-11-14T03:21:29Z"
}

Update render template

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
LanguageId
required
integer <int32>
MetadataId
required
integer <int32>
Title
string
Header
string
Body
string
Footer
string

Responses

200

OK

put /v1.0/rendertemplates/update
https://example-host/v1.0/rendertemplates/update

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "LanguageId": 0,
  • "MetadataId": 0,
  • "Title": "string",
  • "Header": "string",
  • "Body": "string",
  • "Footer": "string"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Title": "string",
  • "Header": "string",
  • "Body": "string",
  • "Footer": "string",
  • "LanguageId": 0,
  • "Metadata":
    {
    },
  • "LastUpdateDate": "2019-11-14T03:21:29Z"
}

Get render template

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/{id}
https://example-host/v1.0/rendertemplates/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Title": "string",
  • "Header": "string",
  • "Body": "string",
  • "Footer": "string",
  • "LanguageId": 0,
  • "Metadata":
    {
    },
  • "LastUpdateDate": "2019-11-14T03:21:29Z"
}

Delete render template

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

delete /v1.0/rendertemplates/{id}
https://example-host/v1.0/rendertemplates/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Title": "string",
  • "Header": "string",
  • "Body": "string",
  • "Footer": "string",
  • "LanguageId": 0,
  • "Metadata":
    {
    },
  • "LastUpdateDate": "2019-11-14T03:21:29Z"
}

Get all render templates

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/all
https://example-host/v1.0/rendertemplates/all

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Create render document schema

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
Name
string
Key
string
ShowToCustomer
required
boolean
IsMerged
required
boolean
TypeId
required
integer <int32>
RenderTemplateMetadatas
Array of objects (OrderedRenderTemplateMetadataRequest)

Responses

200

OK

post /v1.0/rendertemplates/documentschema/create
https://example-host/v1.0/rendertemplates/documentschema/create

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string",
  • "Key": "string",
  • "ShowToCustomer": true,
  • "IsMerged": true,
  • "TypeId": 0,
  • "RenderTemplateMetadatas":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string",
  • "Key": "string",
  • "ShowToCustomer": true,
  • "IsMerged": true,
  • "TypeId": 0,
  • "Metadatas":
    [
    ]
}

Update render document schema

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Id
required
integer <int32>
Name
string
Key
string
ShowToCustomer
required
boolean
IsMerged
required
boolean
TypeId
required
integer <int32>
RenderTemplateMetadatas
Array of objects (OrderedRenderTemplateMetadataRequest)

Responses

200

OK

put /v1.0/rendertemplates/documentschema/update
https://example-host/v1.0/rendertemplates/documentschema/update

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string",
  • "Key": "string",
  • "ShowToCustomer": true,
  • "IsMerged": true,
  • "TypeId": 0,
  • "RenderTemplateMetadatas":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string",
  • "Key": "string",
  • "ShowToCustomer": true,
  • "IsMerged": true,
  • "TypeId": 0,
  • "Metadatas":
    [
    ]
}

Get render document schema

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/documentschema/{id}
https://example-host/v1.0/rendertemplates/documentschema/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string",
  • "Key": "string",
  • "ShowToCustomer": true,
  • "IsMerged": true,
  • "TypeId": 0,
  • "Metadatas":
    [
    ]
}

Delete render document schema

path Parameters
id
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

delete /v1.0/rendertemplates/documentschema/{id}
https://example-host/v1.0/rendertemplates/documentschema/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string",
  • "Key": "string",
  • "ShowToCustomer": true,
  • "IsMerged": true,
  • "TypeId": 0,
  • "Metadatas":
    [
    ]
}

Get render document schema by key

query Parameters
key
required
string
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/documentschema/getByKey
https://example-host/v1.0/rendertemplates/documentschema/getByKey

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string",
  • "Key": "string",
  • "ShowToCustomer": true,
  • "IsMerged": true,
  • "TypeId": 0,
  • "Metadatas":
    [
    ]
}

Get all render document schemas

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/documentschema/all
https://example-host/v1.0/rendertemplates/documentschema/all

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Get all render document schemas by included metadata

path Parameters
metadataId
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/documentschema/all/{metadataId}
https://example-host/v1.0/rendertemplates/documentschema/all/{metadataId}

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Get all selection parameters

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/rendertemplates/selectionparameters/all
https://example-host/v1.0/rendertemplates/selectionparameters/all

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Communication

Get message by id

Retrieves a message by message id and person id. If the person is a contact then he must be either the sender or a recipient of the message and the list of the recipients is filtered by personId (if person is recipient). If the person is a member then all the recipients are retrieved and the message can be accessed by any member who has hierarchy access to the sender or to one of the recipients. The subject and the text of the message retrieved from the database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

The sender or the recipient identifier of the message or a member who has hierarchy access.

messageId
required
integer <int64>

Message identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The message returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v2.0/persons/{personId}/messages/{messageId}
https://example-host/v2.0/persons/{personId}/messages/{messageId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "SenderId": 1,
  • "SenderFullName": "Zaria Jarvis",
  • "Subject": "Important meeting",
  • "IsRead": false,
  • "IsDeleted": false,
  • "CreateDate": "2019-11-13T10:03:53.1458113Z",
  • "SubtypeId": 0,
  • "Recipients":
    [
    ],
  • "Attachments":
    [
    ]
}

Get message attachment

Retrieves a message attachment by person id, message id and document id. The attachment can be accessed by the sender, by one of the recipients or by a member who has hierarchy access.

path Parameters
personId
required
integer <int32>

The person identifier who is the owner of the document (sender or recipient or a member with hierarchy access).

messageId
required
integer <int64>

The message identifier who contains the attachment.

attachmentId
required
integer <int32>

The attachment identifier - externalId. This id identifies the document stored in DMS system.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The message attachment returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v2.0/persons/{personId}/messages/{messageId}/attachments/{attachmentId}
https://example-host/v2.0/persons/{personId}/messages/{messageId}/attachments/{attachmentId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "FileName": "TestFile.pdf",
  • "Content": "CYl2",
  • "DocumentId": "2001",
  • "MimeType": "application/pdf"
}

Get message attachments

Retrieves the message attachments by person id and message id. The attachments can be accessed by the sender, by one of the recipients or by a member who has hierarchy access.

path Parameters
personId
required
integer <int32>

The person identifier which is the owner of the document (sender or recipient or a member with hierarchy access).

messageId
required
integer <int64>

The message identifier that contains the attachment.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The message attachments returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v2.0/persons/{personId}/messages/{messageId}/attachments
https://example-host/v2.0/persons/{personId}/messages/{messageId}/attachments

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get messages by contact id

Retrieves the messages (sent and/or received) of a contact. The endpoint can be accessed by the RM of the contact, so by the B/O application. The impersonation of the contact should be allowed. The advanced filters are not allowed (MemberBranchIds, MemberCountryIds, ContactCountryIds etc). If the SenderIds filter is provided then it will be applied for the contactId as recipient. If the RecipientIds filter is provided then it will be applied for the contactId as sender.

path Parameters
contactId
required
integer <int32>

Contact id who sent or received the messages.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, createDate, isRead, isDeleted etc

Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
ThreadId
integer <int32>
SubtypeIds
Array of integers <int32>
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/contacts/{contactId}/messages
https://example-host/v2.0/contacts/{contactId}/messages

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ThreadId": 1,
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "TextLength": 10,
  • "SortColumn": "Id",
  • "SortOrder": "desc",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 2,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get threads by contact id

Retrieves all messages of a contact grouped by threads. The endpoint can be accessed by the RM of the contact. The impersonation of the member should be allowed. Only the following filters are supported: PageNumber, PageSize, Text, TextLength, ThreadId, IsRead, IsDeleted, SenderIds, RecipientIds, PageNumber and PageSize. Sorting can be performed by the following columns: Id of thread, Id, CreateDate, Subject and CategoryName of person message. If the SenderIds filter is provided then it will be applied for the contactId as recipient. If the RecipientIds filter is provided then it will be applied for the contactId as sender. The messages from each thread are ordered descending.

path Parameters
contactId
required
integer <int32>

Contact id who sent or received the messages.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text, isRead, isDeleted etc

Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
ThreadId
integer <int32>
SubtypeIds
Array of integers <int32>
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/contacts/{contactId}/message/threads
https://example-host/v2.0/contacts/{contactId}/message/threads

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ThreadId": 1,
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "TextLength": 10,
  • "SortColumn": "Id",
  • "SortOrder": "desc",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 2,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get inbox messages by contact id

Retrieves the received messages of a contact, without revealing all other recipients. The impersonation of the contact should be allowed. The advanced filters should be allowed (MemberBranchIds, MemberCountryIds, ContactCountryIds etc). The RecipientIds filter is not allowed because the contactId is the single recipient involved.

path Parameters
contactId
required
integer <int32>

Contact id who received messages.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, createDate, isRead, isDelete etc

SenderType
integer <int32>
ContactType
integer <int32>
ContactNationalityIds
Array of integers <int32>
ContactLanguageIds
Array of integers <int32>
ContactCountryIds
Array of integers <int32>
MemberBranchIds
Array of integers <int32>
MemberCountryIds
Array of integers <int32>
Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
ThreadId
integer <int32>
SubtypeIds
Array of integers <int32>
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/contacts/{contactId}/messages/inbox
https://example-host/v2.0/contacts/{contactId}/messages/inbox

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SenderType": 2,
  • "ContactType": 1,
  • "ContactNationalityIds":
    [
    ],
  • "ContactLanguageIds":
    [
    ],
  • "ContactCountryIds":
    [
    ],
  • "MemberBranchIds":
    [
    ],
  • "MemberCountryIds":
    [
    ],
  • "Sender": "Joe",
  • "Recipient": "Doe",
  • "StartDate": "2019-11-12T10:03:53.1608272Z",
  • "EndDate": "2019-11-13T10:03:53.1608272Z",
  • "ThreadId": 1,
  • "SubtypeIds":
    [
    ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "TextLength": 10,
  • "SortColumn": "Id",
  • "SortOrder": "desc",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 2,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get sent messages by contact id

Retrieves the sent messages of a contact including all recipients. The impersonation of the contact should be allowed. The advanced filters should be allowed (MemberBranchIds, MemberCountryIds, ContactCountryIds etc). The SenderIds filter is not allowed because the contactId is the single sender involved.

path Parameters
contactId
required
integer <int32>

Contact id who sent the messages.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, createDate, isRead, isDelete etc

SenderType
integer <int32>
ContactType
integer <int32>
ContactNationalityIds
Array of integers <int32>
ContactLanguageIds
Array of integers <int32>
ContactCountryIds
Array of integers <int32>
MemberBranchIds
Array of integers <int32>
MemberCountryIds
Array of integers <int32>
Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
ThreadId
integer <int32>
SubtypeIds
Array of integers <int32>
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/contacts/{contactId}/messages/sent
https://example-host/v2.0/contacts/{contactId}/messages/sent

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SenderType": 2,
  • "ContactType": 1,
  • "ContactNationalityIds":
    [
    ],
  • "ContactLanguageIds":
    [
    ],
  • "ContactCountryIds":
    [
    ],
  • "MemberBranchIds":
    [
    ],
  • "MemberCountryIds":
    [
    ],
  • "Sender": "Joe",
  • "Recipient": "Doe",
  • "StartDate": "2019-11-12T10:03:53.1608272Z",
  • "EndDate": "2019-11-13T10:03:53.1608272Z",
  • "ThreadId": 1,
  • "SubtypeIds":
    [
    ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "TextLength": 10,
  • "SortColumn": "Id",
  • "SortOrder": "desc",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 2,
  • "PageNumber": 1,
  • "PageSize": 10
}

Send message to all contacts RM

Sends a new message to all RMs of a specific contact.

path Parameters
contactId
required
integer <int32>

Contact id who sends the message.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Send message parameter

SubtypeId
required
integer <int32>

The subtype identifier of the message.

CustomAttributes
string

The custom attributes of the message represented as json.

Subject
string

The subject of the message. It will be sanitized in order to avoid XSS attacks.

Text
string

The content/text body of the message. It will be sanitized in order to avoid XSS attacks.

Attachments
Array of objects (MessageAttachment)

The list of the message attachments (file name and content of the file).

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/contacts/{contactId}/messages/send
https://example-host/v2.0/contacts/{contactId}/messages/send

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SubtypeId": 1,
  • "CustomAttributes": "{\"RecipientClientFilters\" : [19, 20]}",
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "Attachments":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "Message":
    {
    }
}

Send message to member

Sends a new message to a specific member.

path Parameters
contactId
required
integer <int32>

Contact id who sends the message.

memberId
required
integer <int32>

Member id who receives the message.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Send message parameter

SubtypeId
required
integer <int32>

The subtype identifier of the message.

CustomAttributes
string

The custom attributes of the message represented as json.

Subject
string

The subject of the message. It will be sanitized in order to avoid XSS attacks.

Text
string

The content/text body of the message. It will be sanitized in order to avoid XSS attacks.

Attachments
Array of objects (MessageAttachment)

The list of the message attachments (file name and content of the file).

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/contacts/{contactId}/members/{memberId}/messages/send
https://example-host/v2.0/contacts/{contactId}/members/{memberId}/messages/send

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SubtypeId": 1,
  • "CustomAttributes": "{\"RecipientClientFilters\" : [19, 20]}",
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "Attachments":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "Message":
    {
    }
}

Reply message

Replies with a new message to a sender of a given message.

path Parameters
personId
required
integer <int32>

The person recipient of the original message or the sender of the new message.

messageId
required
integer <int64>

The original message identifier.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Reply message parameter.

Subject
string

The subject of the message. It will be sanitized in order to avoid XSS attacks.

Text
string

The content/text body of the message. It will be sanitized in order to avoid XSS attacks.

Attachments
Array of objects (MessageAttachment)

The list of the message attachments (file name and content of the file).

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/persons/{personId}/messages/{messageId}/reply
https://example-host/v2.0/persons/{personId}/messages/{messageId}/reply

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "Attachments":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "Message":
    {
    }
}

Get messages by member id

Retrieves the messages (sent and/or received) of a member. The endpoint can be accessed by the RM of the member. The impersonation of the member should be allowed. The advanced filters should allowed (MemberBranchIds, MemberCountryIds, ContactCountryIds etc). If the SenderIds filter is provided then it will be applied for the memberId as recipient. If the RecipientIds filter is provided then it will be applied for the memberId as sender.

path Parameters
memberId
required
integer <int32>

Contact id who sent or received the messages.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, createDate, isRead, isDeleted etc

SenderType
integer <int32>
ContactType
integer <int32>
ContactNationalityIds
Array of integers <int32>
ContactLanguageIds
Array of integers <int32>
ContactCountryIds
Array of integers <int32>
MemberBranchIds
Array of integers <int32>
MemberCountryIds
Array of integers <int32>
Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
ThreadId
integer <int32>
SubtypeIds
Array of integers <int32>
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/members/{memberId}/messages
https://example-host/v2.0/members/{memberId}/messages

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SenderType": 2,
  • "ContactType": 1,
  • "ContactNationalityIds":
    [
    ],
  • "ContactLanguageIds":
    [
    ],
  • "ContactCountryIds":
    [
    ],
  • "MemberBranchIds":
    [
    ],
  • "MemberCountryIds":
    [
    ],
  • "Sender": "Joe",
  • "Recipient": "Doe",
  • "StartDate": "2019-11-12T10:03:53.1608272Z",
  • "EndDate": "2019-11-13T10:03:53.1608272Z",
  • "ThreadId": 1,
  • "SubtypeIds":
    [
    ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "TextLength": 10,
  • "SortColumn": "Id",
  • "SortOrder": "desc",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 2,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get inbox messages by member id

Retrieves the received messages of a member, including all other recipients. The impersonation of the member should be allowed. The advanced filters should be allowed (MemberBranchIds, MemberCountryIds, ContactCountryIds etc). The RecipientIds filter is not allowed because the memberId is the single recipient involved.

path Parameters
memberId
required
integer <int32>

Member id who received messages.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, createDate, isRead, isDelete etc

SenderType
integer <int32>
ContactType
integer <int32>
ContactNationalityIds
Array of integers <int32>
ContactLanguageIds
Array of integers <int32>
ContactCountryIds
Array of integers <int32>
MemberBranchIds
Array of integers <int32>
MemberCountryIds
Array of integers <int32>
Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
ThreadId
integer <int32>
SubtypeIds
Array of integers <int32>
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/members/{memberId}/messages/inbox
https://example-host/v2.0/members/{memberId}/messages/inbox

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SenderType": 2,
  • "ContactType": 1,
  • "ContactNationalityIds":
    [
    ],
  • "ContactLanguageIds":
    [
    ],
  • "ContactCountryIds":
    [
    ],
  • "MemberBranchIds":
    [
    ],
  • "MemberCountryIds":
    [
    ],
  • "Sender": "Joe",
  • "Recipient": "Doe",
  • "StartDate": "2019-11-12T10:03:53.1608272Z",
  • "EndDate": "2019-11-13T10:03:53.1608272Z",
  • "ThreadId": 1,
  • "SubtypeIds":
    [
    ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "TextLength": 10,
  • "SortColumn": "Id",
  • "SortOrder": "desc",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 2,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get sent messages by member id

Retrieves the sent messages of a member including all other recipients. The impersonation of the member should be allowed. The advanced filters should be allowed (MemberBranchIds, MemberCountryIds, ContactCountryIds etc). The SenderIds filter is not allowed because the memberId is the single sender involved.

path Parameters
memberId
required
integer <int32>

Member id who sent the messages.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, createDate, isRead, isDelete etc

SenderType
integer <int32>
ContactType
integer <int32>
ContactNationalityIds
Array of integers <int32>
ContactLanguageIds
Array of integers <int32>
ContactCountryIds
Array of integers <int32>
MemberBranchIds
Array of integers <int32>
MemberCountryIds
Array of integers <int32>
Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
ThreadId
integer <int32>
SubtypeIds
Array of integers <int32>
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/members/{memberId}/messages/sent
https://example-host/v2.0/members/{memberId}/messages/sent

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SenderType": 2,
  • "ContactType": 1,
  • "ContactNationalityIds":
    [
    ],
  • "ContactLanguageIds":
    [
    ],
  • "ContactCountryIds":
    [
    ],
  • "MemberBranchIds":
    [
    ],
  • "MemberCountryIds":
    [
    ],
  • "Sender": "Joe",
  • "Recipient": "Doe",
  • "StartDate": "2019-11-12T10:03:53.1608272Z",
  • "EndDate": "2019-11-13T10:03:53.1608272Z",
  • "ThreadId": 1,
  • "SubtypeIds":
    [
    ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "TextLength": 10,
  • "SortColumn": "Id",
  • "SortOrder": "desc",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 2,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get hierarchy messages by member id

Retrieves the messages that a member has access to through Hierachy Access.

path Parameters
memberId
required
integer <int32>

The member who has access to through Hierachy Access.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, CreateDate,IsActive, IsRead,IsDelete

SenderType
integer <int32>
ContactType
integer <int32>
ContactNationalityIds
Array of integers <int32>
ContactLanguageIds
Array of integers <int32>
ContactCountryIds
Array of integers <int32>
MemberBranchIds
Array of integers <int32>
MemberCountryIds
Array of integers <int32>
Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
ThreadId
integer <int32>
SubtypeIds
Array of integers <int32>
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/members/{memberId}/hierarchy/messages
https://example-host/v2.0/members/{memberId}/hierarchy/messages

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SenderType": 2,
  • "ContactType": 1,
  • "ContactNationalityIds":
    [
    ],
  • "ContactLanguageIds":
    [
    ],
  • "ContactCountryIds":
    [
    ],
  • "MemberBranchIds":
    [
    ],
  • "MemberCountryIds":
    [
    ],
  • "Sender": "Joe",
  • "Recipient": "Doe",
  • "StartDate": "2019-11-12T10:03:53.1608272Z",
  • "EndDate": "2019-11-13T10:03:53.1608272Z",
  • "ThreadId": 1,
  • "SubtypeIds":
    [
    ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "TextLength": 10,
  • "SortColumn": "Id",
  • "SortOrder": "desc",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 3,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get message threads by member id

Retrieves all messages of a member that he has access to directly (sender or recipient) or through hierarchy access from other members. The messages are grouped by threads. The endpoint can be accessed by the RM of the contact. The impersonation of the member should be allowed. The following filters are supported: PageNumber, PageSize, Text, TextLength, ThreadId, IsRead, IsDeleted, SenderIds, RecipientIds, PageNumber and PageSize. Sorting can be performed by the following columns: Id of thread, Id, CreateDate, Subject and CategoryName of person message. If the SenderIds filter is provided then it should contain only the member ids from the hierarchy of the member. The final filter will contain the memberIds + direct their contacts + sendersIds which are not of type member. If the RecipientIds filter is provided then it should contain only the member ids from the hierarchy of the member. The final filter will contain the memberIds + direct their contacts + recipientIds which are not of type member. The messages from each thread are ordered descending.

path Parameters
memberId
required
integer <int32>

Member id who sent or received the messages or has access to other members.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text, senderIds, recipientIds etc

Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
ThreadId
integer <int32>
SubtypeIds
Array of integers <int32>
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/members/{memberId}/hierarchy/message/threads
https://example-host/v2.0/members/{memberId}/hierarchy/message/threads

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ThreadId": 1,
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "TextLength": 10,
  • "SortColumn": "Id",
  • "SortOrder": "desc",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 2,
  • "PageNumber": 1,
  • "PageSize": 10
}

Send message

Sends a new message to a subset of recipients. The list of the recipients is mandatory.

path Parameters
memberId
required
integer <int32>

Member identifier who sends the message.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Send message parameter including the list of the recipients.

RecipientIds
Array of integers <int32>

The person identifiers who receive the message. The recipients can be both contacts and members. The message will be sent to all recipients.

SubtypeId
required
integer <int32>

The subtype identifier of the message.

CustomAttributes
string

The custom attributes of the message represented as json.

Subject
string

The subject of the message. It will be sanitized in order to avoid XSS attacks.

Text
string

The content/text body of the message. It will be sanitized in order to avoid XSS attacks.

Attachments
Array of objects (MessageAttachment)

The list of the message attachments (file name and content of the file).

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v2.0/members/{memberId}/messages/send
https://example-host/v2.0/members/{memberId}/messages/send

Request samples

Content type
Copy
Expand all Collapse all
{
  • "RecipientIds":
    [
    ],
  • "SubtypeId": 1,
  • "CustomAttributes": "{\"RecipientClientFilters\" : [19, 20]}",
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "Attachments":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "Message":
    {
    }
}

Count unread messages count

Retrieves the number of unread messages. If count is greater than 99 then return 99+

path Parameters
personId
required
integer <int32>

Person id who received the messages

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/persons/{personId}/messages/unread/count
https://example-host/v1.0/persons/{personId}/messages/unread/count

Response samples

Content type
Copy
Expand all Collapse all
"string"

Set message read status

Marks a message as read or unread.

path Parameters
personId
required
integer <int32>

Person id who sent or received the message.

messageId
required
integer <int64>

Message identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The payload containing the flag which marks the message as read or unread.

IsRead
required
boolean

A flag to specify whether the message is read or not.

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

patch /v1.1/persons/{personId}/messages/{messageId}
https://example-host/v1.1/persons/{personId}/messages/{messageId}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "IsRead": true
}

Response samples

Content type
No sample

Delete message

Marks a message as deleted.

path Parameters
personId
required
integer <int32>

Person id who sent or received the message

messageId
required
integer <int64>

Message identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

delete /v1.0/persons/{personId}/messages/{messageId}
https://example-host/v1.0/persons/{personId}/messages/{messageId}

Response samples

Content type
Copy
Expand all Collapse all
"Continue"

Get message types

Retrieves all types of messages that belong to a campaign.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v2.0/message-types
https://example-host/v2.0/message-types

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Notifications

Gets notifications available for a given relationship manager At this moment we get only contact birth date as notification

path Parameters
personId
required
integer <int32>
query Parameters
startDate
string <date-time>

All notifications with date greater than or equal to startDate. If this is not provided then startDate will be DateTime.UtcNow. The format is: YYYY-MM-dd

endDate
string <date-time>

All notifications with date less than or equal to endDate. If this is not provided then endDate will be DateTime.UtcNow.AddYears(1). The format is: YYYY-MM-dd

notificationType
integer <int32>

Type of notification. Ex: 1 for birthdate. If this is not provided then notificationType will be 1 (birthdate)

withHierarchy
boolean

By default is false.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/persons/{personId}/notifications
https://example-host/v1.0/persons/{personId}/notifications

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Notes

Returns a list of notes (for the day) for a given relationship manager's contacts. Items will be ordered by the notes' EndDate, ascending.

path Parameters
personId
required
integer <int32>
query Parameters
startDate
string <date-time>

All notes with date greater than or equal to startDate. If this is not provided then startDate will be DateTime.UtcNow.The format is: YYYY-MM-dd

endDate
string <date-time>

All notes with date less than or equal to endDate.If this is not provided then endDate will be DateTime.UtcNow.AddYears(1) The format is: YYYY-MM-dd

withHierarchy
boolean

By default is false.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/persons/{personId}/notes
https://example-host/v1.0/persons/{personId}/notes

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Tickets

Returns a list of calendar entries based on the Tasks and Notifications corresponding to the currently logged in RM. This information will be used to populate an RMs calendar with relevant information, color coded based on the Calendar Entry Type.

path Parameters
personId
required
integer <int32>
query Parameters
startDueDate
string <date-time>

All tickets with DueDate greater than or equal to startDueDate. This parameter is optional. The format is: YYYY-MM-dd

endDueDate
string <date-time>

All tickets with DueDate less than or equal to endDueDate. This parameter is optional. The format is: YYYY-MM-dd

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/persons/{personId}/tickets
https://example-host/v1.0/persons/{personId}/tickets

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Clients

Returns the clients of a relationship manager.

path Parameters
personId
required
integer <int32>
query Parameters
language
string

The language of the localized resources

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/persons/{personId}/clients
https://example-host/v1.0/persons/{personId}/clients

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get message by id [OBSOLETED] Deprecated

Retrieves a message by message id and person id. The subject and the text of the message retrieved from database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

Person id who sent or received the message

id
required
integer <int64>

Message id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The message was returned successfully.

get /v1.0/persons/{personId}/messages/{id}
https://example-host/v1.0/persons/{personId}/messages/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "CreationDate": "2019-11-13T10:03:53.1920257Z",
  • "IsActive": true,
  • "IsRead": false,
  • "IsDeleted": false,
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "SubtypeId": 1,
  • "SubtypeName": "SubtypeName",
  • "SourceId": 1,
  • "SourceName": "SourceName",
  • "SenderId": 50,
  • "SenderFullName": "Stephaine Stutes",
  • "RecipientId": 2,
  • "RecipientFullName": "Magaly Sabat",
  • "ThreadId": 1,
  • "CampaignId": 1,
  • "ThreadShortName": "ThreadShortName",
  • "Attachments":
    [
    ]
}

Get message by id v11 [OBSOLETED] Deprecated

[DEPRECATED Please use GET /v2.0/persons/{personId}/messages/{messageId} instead. The new endpoint can be accessed by any member who has hierarchy access to sender or one of the recipients.] Retrieves a message by message id and person id. The subject and the text of the message retrieved from database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

Person id who sent or received the message

id
required
integer <int64>

Message id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The message was returned successfully.

get /v1.1/persons/{personId}/messages/{id}
https://example-host/v1.1/persons/{personId}/messages/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "CreationDate": "2019-11-13T10:03:53.1920257Z",
  • "IsActive": true,
  • "IsRead": false,
  • "IsDeleted": false,
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "SubtypeId": 1,
  • "SubtypeName": "SubtypeName",
  • "SourceId": 1,
  • "SourceName": "SourceName",
  • "SenderId": 50,
  • "SenderFullName": "Stephaine Stutes",
  • "Recipients":
    [
    ],
  • "Attachments":
    [
    ]
}

Get message with attachments [OBSOLETED] Deprecated

Retrieves the message with attachments by person id and message id. The subject and the text of the message retrieved from database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

The person identifier who is the owner of the document.

messageId
required
integer <int64>

The message identifier who contains the attachment.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The message details with attachments returned successfully.

get /v1.0/persons/{personId}/messages/{messageId}/attachments
https://example-host/v1.0/persons/{personId}/messages/{messageId}/attachments

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "CreationDate": "2019-11-13T10:03:53.1920257Z",
  • "IsActive": true,
  • "IsRead": false,
  • "IsDeleted": false,
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "SubtypeId": 1,
  • "SubtypeName": "SubtypeName",
  • "SourceId": 1,
  • "SourceName": "SourceName",
  • "SenderId": 50,
  • "SenderFullName": "Stephaine Stutes",
  • "RecipientId": 2,
  • "RecipientFullName": "Magaly Sabat",
  • "ThreadId": 1,
  • "CampaignId": 1,
  • "ThreadShortName": "ThreadShortName",
  • "Attachments":
    [
    ]
}

Get message with attachments v11 [OBSOLETED] Deprecated

[DEPRECATED Use GET /v2.0/persons/{personId}/messages/{messageId}/attachments instead. The new endpoint can be accessed by any member who has hierarchy access to sender or one of the recipients.] Retrieves the message with attachments by person id and message id. The subject and the text of the message retrieved from database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

The person identifier who is the owner of the document.

messageId
required
integer <int64>

The message identifier who contains the attachment.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The message details with attachments returned successfully.

get /v1.1/persons/{personId}/messages/{messageId}/attachments
https://example-host/v1.1/persons/{personId}/messages/{messageId}/attachments

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "CreationDate": "2019-11-13T10:03:53.1920257Z",
  • "IsActive": true,
  • "IsRead": false,
  • "IsDeleted": false,
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "SubtypeId": 1,
  • "SubtypeName": "SubtypeName",
  • "SourceId": 1,
  • "SourceName": "SourceName",
  • "SenderId": 50,
  • "SenderFullName": "Stephaine Stutes",
  • "Recipients":
    [
    ],
  • "Attachments":
    [
    ]
}

Get message attachment [OBSOLETED] Deprecated

[DEPRECATED Use GET /v2.0/persons/{personId}/messages/{messageId}/attachments/{attachmentId} instead. The new endpoint can be accessed by any member who has hierarchy access to sender or one of the recipients.] Retrieves a message attachment by person id, message id and document id. The content of the message attachment retrieved from database is sanitized for better formatting.

path Parameters
personId
required
integer <int32>

The person identifier who is the owner of the document.

messageId
required
integer <int64>

The message identifier who contains the attachment.

attachmentId
required
integer <int32>

The attachment identifier - externalId. This id identifies the document stored in DMS system.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The message attachment returned successfully.

get /v1.0/persons/{personId}/messages/{messageId}/attachments/{attachmentId}
https://example-host/v1.0/persons/{personId}/messages/{messageId}/attachments/{attachmentId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "FileName": "TestFile.pdf",
  • "Content": "CYl2",
  • "DocumentId": "2001",
  • "MimeType": "application/pdf"
}

Set message is read [OBSOLETED] Deprecated

[DEPRECATED Use PATCH v1.1/persons/{personId}/messages/{id} instead] Marks a message as read.

path Parameters
personId
required
integer <int32>

Person id who sent or received the message.

id
required
integer <int64>

Message id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

204

No Content

put /v1.0/persons/{personId}/messages/{id}/read
https://example-host/v1.0/persons/{personId}/messages/{id}/read

Set message is unread [OBSOLETED] Deprecated

[DEPRECATED Use PATCH v1.1/persons/{personId}/messages/{id} instead] Marks a message as unread.

path Parameters
personId
required
integer <int32>

Person id who sent or received the message

id
required
integer <int64>

Message id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

204

No Content

put /v1.0/persons/{personId}/messages/{id}/unread
https://example-host/v1.0/persons/{personId}/messages/{id}/unread

Send message [OBSOLETED] Deprecated

[DEPRECATED Use POST /v2.0/contacts/{contactId}/messages/send - to send a message from a contact to all
or POST /v2.0/contacts/{contactId}/members/{memberId}/messages/send - to send a message from a contact to a member or POST /v2.0/members/{memberId}/messages/send - to send a message from a member to multiple recipients (contacts and/or members).] Create/save message coming from a sender. The subject and text of the message are sanitized before saving in the database in order to avoid XSS attacks.

  • If not allowed elements are detected then the request is rejected with Result=MessageNotAllowed and related rejected elements.
  • If the request is accepted after sanitization process then a response with Result=Success and message details (sanitized) is returned.
path Parameters
personId
required
integer <int32>

Person id who sent the message

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The message which will be sent

ContactMessageSubtypeId
required
integer <int32>

Used only in v1.1. The subtype identifier of the message.

ContactMessageSourceId
required
integer <int32>

Used only in v1.1. The source identifier of the message.

Subject
string

The subject of the message. It will be sanitized in order to avoid XSS attacks.

Text
string

The content/text body of the message. It will be sanitized in order to avoid XSS attacks.

Properties
string

The properties of the message.

RecipientId
required
integer <int32>

Used only in v1.1. The person identifier who receives the message. The recipient can be either a contact, either a member.

Attachments
Array of objects (MessageAttachment)

The list of the message attachments (file name and content of the file).

Responses

200

OK

post /v1.1/persons/{personId}/messages
https://example-host/v1.1/persons/{personId}/messages

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ContactMessageSubtypeId": 1,
  • "ContactMessageSourceId": 1,
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "RecipientId": 2,
  • "Attachments":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "Message":
    {
    }
}

Send message async [OBSOLETED] Deprecated

[DEPRECATED Use POST /v2.0/members/{memberId}/messages/send to send a message from a member to multiple recipients (contacts and/or members) instead.] Create/save message coming from a sender to multiple recipients. The subject and text of the message are sanitized before saving in the database in order to avoid XSS attacks.

  • If not allowed elements are detected then the request is rejected with Result=MessageNotAllowed and related rejected elements.
  • If the request is accepted after sanitization process then a response with Result=Success and message details (sanitized) is returned. The sender id is validated whether exists in database and is a member. The list of provided recipientIds is validated. If any recipientId is invalid (not found) then the request is rejected.
path Parameters
memberId
required
integer <int32>

The member identifier who sends the message.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The message that will be sent to multiple recipients (contacts or members) in bulk.

SubtypeId
required
integer <int32>

The subtype identifier of the message.

SourceId
required
integer <int32>

The source identifier of the message.

Subject
string

The subject of the message. It will be sanitized in order to avoid XSS attacks.

Text
string

The content/text body of the message. It will be sanitized in order to avoid XSS attacks.

Properties
string

The properties of the message.

RecipientIds
Array of integers <int32>

The person identifiers who receives the message. The recipients can be both contacts and members. The message will be sent to all recipients.

Attachments
Array of objects (MessageAttachment)

The list of the message attachments (file name and content of the file).

Responses

200

OK

post /v1.1/members/{memberId}/messages
https://example-host/v1.1/members/{memberId}/messages

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SubtypeId": 1,
  • "SourceId": 1,
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "Properties": "Properties test",
  • "RecipientIds":
    [
    ],
  • "Attachments":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "MessageId": 1001,
  • "NoOfRecipients": 2
}

Reply message [OBSOLETED] Deprecated

[DEPRECATED Use POST /v2.0/persons/{personId}/messages/{messageId}/reply instead to reply a new message from the recipient to sender.] Reply to the original message. The subject and text of the reply message are sanitized before saving in the database in order to avoid XSS attacks.

  • If not allowed elements are detected then the request is rejected with Result=MessageNotAllowed and related rejected elements.
  • If the request is accepted after sanitization process then a response with Result=Success and reply message details (sanitized) is returned.
path Parameters
personId
required
integer <int32>

Person id who will reply the message

id
required
integer <int64>

Message id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The reply message with attachments

Subject
string

The subject of the message. It will be sanitized in order to avoid the XSS attacks.

Text
string

The content/text of the message. It will be sanitized in order to avoid the XSS attacks.

Attachments
Array of objects (MessageAttachment)

The list of the attached files.

Responses

200

OK

post /v1.1/persons/{personId}/messages/{id}/reply
https://example-host/v1.1/persons/{personId}/messages/{id}/reply

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "Attachments":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "Message":
    {
    }
}

Reply message async [OBSOLETED] Deprecated

[DEPRECATED Use POST /v2.0/persons/{personId}/messages/{messageId}/reply instead to reply a new message from the recipient to sender. The relationship will be everytime one to one, from recipient to sender, so the replying to multiple recipients won't be available.] Reply the original message to multiple recipients. The subject and text of the reply message are sanitized before saving in the database in order to avoid XSS attacks.

  • If not allowed elements are detected then the request is rejected with Result=MessageNotAllowed and related rejected elements.
  • If the request is accepted after sanitization process then a response with Result=Success and reply message details (sanitized) is returned.
path Parameters
memberId
required
integer <int32>

The member identifier reply the message.

id
required
integer <int64>

Message id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The reply message with attachments

Subject
string

The subject of the message. It will be sanitized in order to avoid the XSS attacks.

Text
string

The content/text of the message. It will be sanitized in order to avoid the XSS attacks.

Attachments
Array of objects (MessageAttachment)

The list of the message attachments (file name and content of the file).

RecipientIds
Array of integers <int32>

The person identifiers who receives the message. The recipients can be both contacts and members. The message will be sent to all recipients.

Responses

200

OK

post /v1.1/members/{memberId}/messages/{id}/reply
https://example-host/v1.1/members/{memberId}/messages/{id}/reply

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Subject": "Reply message: 2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "Attachments":
    [
    ],
  • "RecipientIds":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "MessageId": 1001,
  • "NoOfRecipients": 2
}

Forward message [OBSOLETED] Deprecated

[DEPRECATED Use POST /v2.0/contacts/{contactId}/messages/send - to send a message from a contact to all
or POST /v2.0/contacts/{contactId}/members/{memberId}/messages/send - to send a message from a contact to a member or POST /v2.0/members/{memberId}/messages/send - to send a message from a member to multiple recipients (contacts and/or members).] Forward the original message identified by id to another recipient. The subject and text of the reply message are sanitized before saving in the database in order to avoid XSS attacks.

  • If not allowed elements are detected then the request is rejected with Result=MessageNotAllowed and related rejected elements.
  • If the request is accepted after sanitization process then a response with Result=Success and forward message details (sanitized) is returned.
path Parameters
personId
required
integer <int32>

Person id who will forward the message

id
required
integer <int64>

Message id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The forward message with attachments

RecipientId
required
integer <int32>

The person who receives the message.

Subject
string

The subject of the message. It will be sanitized in order to avoid the XSS attacks.

Text
string

The content/text of the message. It will be sanitized in order to avoid the XSS attacks.

Attachments
Array of objects (MessageAttachment)

The list of the attached files.

Responses

200

OK

post /v1.1/persons/{personId}/messages/{id}/forward
https://example-host/v1.1/persons/{personId}/messages/{id}/forward

Request samples

Content type
Copy
Expand all Collapse all
{
  • "RecipientId": 2,
  • "Subject": "2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "Attachments":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "Message":
    {
    }
}

Forward message async [OBSOLETED] Deprecated

[DEPRECATED Use POST /v2.0/contacts/{contactId}/messages/send - to send a message from a contact to all
or POST /v2.0/contacts/{contactId}/members/{memberId}/messages/send - to send a message from a contact to a member or POST /v2.0/members/{memberId}/messages/send - to send a message from a member to multiple recipients (contacts and/or members).] Forward the original message identified by id to multiple recipients. The subject and text of the reply message are sanitized before saving in the database in order to avoid XSS attacks.

  • If not allowed elements are detected then the request is rejected with Result=MessageNotAllowed and related rejected elements.
  • If the request is accepted after sanitization process then a response with Result=Success and reply message details (sanitized) is returned.
path Parameters
memberId
required
integer <int32>

The member identifier forwards the message.

id
required
integer <int64>

Message id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The forward message with attachments

RecipientIds
Array of integers <int32>

The person identifiers who receives the message. The recipients can be both contacts and members. The message will be sent to all recipients.

Subject
string

The subject of the message. It will be sanitized in order to avoid the XSS attacks.

Text
string

The content/text of the message. It will be sanitized in order to avoid the XSS attacks.

Attachments
Array of objects (MessageAttachment)

The list of the attached files.

Responses

200

OK

post /v1.1/members/{memberId}/messages/{id}/forward
https://example-host/v1.1/members/{memberId}/messages/{id}/forward

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Subject": "Forward message: 2018 FIFA WORLD CUP RUSSIA",
  • "Text": "The 2018 FIFA World Cup is the 21st FIFA World Cup, a quadrennial international football tournament contested by the men's national teams of the member associations of FIFA",
  • "Attachments":
    [
    ],
  • "RecipientIds":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "RemovedElements":
    [
    ],
  • "Message":
    {
    }
}

Get inbox messages [OBSOLETED] Deprecated

Retrieves the list of the received messages. The subject and the text of the messages retrieved from database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

Person id who received the messages

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, CreateDate,IsActive, IsRead,IsDelete

Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
PersonMessageThreadId
integer <int32>
PersonMessageSubtypeIds
Array of integers <int32>
PersonMessageSourceId
integer <int32>
IsActive
boolean
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
AdvancedMessageFilter
object (AdvancedMessageFilter)
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

post /v1.0/persons/{personId}/messages/inbox
https://example-host/v1.0/persons/{personId}/messages/inbox

Request samples

Content type
Copy
Expand all Collapse all
{
  • "StartDate": "2019-11-12T10:03:53.2076506Z",
  • "EndDate": "2019-11-13T10:03:53.2076506Z",
  • "PersonMessageSubtypeIds": [ ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 3,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get inbox messages v11 [OBSOLETED] Deprecated

[DEPRECATED Use POST /v2.0/contacts/{contactId}/messages/inbox or POST /v2.0/members/{memberId}/messages/inbox instead.] Retrieves the list of the received messages. The subject and the text of the messages retrieved from database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

Person id who received the messages

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, CreateDate,IsActive, IsRead,IsDelete

Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
PersonMessageThreadId
integer <int32>
PersonMessageSubtypeIds
Array of integers <int32>
PersonMessageSourceId
integer <int32>
IsActive
boolean
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
AdvancedMessageFilter
object (AdvancedMessageFilter)
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

post /v1.1/persons/{personId}/messages/inbox
https://example-host/v1.1/persons/{personId}/messages/inbox

Request samples

Content type
Copy
Expand all Collapse all
{
  • "StartDate": "2019-11-12T10:03:53.2076506Z",
  • "EndDate": "2019-11-13T10:03:53.2076506Z",
  • "PersonMessageSubtypeIds": [ ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 3,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get sent messages [OBSOLETED] Deprecated

Retrieves the list of the sent messages. The subject and the text of the messages retrieved from database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

Person id who sent the messages

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, CreateDate,IsActive, IsRead,IsDelete

Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
PersonMessageThreadId
integer <int32>
PersonMessageSubtypeIds
Array of integers <int32>
PersonMessageSourceId
integer <int32>
IsActive
boolean
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
AdvancedMessageFilter
object (AdvancedMessageFilter)
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

post /v1.0/persons/{personId}/messages/sent
https://example-host/v1.0/persons/{personId}/messages/sent

Request samples

Content type
Copy
Expand all Collapse all
{
  • "StartDate": "2019-11-12T10:03:53.2076506Z",
  • "EndDate": "2019-11-13T10:03:53.2076506Z",
  • "PersonMessageSubtypeIds": [ ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 3,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get sent messages v11 [OBSOLETED] Deprecated

[DEPRECATED Use POST /v2.0/contacts/{contactId}/messages/sent or POST /v2.0/members/{memberId}/messages/sent instead.] Retrieves the list of the sent messages. The subject and the text of the messages retrieved from database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

Person id who sent the messages

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

A list of filters applied to messages like: text for search, CreateDate,IsActive, IsRead,IsDelete

Sender
string
Recipient
string
StartDate
string <date-time>
EndDate
string <date-time>
PersonMessageThreadId
integer <int32>
PersonMessageSubtypeIds
Array of integers <int32>
PersonMessageSourceId
integer <int32>
IsActive
boolean
IsRead
boolean
IsDeleted
boolean
Text
string
TextLength
integer <int32>
SortColumn
string
SortOrder
string
SenderIds
Array of integers <int32>
RecipientIds
Array of integers <int32>
AdvancedMessageFilter
object (AdvancedMessageFilter)
PageNumber
required
integer <int32>
PageSize
required
integer <int32>

Responses

200

OK

post /v1.1/persons/{personId}/messages/sent
https://example-host/v1.1/persons/{personId}/messages/sent

Request samples

Content type
Copy
Expand all Collapse all
{
  • "StartDate": "2019-11-12T10:03:53.2076506Z",
  • "EndDate": "2019-11-13T10:03:53.2076506Z",
  • "PersonMessageSubtypeIds": [ ],
  • "IsRead": false,
  • "IsDeleted": false,
  • "Text": "fotball",
  • "SenderIds":
    [
    ],
  • "RecipientIds":
    [
    ],
  • "PageNumber": 1,
  • "PageSize": 10
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 3,
  • "PageNumber": 1,
  • "PageSize": 10
}

Get messages in thread [OBSOLETED] Deprecated

[DEPRECATED Use POST /v2.0/contacts/{contactId}/message/threads or POST /v2.0/contacts/{contactId}/messages or POST /v2.0/members/{memberId}/messages or POST /v2.0/members/{memberId}/hierarchy/messages filtered by ThreadId instead.] Retrieves the list of the messages in thread. The subject and the text of the messages retrieved from database are sanitized for better formatting.

path Parameters
personId
required
integer <int32>

Person id who received the messages

personMessageThreadId
required
integer <int32>

personMessageThreadId

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.1/persons/{personId}/thread/{personMessageThreadId}/messages
https://example-host/v1.1/persons/{personId}/thread/{personMessageThreadId}/messages

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Data":
    [
    ],
  • "PageCount": 1,
  • "Total": 2,
  • "PageNumber": 1,
  • "PageSize": 32767
}

Get person message type list Deprecated

[DEPRECATED Use GET /v2.0/message-types instead.] Retrieves all types of messages that belong to a campaign.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/contactmessagetypes
https://example-host/v1.0/contactmessagetypes

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get person message subtype list Deprecated

[DEPRECATED Use GET /v2.0/message-types instead. To obtain all the subtypes of messages all MessageSubtypes must be unified.] Retrieves all subtypes of messages that belong to a campaign.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/contactmessagesubtypes
https://example-host/v1.0/contactmessagesubtypes

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Get person message subtype by contact message type id list Deprecated

[DEPRECATED Use GET /v2.0/message-types instead. To obtain the subtypes of a specific type of message the types of messages must be filtered by Id or Name.] Retrieves all subtypes of messages that belong to a campaign and a type of message.

path Parameters
contactMessageTypeId
required
integer <int32>

The ContactMessageType Id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/contactMessageTypes/{contactMessageTypeId}/contactmessagesubtypes
https://example-host/v1.0/contactMessageTypes/{contactMessageTypeId}/contactmessagesubtypes

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Compliance

Get questionnaires

Returns a list of all available questionnaires for the given productOffer and product combination. Some answers might have follow-up steps which should translate into the client having to present an additional group of questions if that specific answer was picked by the contact.

query Parameters
productId
required
integer <int32>

The product identifier.

language
required
string

The language of the localized resources.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

The list of all available questionnaires returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/questionnaires
https://example-host/v1.0/questionnaires

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Get contact questionnaire

Returns either the contact's last partial questionnaire or the complete one along with the risk profile details (if any). If there are no partial/complete questionnaires for the contact, a new questionnaire will be returned (based on the contact's type). However, in order for this new questionnaire to be returned, a valid productId must be provided and there should also be just one questionnaire set up for that productId and contactType combination.

path Parameters
contactId
required
integer <int32>

The id of the contact

query Parameters
isComplete
required
boolean

The flag indicating that the questionnaire retrieved should be completed or not

productId
required
integer <int32>

The id of the product

language
required
string

The language of the questionnaire

empty
required
boolean

The flag indicating that the questionnaire retrieved should be a new one (if empty = true) or the last one previously saved (if exists)

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The contact's questionnaire returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/questionnaires
https://example-host/v1.0/contacts/{contactId}/questionnaires

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Save contact questionnaire

Stores either a complete or an incomplete questionnaire. The questionnaire should be passed in full, regardless of it being complete or not in terms of answered questions. Each of the answered questions should have either a list of Ids (for single/multi-answer questions) or a Value (for free-text questions) as Value. The response will state whether or not the questionnaire was complete in terms of each question having an answer and, if not, include details as to which QuestionIds caused the questionnaire to be deemed as incomplete. The response can also be a validation exception (HTTP 422) but only if the answer type does not match the question type (e.g.: multiple answers for a single answer type question) or if the answerIds provided are not part the question's answers.

path Parameters
contactId
required
integer <int32>

The contact identifier for which the questionnaire is passed.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The questionnaire passed in full, regardless of it being complete or not in terms of answered questions.

Id
required
integer <int32>
Name
string
Description
string
ContactTypeId
required
integer <int32>
ContactTypeName
string
ProductId
integer <int32>
Groups
Array of objects (QuestionGroup)

Responses

200

The contact questionnaire status returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/questionnaires
https://example-host/v1.0/contacts/{contactId}/questionnaires

Request samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Response samples

Content type
Copy
Expand all Collapse all
{
  • "IsComplete": false,
  • "IncompleteQuestionIds":
    [
    ]
}

Calculate risk profile

Returns the risk profile associated with the user's last complete/incomplete questionnaire. If the contact has no questionnaire available, a validation exception will be returned. If a groupKey is specified, only the risk details for that group are returned. If riskAccepted is set to false, the risk will not be automatically assigned to the contact (the client would need to POST to contacts/acceptrisk separately in order to make this association)

path Parameters
contactId
required
integer <int32>

The id of the contact

query Parameters
productId
required
integer <int32>

The id of the product

completeQuestionnaire
required
boolean

The flag which specifies whether the questionnaire is completed or not

riskAccepted
required
boolean

The flag which specifies whether the risk will be automatically assigned to the contact or not.

language
required
string

The language of the questionnaire

groupKey
string

The key of the group for which risk details are returned

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The risk calculated successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/calculaterisk
https://example-host/v1.0/contacts/{contactId}/calculaterisk

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Score": 20,
  • "RiskCategory":
    {
    }
}

Accept risk

Attaches the calculated risk to the contact's profile. In order for this action to be successful, the contact needs to have a risk associated with his questionnaire; otherwise, a validation exception is returned.

path Parameters
contactId
required
integer <int32>

The id of the contact

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/acceptrisk
https://example-host/v1.0/contacts/{contactId}/acceptrisk

Response samples

Content type
No sample

Set contact chosen risk

Stores the contact's chosen risk. A validation exception is thrown if the chosenRiskId is invalid.

path Parameters
contactId
required
integer <int32>

The id of the contact

chosenRiskId
required
integer <int32>

The id of the risk category that whill be set to the contact

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/setchosenrisk/{chosenRiskId}
https://example-host/v1.0/contacts/{contactId}/setchosenrisk/{chosenRiskId}

Response samples

Content type
No sample

ContactManagement

Register

Registers a new private or corporate contact.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

Registration payload

ContactType
string
Gender
required
boolean
FirstName
string
LastName
string
MobilePhoneNumber
string
UserName
string
Email
string
Password
string
LanguageCultureCode
string
CompanyName
string
AgreeTermsAndPrivacy
required
boolean
RedirectUrl
string

optional - The front office redirect url that will be sent to the contact email which defines the next page after the activation link is clicked and verified. If not specified in the request then it will be taken from the application setting. If both are defined, the request value take precedence. Only provide the url in the request if different clients (e.g. different mobile OS Apps) require different urls.

Responses

200

Contact details returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/register
https://example-host/v1.0/contacts/register

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ContactType": "Private",
  • "Gender": true,
  • "FirstName": "Jim",
  • "LastName": "Jones",
  • "MobilePhoneNumber": "004089761235",
  • "UserName": "jim.jones@additiv.ch",
  • "Email": "jim.jones@additiv.ch",
  • "Password": "test@1234",
  • "LanguageCultureCode": "de-DE",
  • "CompanyName": "Additiv",
  • "AgreeTermsAndPrivacy": true,
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1001,
  • "FirstName": "Jim",
  • "LastName": "Jones",
  • "ContactTypeId": 1,
  • "LanguageId": 2,
  • "Email": "jim.jones@additiv.ch",
  • "SubscribeToAdvertising": false,
  • "Active": false
}

Register anonymous

Registers a new anonymous private or corporate contact.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

Anonymous user registration payload

ContactType
required
string
LanguageCultureCode
required
string
ContactExternalId
required
string
ExternalSystem
string

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/anonymous/register
https://example-host/v1.0/contacts/anonymous/register

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ContactType": "Private",
  • "LanguageCultureCode": "de-DE",
  • "ContactExternalId": "ExtID_X",
  • "ExternalSystem": "CBS"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Code": "ValidationFailed",
  • "Message": "Validation failed",
  • "Properties":
    {
    }
}

Activate contact

Checks if the activation key provided is valid and activates the contact associated with it. If both email and key are provided, then the pair must match the application records but also calling it with key only is a valid scenario. Based on the returned PasswordSetStatus info, the next call should be to authenticate the contact (if password is already set) or to the create password page (following with a call to the reset password end with the same key).

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

Activate payload

ActivationKey
string

Responses

200

Activate contact returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/activate
https://example-host/v1.0/contacts/activate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ActivationKey": "7114d039-6076-4bff-963b-fafdac265301"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "ContactId": 20,
  • "UserName": "jim.jones@additiv.ch",
  • "IsPasswordSet": true
}

Get private user

Gets details of a private user

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Private user returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactid}/private
https://example-host/v1.0/contacts/{contactid}/private

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Gender": true,
  • "FirstName": "Jim",
  • "LastName": "Jones",
  • "Street": "Riedtlistrasse",
  • "StreetNumber": "27",
  • "PostalCode": "8006",
  • "City": "Zurich",
  • "Country": "Switzerland",
  • "NationalityId": 1,
  • "PreferredLanguageCultureCode": "de",
  • "BirthDate": "1985-09-01T00:00:00",
  • "MobileNumber": "00405687428",
  • "PhoneNumber": "90812381273812"
}

Update private user

Updates a private user

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Upload private user payload

Gender
boolean
FirstName
string
LastName
string
Street
string
StreetNumber
string
PostalCode
string
City
string
State
string
Country
string
CountryId
integer <int32>
NationalityId
required
integer <int32>
PreferredLanguageCultureCode
string
BirthDate
string <date-time>
MobileNumber
string
PhoneNumber
string
Email
string

Responses

200

Private user returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

put /v1.0/contacts/{contactid}/private
https://example-host/v1.0/contacts/{contactid}/private

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Gender": true,
  • "FirstName": "Jim",
  • "LastName": "Jones",
  • "Street": "Riedtlistrasse",
  • "StreetNumber": "27",
  • "PostalCode": "8006",
  • "City": "Zurich",
  • "Country": "Switzerland",
  • "NationalityId": 1,
  • "PreferredLanguageCultureCode": "de",
  • "BirthDate": "1985-09-01T00:00:00",
  • "MobileNumber": "00405687428",
  • "PhoneNumber": "90812381273812",
  • "Email": "jim.jones@test.com"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Gender": true,
  • "FirstName": "Jim",
  • "LastName": "Jones",
  • "Street": "Riedtlistrasse",
  • "StreetNumber": "27",
  • "PostalCode": "8006",
  • "City": "Zurich",
  • "Country": "Switzerland",
  • "NationalityId": 1,
  • "PreferredLanguageCultureCode": "de",
  • "BirthDate": "1985-09-01T00:00:00",
  • "MobileNumber": "00405687428",
  • "PhoneNumber": "90812381273812"
}

Get us citizen info

Gets information regarding possible US citizenship for a given contact

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Us citizen info returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactid}/uscitizeninfo
https://example-host/v1.0/contacts/{contactid}/uscitizeninfo

Response samples

Content type
Copy
Expand all Collapse all
{
  • "IsUsCitizen": true,
  • "IsUsBorn": false,
  • "HasUsGreenCard": false,
  • "FulfillsSubstantialPhysiscalPresence": true,
  • "IsUsLiving": true
}

Save us citizen info

Saves information regarding US citizenship

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

US Citizen Info payload

IsUsCitizen
required
boolean
IsUsBorn
required
boolean
HasUsGreenCard
required
boolean
FulfillsSubstantialPhysiscalPresence
required
boolean
IsUsLiving
required
boolean

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

put /v1.0/contacts/{contactid}/uscitizeninfo
https://example-host/v1.0/contacts/{contactid}/uscitizeninfo

Request samples

Content type
Copy
Expand all Collapse all
{
  • "IsUsCitizen": true,
  • "IsUsBorn": false,
  • "HasUsGreenCard": false,
  • "FulfillsSubstantialPhysiscalPresence": true,
  • "IsUsLiving": true
}

Response samples

Content type
No sample

Get beneficial ownership

Gets the beneficial ownership information of a contact

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Beneficial ownership returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactid}/beneficialownerships
https://example-host/v1.0/contacts/{contactid}/beneficialownerships

Response samples

Content type
Copy
Expand all Collapse all
{
  • "IsBeneficialOwnership": true
}

Save beneficial ownership

Saves the beneficial ownership of a contact

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Beneficial ownership payload

IsBeneficialOwnership
boolean

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

put /v1.0/contacts/{contactid}/beneficialownerships
https://example-host/v1.0/contacts/{contactid}/beneficialownerships

Request samples

Content type
Copy
Expand all Collapse all
{
  • "IsBeneficialOwnership": true
}

Response samples

Content type
No sample

Get asset delivery form

Gets the asset delivery form of a contact

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Asset delivery form returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactid}/assetdeliveryforms
https://example-host/v1.0/contacts/{contactid}/assetdeliveryforms

Response samples

Content type
Copy
Expand all Collapse all
{
  • "AsssetDeliveryFormId": 2
}

Save asset delivery form

Saves the asset delivery form of a contact

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Asset delivery form payload

AsssetDeliveryFormId
integer <int32>

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

put /v1.0/contacts/{contactid}/assetdeliveryforms
https://example-host/v1.0/contacts/{contactid}/assetdeliveryforms

Request samples

Content type
Copy
Expand all Collapse all
{
  • "AsssetDeliveryFormId": 2
}

Response samples

Content type
No sample

Financial situation

Gets the financial situation details of a contact

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Financial situation returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactid}/financialsituations
https://example-host/v1.0/contacts/{contactid}/financialsituations

Response samples

Content type
Copy
Expand all Collapse all
{
  • "EarlyIncomeId": 1,
  • "TotalWealthIncomeId": 20,
  • "TransferredAssetsSourceId": 7,
  • "FinancialLiabilities": true
}

Save financial situation

Saves the financial information details of a contact

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Financial situation payload

EarlyIncomeId
integer <int32>
TotalWealthIncomeId
integer <int32>
TransferredAssetsSourceId
integer <int32>
FinancialLiabilities
boolean

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

put /v1.0/contacts/{contactid}/financialsituations
https://example-host/v1.0/contacts/{contactid}/financialsituations

Request samples

Content type
Copy
Expand all Collapse all
{
  • "EarlyIncomeId": 1,
  • "TotalWealthIncomeId": 20,
  • "TransferredAssetsSourceId": 7,
  • "FinancialLiabilities": true
}

Response samples

Content type
No sample

Family and occupations

Gets family and occupation details of a contact

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Family and occupation returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactid}/familyandoccupations
https://example-host/v1.0/contacts/{contactid}/familyandoccupations

Response samples

Content type
Copy
Expand all Collapse all
{
  • "MaritalStatusId": 1,
  • "HasChildren": true,
  • "HasPublicFunction": false,
  • "IsPoliticallyExposed": false,
  • "EmploymentTypeId": 1,
  • "Activity": "Finance",
  • "Profession": "Analyst",
  • "BusinessSectorId": 1,
  • "Description": "Occupation description",
  • "DateFrom": "2019-11-12T00:00:00Z",
  • "DateTo": "2019-11-17T23:59:59Z"
}

Save family and occupations

Saves family and occupation details of a contact

path Parameters
contactid
required
integer <int32>

Contact id

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Family and occupation payload

MaritalStatusId
integer <int32>
HasChildren
boolean
HasPublicFunction
boolean
IsPoliticallyExposed
boolean
EmploymentTypeId
integer <int32>
Activity
string
Profession
string
BusinessSectorId
integer <int32>
Description
string
DateFrom
string <date-time>
DateTo
string <date-time>

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

put /v1.0/contacts/{contactid}/familyandoccupations
https://example-host/v1.0/contacts/{contactid}/familyandoccupations

Request samples

Content type
Copy
Expand all Collapse all
{
  • "MaritalStatusId": 1,
  • "HasChildren": true,
  • "HasPublicFunction": false,
  • "IsPoliticallyExposed": false,
  • "EmploymentTypeId": 1,
  • "Activity": "Finance",
  • "Profession": "Analyst",
  • "BusinessSectorId": 1,
  • "Description": "Occupation description",
  • "DateFrom": "2019-11-12T00:00:00Z",
  • "DateTo": "2019-11-17T23:59:59Z"
}

Response samples

Content type
No sample

Profile

Gets the profile of a contact

path Parameters
contactid
required
integer <int32>

Contact id

language
required
string

Language to have localized resources

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Profile returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactid}/profile/{language}
https://example-host/v1.0/contacts/{contactid}/profile/{language}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "FirstName": "Jim",
  • "LastName": "Jones",
  • "CalculatedRiskCategory": "Balanced",
  • "ChosenRiskCategory": "Risk-Averse",
  • "ContactType":
    {
    },
  • "Investments":
    [
    ],
  • "LastLogin": "2019-11-12T03:03:53.3170246Z",
  • "RelationshipManager":
    {
    },
  • "HelpdeskDetails":
    {
    },
  • "OtherSignificantMemberRoles":
    [
    ],
  • "BirthDate": "1980-09-01T00:00:00",
  • "Email": "jim.jones@additiv.ch",
  • "Phone": "9078126361253",
  • "Mobile": "+41444056070",
  • "Skype": "jim.jones",
  • "Salutation": "Analyst",
  • "IsTwoFactorEnabled": false
}

Save custom data

Renders Template for a Profile - TEMP / TEST

path Parameters
contactid
required
integer <int32>

Contact id

language
required
string

Language to have localized resources

header Parameters
Authorization
required
string

The BasicAuth token

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactid}/profile/{language}/mustache
https://example-host/v1.0/contacts/{contactid}/profile/{language}/mustache

Response samples

Content type
Copy
Expand all Collapse all
{
  • "FirstName": "string",
  • "LastName": "string",
  • "CalculatedRiskCategory": "string",
  • "ChosenRiskCategory": "string",
  • "ContactType":
    {
    },
  • "Investments":
    [
    ],
  • "LastLogin": "2019-11-14T03:21:29Z",
  • "RelationshipManager":
    {
    },
  • "HelpdeskDetails":
    {
    },
  • "OtherSignificantMemberRoles":
    [
    ],
  • "BirthDate": "2019-11-14T03:21:29Z",
  • "Email": "string",
  • "Phone": "string",
  • "Mobile": "string",
  • "Skype": "string",
  • "Salutation": "string",
  • "IsTwoFactorEnabled": true
}

Profile mustache to PDF

Renders Template for a Profile - TEMP / TEST

path Parameters
contactid
required
integer <int32>

Contact id

language
required
string

The language of the localized resources

header Parameters
Authorization
required
string

The BasicAuth token

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactid}/profile/{language}/mustacheToPdf
https://example-host/v1.0/contacts/{contactid}/profile/{language}/mustacheToPdf

Response samples

Content type
Copy
Expand all Collapse all
{
  • "FirstName": "string",
  • "LastName": "string",
  • "CalculatedRiskCategory": "string",
  • "ChosenRiskCategory": "string",
  • "ContactType":
    {
    },
  • "Investments":
    [
    ],
  • "LastLogin": "2019-11-14T03:21:29Z",
  • "RelationshipManager":
    {
    },
  • "HelpdeskDetails":
    {
    },
  • "OtherSignificantMemberRoles":
    [
    ],
  • "BirthDate": "2019-11-14T03:21:29Z",
  • "Email": "string",
  • "Phone": "string",
  • "Mobile": "string",
  • "Skype": "string",
  • "Salutation": "string",
  • "IsTwoFactorEnabled": true
}

Save custom data

Saves lead generation information for marketing purposes

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

A Base64 encoded info string that contains JSON information

Content
string

A Base64 string that containins information in JSON format

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/customdata
https://example-host/v1.0/customdata

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Content": "ew0KIm5hbWUiOiAiSm9obiIsDQoiYWdlIjogMzAsDQoiY2l0eSI6ICJOZXcgWW9yayINCn0="
}

Response samples

Content type
No sample

Get member profile

Gets the public profile of a member

path Parameters
memberId
required
integer <int32>

Member ID

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Member's Profile returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v1.0/members/{memberId}/publicprofile
https://example-host/v1.0/members/{memberId}/publicprofile

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 80,
  • "InternalUserId": "4f22a35c5d7d4ef880fa4886503ef0d5",
  • "FirstName": "James",
  • "LastName": "May",
  • "Email": "james.may@additiv.ch",
  • "Phone": "+1-284 4351245",
  • "SuperiorIds":
    [
    ]
}

Get member profile by internal user identifier.

Gets the member profile by internal user identifier.

path Parameters
internalUserId
required
string <uuid>

Internal user identifier

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Member's Profile returned successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

get /v2.0/members/{internalUserId}/publicprofile
https://example-host/v2.0/members/{internalUserId}/publicprofile

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 80,
  • "InternalUserId": "756e71d2320949578e1d87e7a32d3845",
  • "FirstName": "James",
  • "LastName": "May",
  • "Email": "james.may@additiv.ch",
  • "Phone": "+1-284 4351245",
  • "SuperiorIds":
    [
    ]
}

Change two factor

Changes the two-factor flag of a campaign contact in order to allow/disallow the second factor in an authentication process.

path Parameters
contactId
required
integer <int32>

The contact identifier.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Two factor payload containing the flag which enables/disables authentication via 2FA

IsTwoFactorEnabled
required
boolean

Responses

200

Changed two-factor flag successfully.

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

patch /v1.0/contacts/{contactId}/two-factor
https://example-host/v1.0/contacts/{contactId}/two-factor

Request samples

Content type
Copy
Expand all Collapse all
{
  • "IsTwoFactorEnabled": true
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Get member role hierarchy contacts

Gets all the contacts based on member role hierarchy

path Parameters
memberId
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Successfully found the list of contacts by member role hierarchy

400

BadRequest

401

Unauthorized

404

Couldn't find the list of contacts by specified member (member role hierarchy)

422

Couldn't process the request. The Member ID is invalid

500

InternalServerError

get /v1.0/members/{memberId}/hierarchy/contacts
https://example-host/v1.0/members/{memberId}/hierarchy/contacts

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Get member role hierarchy contacts filtered

Gets all the filtered contacts based on member role hierarchy and filters

path Parameters
memberId
required
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:
SortColumn
string
SortOrder
string
Offset
required
integer <int32>
Limit
required
integer <int32>
Search
string
FirstName
string
LastName
string
BranchId
integer <int32>
CountryId
integer <int32>
LanguageId
integer <int32>
NationalityId
integer <int32>
TypeId
integer <int32>

Responses

200

Successfully found the list of contacts by member role hierarchy and filters

400

BadRequest

401

Unauthorized

404

Couldn't find the list of contacts by specified member (member role hierarchy) and filters

422

Couldn't process the request. The Member ID is invalid

500

InternalServerError

post /v1.0/members/{memberId}/hierarchy/contacts/filter
https://example-host/v1.0/members/{memberId}/hierarchy/contacts/filter

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SortColumn": "string",
  • "SortOrder": "string",
  • "Offset": 0,
  • "Limit": 0,
  • "Search": "string",
  • "FirstName": "string",
  • "LastName": "string",
  • "BranchId": 0,
  • "CountryId": 0,
  • "LanguageId": 0,
  • "NationalityId": 0,
  • "TypeId": 0
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Contacts":
    [
    ],
  • "TotalCount": 2
}

Data

Build flat data

Triggers the transformation of general entity data into JSON format and populates the corresponding flat tables

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/data/flat
https://example-host/v1.0/data/flat

Response samples

Content type
Copy
Expand all Collapse all
{ }

DeviceEnrollment

Enroll by contact id

This API is used only in the context of an authenticated account (it requires a JWT token), when the account activates 2FA. If the enrollment is not required for the set factor, then the 2FA is enabled for that contact and it returns a Success response. If the enrollment is required for the set factor, then starts the enrollment of a user device using the specific two-factor which is set in the database. This is the first step of the enrollment process. If it is successful, then an ActivationQrCodeUrl is returned in the response. The end-user will scan the qr code using the mobile app (e.g. Futurae). If the enrollment is successful, then the 2FA provider will post the final result, the user identification and the activation code using the callback set in the database. The callback will post the request using api enrollment/complete.

path Parameters
contactId
required
integer <int32>

The contact identifier for which the device will be enrolled.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/contacts/{contactId}/enrollment/enroll
https://example-host/v1.1/contacts/{contactId}/enrollment/enroll

Response samples

Content type
Copy
Expand all Collapse all
{}

Enroll by user name

This API is used only in the context of an unauthenticated account, when the account has 2FA enabled, but needs to enroll the device. Starts the enrollment of a user device using the specific two-factor which is set in the database. If the contact does not support two-factor authentication then the process is rejected (ErrorMessage: The two factor must be enabled.). This is the first step of the enrollment process. If it is successful, then an ActivationQrCodeUrl is returned in the response. The end-user will scan the qr code using the mobile app (e.g. Futurae). If the enrollment is successful, then the 2FA provider will post the final result, the user identification and the activation code using the callback set in the database. The callback will post the request using api enrollment/complete.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The enrollment request which contains the user name and password in order to authenticate the contact.

UserName
string

The contact name based on which enrollment will be done.

Password
string

The password of the contact to enroll.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/enrollment/enroll
https://example-host/v1.1/enrollment/enroll

Request samples

Content type
Copy
Expand all Collapse all
{
  • "UserName": "john.jones@additiv.ch",
  • "Password": "test@1234"
}

Response samples

Content type
Copy
Expand all Collapse all
{}

Enroll status

Checks whether a user has a completed enrollment. The endpoint returns immediately with the current enrollment status, thus you would need to use this endpoint on a poll-based fashion, in order to get informed about a status update. If polling is necessary, we strongly recommend polling no faster than every 1-3 seconds.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The complete enrollment request.

UserName
string

The contact name based on which enrollment will be done.

EnrollmentSessionId
string

The identifier to associate the status request with a specific enrollment process. It is generated and returned by the endpoint starting the enrollment.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/enrollment/status
https://example-host/v1.1/enrollment/status

Request samples

Content type
Copy
Expand all Collapse all
{
  • "UserName": "john.jones@additiv.ch",
  • "EnrollmentSessionId": "a44ccb6c05f548cfb32c5b4feec6d01b"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success",
  • "Status": "Pending"
}

Unenroll

Unenrolls (deactivate) a device of a user. If the specified device is the only enrolled device for the user, then two-factor authentication will automatically be disabled for this user. The user will have to enroll a device again in order to be able to authenticate using secondary authentication.

path Parameters
contactId
required
integer <int32>

The contact identifier for which the enrolled device will be unenrolled.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The unenrollment request which contain the flag which indicates whether the two factor flag of the contact will be disabled or not.

DisableTwoFactor
boolean

The flag which indicates whether the two factor flag of the contact will be disabled or not.

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.1/contacts/{contactId}/enrollment/unenroll
https://example-host/v1.1/contacts/{contactId}/enrollment/unenroll

Request samples

Content type
Copy
Expand all Collapse all
{
  • "DisableTwoFactor": true
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Goals

Get goal templates

Gets all goal templates of a product.

query Parameters
language
required
string

The language of the localized resources.

productId
integer <int32>

The id of the product.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

The list of the goal templates returned successfully

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/goals/templates
https://example-host/v1.0/goals/templates

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Create goal template

Creates a goal template.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

New goal template.

Name
Array of objects (JsonLanguage)

The name of the goal template.

ImageCssClass
Array of objects (JsonLanguage)

The image CssClass of the goal template.

Description
Array of objects (JsonLanguage)

The description of the goal template.

CustomAttributes
string

The customAttributes of the goal template.

ProductId
required
integer <int32>

The id of the product of the goal template.

IsDefault
required
boolean

Define if the goaltemplate is default.

Responses

200

The goal template created successfully

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/goals/templates
https://example-host/v1.0/goals/templates

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Name":
    [
    ],
  • "ImageCssClass":
    [
    ],
  • "Description":
    [
    ],
  • "CustomAttributes": "string",
  • "ProductId": 0,
  • "IsDefault": true
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "Name": "<root><en>Name</en></root>",
  • "ImageCssClass": "<root><en>ImageCssClass</en></root>",
  • "Description": "<root><en>Description</en></root>",
  • "CustomAttributes": "{\"Description\": \"Some custom attributes.\"}",
  • "ProductId": 1,
  • "IsDefault": true
}

Get goal template by id

Gets a goal template.

path Parameters
id
required
integer <int32>

The id of the goal template.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

The goal template returned successfully

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/goals/templates/{id}
https://example-host/v1.0/goals/templates/{id}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "Name": "<root><en>Name</en></root>",
  • "ImageCssClass": "<root><en>ImageCssClass</en></root>",
  • "Description": "<root><en>Description</en></root>",
  • "CustomAttributes": "{\"Description\": \"Some custom attributes.\"}",
  • "ProductId": 1,
  • "IsDefault": true
}

Update goal template

Updates a goal template.

path Parameters
id
required
integer <int32>

The id of the goal template.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

Existing goal template.

Name
Array of objects (JsonLanguage)

The name of the goal template.

ImageCssClass
Array of objects (JsonLanguage)

The image CssClass of the goal template.

Description
Array of objects (JsonLanguage)

The description of the goal template.

CustomAttributes
string

The customAttributes of the goal template.

ProductId
required
integer <int32>

The id of the product of the goal template.

IsDefault
required
boolean

Define if the goaltemplate is default.

Responses

200

The goal template updated successfully

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

put /v1.0/goals/templates/{id}
https://example-host/v1.0/goals/templates/{id}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Name":
    [
    ],
  • "ImageCssClass":
    [
    ],
  • "Description":
    [
    ],
  • "CustomAttributes": "string",
  • "ProductId": 0,
  • "IsDefault": true
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "Name": "<root><en>Name</en></root>",
  • "ImageCssClass": "<root><en>ImageCssClass</en></root>",
  • "Description": "<root><en>Description</en></root>",
  • "CustomAttributes": "{\"Description\": \"Some custom attributes.\"}",
  • "ProductId": 1,
  • "IsDefault": true
}

Delete goal template

Deletes a goal template.

path Parameters
id
required
integer <int32>

The id of the goal template.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

delete /v1.0/goals/templates/{id}
https://example-host/v1.0/goals/templates/{id}

Response samples

Content type
No sample

Get goals

Gets all goals of a given contact.

path Parameters
contactId
required
integer <int32>

The id of the contact.

query Parameters
language
required
string

The language of the localized resources.

currencyId
integer <int32>

The optional currencyId needed for the goals KPI calculation.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The list of goals returned successfully

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/goals
https://example-host/v1.0/contacts/{contactId}/goals

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Create goal

Creates a new goal for a given contact.

path Parameters
contactId
required
integer <int32>

The id of the contact.

query Parameters
language
required
string

The language of the localized resources.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Properties of the goal to create

Name
string

The name of the goal.

TargetAmount
number <double>

The amount to be reached by the investment in the goal.

DueDate
string <date-time>

The date to reach the goal.

FirstInvestmentDate
string <date-time>

The first invesment date of the goal.

Status
required
integer <int32>

The status of the goal (e.g. 1-InProgress, 2-InExecution, 3-Completed, 4-Closed).

GoalType
required
integer <int32>

The type of the goal (e.g. GeneralInvestment).

GoalTemplateId
required
integer <int32>

The goal template identifier based on which the goal is created.

CurrencyId
integer <int32>

The id of the currency on which the goal is created.

Attributes
string

The custom attributes of the new goal

Responses

200

The goal created successfully

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/goals
https://example-host/v1.0/contacts/{contactId}/goals

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Name": "Holidays",
  • "TargetAmount": 15000,
  • "DueDate": "2020-11-13T10:03:53.3326494+00:00",
  • "FirstInvestmentDate": "2019-11-14T10:03:53.3326494Z",
  • "Status": 1,
  • "GoalType": 1,
  • "GoalTemplateId": 8,
  • "CurrencyId": 2,
  • "Attributes": "{\"Description\": \"Build the boat that Kostas always wanted to have.\"}"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 5,
  • "Name": "Car",
  • "TargetAmount": 100000,
  • "Currency":
    {
    },
  • "DueDate": "2020-11-12T00:00:00+00:00",
  • "CreateDate": "0001-01-01T00:00:00",
  • "FirstInvestmentDate": "2019-10-14T00:00:00+00:00",
  • "Image": "Custom.jpg",
  • "Status": 1,
  • "GoalType": 1,
  • "GoalTemplateId": 8,
  • "Portfolios":
    [
    ],
  • "Attributes": "{\"Description\": \"Build the boat that Jimmy always wanted to have.\"}",
  • "Valuation": 250000
}

Get goal by id

Gets a specific goal by id and a contact id.

path Parameters
contactId
required
integer <int32>

The id of the contact.

goalId
required
integer <int32>

The id of the goal.

query Parameters
language
required
string

The language of the localized resources.

currencyId
integer <int32>

The optional currencyId which will be used for the goals KPI calculation.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

The goal returned successfully

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/goals/{goalId}
https://example-host/v1.0/contacts/{contactId}/goals/{goalId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 5,
  • "Name": "Car",
  • "TargetAmount": 100000,
  • "Currency":
    {
    },
  • "DueDate": "2020-11-12T00:00:00+00:00",
  • "CreateDate": "0001-01-01T00:00:00",
  • "FirstInvestmentDate": "2019-10-14T00:00:00+00:00",
  • "Image": "Custom.jpg",
  • "Status": 1,
  • "GoalType": 1,
  • "GoalTemplateId": 8,
  • "Portfolios":
    [
    ],
  • "Attributes": "{\"Description\": \"Build the boat that Jimmy always wanted to have.\"}",
  • "Valuation": 250000
}

Update goal

Updates a specific goal of a given contact.

path Parameters
contactId
required
integer <int32>

The id of the contact.

goalId
required
integer <int32>

The id of the goal.

query Parameters
language
required
string

The language of the localized resources.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

Properties of the goal to update.

Name
string

The name of the goal.

TargetAmount
number <double>

The amount to be reached by the investment in the goal.

DueDate
string <date-time>

The date to reach the goal.

FirstInvestmentDate
string <date-time>

The first invesment date of the goal.

Status
required
integer <int32>

The status of the goal (e.g. 1-InProgress, 2-InExecution, 3-Completed, 4-Closed).

GoalType
required
integer <int32>

The type of the goal (e.g. GeneralInvestment).

GoalTemplateId
required
integer <int32>

The goal template identifier based on which the goal is created.

CurrencyId
integer <int32>

The id of the currency on which the goal is created.

Attributes
string

The custom attributes of the new goal

Responses

200

The goal updated successfully

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

put /v1.0/contacts/{contactId}/goals/{goalId}
https://example-host/v1.0/contacts/{contactId}/goals/{goalId}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Name": "Holidays",
  • "TargetAmount": 15000,
  • "DueDate": "2020-11-13T10:03:53.3482777+00:00",
  • "FirstInvestmentDate": "2019-11-14T10:03:53.3482777Z",
  • "Status": 1,
  • "GoalType": 1,
  • "GoalTemplateId": 8,
  • "CurrencyId": 2,
  • "Attributes": "{\"Description\": \"Build the boat that Tom always wanted to have.\"}"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 5,
  • "Name": "Car",
  • "TargetAmount": 100000,
  • "Currency":
    {
    },
  • "DueDate": "2020-11-12T00:00:00+00:00",
  • "CreateDate": "0001-01-01T00:00:00",
  • "FirstInvestmentDate": "2019-10-14T00:00:00+00:00",
  • "Image": "Custom.jpg",
  • "Status": 1,
  • "GoalType": 1,
  • "GoalTemplateId": 8,
  • "Portfolios":
    [
    ],
  • "Attributes": "{\"Description\": \"Build the boat that Jimmy always wanted to have.\"}",
  • "Valuation": 250000
}

Delete goal

Deletes a specific goal of a given contact.

path Parameters
contactId
required
integer <int32>

The id of the contact.

goalId
required
integer <int32>

The id of the goal.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

204

No Content

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

delete /v1.0/contacts/{contactId}/goals/{goalId}
https://example-host/v1.0/contacts/{contactId}/goals/{goalId}

Response samples

Content type
No sample

Import

Import file

Uploads a file to the server and imports it into the database using BulkCopy mechanism.

The content of the request must be MIME Multipart. The name of the file must contain the name of the table (e.g. Import_Specification_CbsCashTransactions_20180626T083050.csv). Tables used for importing: CbsCashPositions, CbsCashTransactions, CbsSecurityPositions, CbsSecurityPriceHistory, CbsSecurityTransactions.

query Parameters
hasHeader
boolean

By default is true. If it exists and is set to true, the first row of the file will map the columns of the table, otherwise the configuration from the database will be used.

separator
string

By default is null. If it exists and is set, it will be used for import otherwise the parameter in the GlobalSettings table will be used.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

File upload details returned successfully.

400

BadRequest

401

Unauthorized request.

422

UnprocessableEntity

500

InternalServerError

post /v1.0/import/import-file
https://example-host/v1.0/import/import-file

Response samples

Content type
Copy
Expand all Collapse all
{
  • "FileName": "Import_Specification_CbsCashPositions_20191113T100353.csv",
  • "FileLength": 289644
}

Sync data import

Triggers the import and transformation mechanism that will copy the data from the staging tables to the main internal ones

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Daily
required
boolean

Specifies the type of Import: can be a daily import or an initial import

HasJoinedAccounts
boolean

Specifies if the bank has joined accounts: multiple clients share the same account or portfolio

IncludeDetails
boolean

Only used in the initial import, it specifies if the initial import should also include details like: Geofocus, Anr, Sectors, AssetClass

CustodianCountryId
integer <int32>

Only used in the initial import, it adds cash securities in the requested country for simulating cash portfolio positions

Responses

200

OK

400

BadRequest

401

Unauthorized

422

UnprocessableEntity

500

InternalServerError

post /v1.0/import/sync-data
https://example-host/v1.0/import/sync-data

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Daily": false,
  • "HasJoinedAccounts": false,
  • "IncludeDetails": false,
  • "CustodianCountryId": 42
}

Response samples

Content type
Copy
Expand all Collapse all
{ }

Instruments

Get securities by ids

Gets security summaries by security IDs Returns only basic security data, no KPIs or historical performance

query Parameters
securityIds
required
Array of integers <int32>
language
required
string
currency
integer <int32>
from
string <date-time>
to
string <date-time>
withAggregatePerformance
boolean
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/securities
https://example-host/v1.0/securities

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Get security list by ids

Gets security summaries by security IDs Returns only basic security data, no KPIs or historical performance

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
SecurityIds
Array of integers <int32>
Language
string
BaseCurrency
integer <int32>
StartDate
string <date-time>
EndDate
string <date-time>
WithAggregatePerformance
boolean

Responses

200

OK

post /v1.0/securities
https://example-host/v1.0/securities

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SecurityIds":
    [
    ],
  • "Language": "en"
}

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get security details

Gets a security by ID. Returns all details about a security including KPIs and historical performance.

path Parameters
securityId
required
integer <int32>
query Parameters
language
required
string
currencyId
integer <int32>
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

get /v1.0/securities/{securityId}
https://example-host/v1.0/securities/{securityId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "ExpectedRisk": 0,
  • "ProjectedExpectedReturn": 0,
  • "CalculatedRisk": 0,
  • "CalculatedExpectedReturn": 0,
  • "SharpeRatio": 0,
  • "Story": "string",
  • "Factsheet": "string",
  • "Kiid": "string",
  • "MaxPrice": 0,
  • "MinPrice": 0,
  • "YearToDateReturn": 0,
  • "CalculationCurrency":
    {
    },
  • "RiskCategory":
    {
    },
  • "Issuer": "string",
  • "CumulativeReturns":
    [
    ],
  • "HistoricalPerformance":
    [
    ],
  • "SecurityComponents":
    [
    ],
  • "Id": 0,
  • "Name": "string",
  • "Isin": "string",
  • "TradingPrice": 0,
  • "FaceValue": 0,
  • "AssetClass":
    {
    },
  • "Type":
    {
    },
  • "Sector":
    {
    },
  • "Country":
    {
    },
  • "Currency":
    {
    },
  • "BondExtension":
    {
    },
  • "PriceHistory":
    [
    ],
  • "Ratings":
    [
    ],
  • "GeoFocus":
    {
    },
  • "SecurityStockExchanges":
    [
    ],
  • "IsInvestable": true,
  • "IsActive": true,
  • "CustomAttributes": "string",
  • "TradingUnit": 0,
  • "RoundingLot": 0,
  • "IsDecimalTradingUnit": true,
  • "BenchmarkId": 0
}

Search securities

Searches securities by given criteria. Returns only basic security data, no KPIs or historical performance. If multiple search parameters are passed all of them must match

path Parameters
productId
required
integer <int32>
query Parameters
language
required
string
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:
Page
required
integer <int32>
PageSize
required
integer <int32>
SearchTerm
string
SecurityTypeIds
Array of integers <int32>
SecuritySectorIds
Array of integers <int32>
CurrencyIds
Array of integers <int32>

Responses

200

OK

post /v1.0/products/{productId}/securities/search
https://example-host/v1.0/products/{productId}/securities/search

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Page": 0,
  • "PageSize": 0,
  • "SearchTerm": "string",
  • "SecurityTypeIds":
    [
    ],
  • "SecuritySectorIds":
    [
    ],
  • "CurrencyIds":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Securities":
    [
    ],
  • "TotalNumberOfResults": 0
}

Performance

Calculate KPI

Calculates the following Key Performance Indicators: ExpectedReturn, CumulativeReturn, Volatility and SharpeRatio

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

An object containing: a set of instruments + allocations, number of years used for calculation and the calculation interval

InstrumentSet
required
object (InstrumentSet)
Years
integer <int32>

The number of historical years to use for the calculation. If not passed the system default value 'HistoricalPerformanceYears' in group 'Performance' of the Global Settings will be used.

Days
integer <int32>

The number of historical days to use for the calculation of the Historical Performance. If not passed the 'Years' value will be used. If 'Years' is not passed either the system default value 'HistoricalPerformanceYears' in group 'Performance' of the Global Settings will be used.

CalculationInterval
string
Enum: "Daily" "Weekly" "Monthly" "Yearly"

The time interval to be used for the calculation. Defaults to 'Monthly' if not passed.

Responses

200

OK

post /v1.0/performance/kpi/calculate
https://example-host/v1.0/performance/kpi/calculate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "InstrumentSet":
    {
    },
  • "Years": 10,
  • "Days": 300,
  • "CalculationInterval": "Monthly"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "ExpectedReturn": 0.13766208859679047,
  • "CummulativeReturn": 1.7041907211033687,
  • "Volatility": 0.20459221768285565,
  • "SharpeRatio": 0.6728608260661433,
  • "MaximumDrawdown": 0,
  • "ValueAtRisk": 0,
  • "HistoricalPerformance":
    [
    ]
}

Get account balance aum

Gets the sum of all account balances from all the accounts that belong to contacts which have the requested relationship manager id

path Parameters
member
required
integer <int32>

The id of the relationship manager

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/members/{member}/accounts/balance
https://example-host/v1.0/members/{member}/accounts/balance

Response samples

Content type
Copy
Expand all Collapse all
{
  • "MemberId": 1,
  • "Value": 500250
}

Get account balance history aum

Gets the daily history sum of all account balances of all the clients that have the requested relationship manager id

path Parameters
MemberId
required
string
query Parameters
aumRequest.memberId
required
integer <int32>
aumRequest.startDate
string <date-time>
aumRequest.endDate
string <date-time>
aumRequest.level
integer <int32>
aumRequest.language
string
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/members/{MemberId}/accounts/history
https://example-host/v1.0/members/{MemberId}/accounts/history

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Get asset class allocation aum

Gets the asset class allocation of all portfolio content of all the clients that have the requested relationship manager id

path Parameters
MemberId
required
string
query Parameters
aumRequest.memberId
required
integer <int32>

The Id of the member

aumRequest.startDate
string <date-time>

The First day of the balance history requested

aumRequest.endDate
string <date-time>

The Last day of the balance history requested

aumRequest.level
integer <int32>

The Level of the asset class requested. Level 1 means base asset classes

aumRequest.language
string

The two letter iso code of the requested language

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/members/{MemberId}/assetclasses/allocation
https://example-host/v1.0/members/{MemberId}/assetclasses/allocation

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    },
  • {
    }
]

Get top performance for RM

Gets the performance of top and bottom securities, portfolios and contacts for an RM. Returns top and bottom performers for securities, portfolios and contacts for an RM.

path Parameters
memberId
required
integer <int32>

The member ID of the RM

currency
required
integer <int32>

The currency ID to be used for the calculation

nrOfDays
required
integer <int32>

The number of days in the past to calculate the top performance for

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/performance/top/{memberId}/{currency}/{nrOfDays}
https://example-host/v1.0/performance/top/{memberId}/{currency}/{nrOfDays}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "SecurityPeformanceTop":
    {
    },
  • "PortfolioPerformanceTop":
    {
    },
  • "ContactPerformanceTop":
    {
    }
}

Calculate performance projection

Calculates the performance projection for a given set of instrument allocations. Optionally an initial investment amount and a monthly contribution amount can be passed.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The parameter DTO

InitialInvestmentAmount
number <double>

The optional initial investment amount.

MonthlyContributionAmount
number <double>

The optional monthly contribution amount.

Fee
number <double>

The optional fee to use for the calculation.

ProjectionYears
integer <int32>

The number of projection years (years in the future) to use for the calculation.

HistoricalYears
integer <int32>

The number of historical years to use for the calculation.

CurrencyId
required
integer <int32>

The currency that should be used for the calculation.

InstrumentAllocations
required
Array of objects (InstrumentAllocation)

The instruments and their allocations the calculation should be done for.

Responses

200

OK

post /v1.0/performance/projection/calculate
https://example-host/v1.0/performance/projection/calculate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "InitialInvestmentAmount": 1000,
  • "MonthlyContributionAmount": 100,
  • "ProjectionYears": 10,
  • "HistoricalYears": 10,
  • "CurrencyId": 1,
  • "InstrumentAllocations":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    },
  • {
    }
]

Save security performance

Calculates and saves performances in every currency found in Securities and ProductOfferCurrency tables for a given interval

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The interval for which the calculation will trigger

From
string <date-time>
To
string <date-time>

Responses

200

OK

post /v1.0/performance/save
https://example-host/v1.0/performance/save

Request samples

Content type
Copy
Expand all Collapse all
{
  • "From": "2009-11-13T00:00:00+00:00",
  • "To": "2019-11-12T00:00:00+00:00"
}

Response samples

Content type
Copy
Expand all Collapse all
{ }

Save single security performance

Calculates and save performances for a single security in the security currency and every currency found in the ProductOfferCurrency table for a given interval

path Parameters
securityId
required
integer <int32>

The id of the security

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The interval for which the calculation will trigger

From
string <date-time>
To
string <date-time>

Responses

200

OK

post /v1.0/performance/{securityId}/save
https://example-host/v1.0/performance/{securityId}/save

Request samples

Content type
Copy
Expand all Collapse all
{
  • "From": "2009-11-13T00:00:00+00:00",
  • "To": "2019-11-12T00:00:00+00:00"
}

Response samples

Content type
Copy
Expand all Collapse all
{ }

PortfolioManagement

Get portfolio details

Gets a portfolio by ID. Returns all details about a portfolio including KPIs, positions, historical performance and fees. It will also return all goals that are assigned to the portfolio.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to retrieve

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Portfolio details returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolios/{portfolioId}
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "SecuritiesValue": 770184.89,
  • "CashAmount": 1093.01,
  • "Fees":
    [
    ],
  • "HistoricalPerformance":
    [
    ],
  • "Positions":
    [
    ],
  • "Id": 1,
  • "ContactGroupId": 1,
  • "Name": "C002747290",
  • "Risk": 0.0399,
  • "Return": 0.0035,
  • "CreateDate": "2018-04-21T00:00:00",
  • "ExternalId": "C002747290",
  • "Currency":
    {
    },
  • "PortfolioTypeId": 1,
  • "PortfolioStatusId": 1,
  • "InvestedAmount": 836273.55,
  • "FirstInvestmentDate": "2018-04-23T00:00:00",
  • "RiskCategory":
    {
    },
  • "PortfolioRebalancingTypeId": 1,
  • "IsActive": true,
  • "CurrentValue": 771277.9,
  • "CurrentPerformance": 0.0035,
  • "IsReadOnly": false,
  • "CalculatedRisk": 0.042,
  • "CalculatedExpectedReturn": 0.0039,
  • "SharpeRatio": 0.087,
  • "MaximumDrawdown": 0,
  • "ValueAtRisk": 0,
  • "IsBreached": false,
  • "Goals":
    [
    ],
  • "Product":
    {
    }
}

Modify portfolio

Modifies an existing portfolio. For portfolios that have not been implemented yet the portfolio positions can be modified based on a set of instrument allocation orders (passed in the AllocationsOrder property), on an existing model portfolio (passed in the ModelPortfolioId property) or based on an existing portfolio proposal (passed in the PortfolioProposalId property). For virtual portfolios the position changes will become effective immediately. If no data is provided in all properties no changes will be made to the portfolio positions. Changing the portfolio properties (Name, ...) is possible with any portfolio type and status

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to modify

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

ModelPortfolioId
integer <int32>

The ID of a model portfolio that the modified portfolio should be based on (having the same instruments and allocations). If set, the InstrumentAllocations property is ignored.

PortfolioProposalId
integer <int32>

The ID of a portfolio proposal that the modified portfolio should be based on (having the same instruments and allocations). If set, the InstrumentAllocations property is ignored.

AllocationsOrder
object (InstrumentSetOrder)
Name
string

The optional new name of the portfolio. Will be ignored if not set.

InitialInvestmentAmount
number <double>

The optional new initial investment amount for the portfolio in portfolio currency. If not specified then the sum of all payin account balances linked to the portfolio will be used as initial investment amount. Can only be set for portfolios that have not been ordered yet.

CurrencyId
integer <int32>

The optional new currency ID of the portfolio.

RebalancingType
string
Enum: "NoRebalancing" "Manual" "Automatic"

The optional rebalancing type of the modified portfolio. If not passed, the rebalancing type associated with the portfolio product will be used if the request will result in changing the existing product association.

IsBreached
boolean

The optional parameter which tells if a portfolio is breached. If not passed all portfolios will be returned

CustomAttributes
string

Custom attributes specific to the tenant

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

patch /v1.0/contacts/{contactId}/portfolios/{portfolioId}
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "AllocationsOrder":
    {
    },
  • "Name": "C002747290",
  • "IsBreached": false
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Code": "NotFound",
  • "Message": "Contact with ID 1 not found"
}

Get portfolio overview

Gets the basic data and positions of a portfolio by ID. Should mainly be used to retrieve the positions of a portfolio. If additional data is needed 'contacts/{contactId}/portfolios/{portfolioId}' should be used.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to retrieve

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Portfolio overview returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolios/{portfolioId}/overview
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/overview

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 1,
  • "SecuritiesValue": 770184.89,
  • "CashAmount": 1093.01,
  • "CurrentValue": 771277.9,
  • "CurrentPerformance": 0.0035,
  • "Currency":
    {
    },
  • "Positions":
    [
    ]
}

Get contact portfolios

Gets all portfolios for a specific contact. Returns a list of portfolio summaries (excluding positions and historical performance). The list of portfolios is determined by the contact groups the contact is a member of.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolios

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolios
https://example-host/v1.0/contacts/{contactId}/portfolios

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Create portfolio

Creates a portfolio. The portfolio can be created based on a set of instrument allocation orders (passed in the AllocationsOrder property), on an existing model portfolio (passed in the ModelPortfolioId property) or based on an existing portfolio proposal (passed in the PortfolioProposalId property). If no data in all properties is provided an empty portfolio will be created. The newly created portfolio will always have the status "NotImplemented" (PortfolioStatusId = 1)

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

ModelPortfolioId
integer <int32>

The ID of a model portfolio that the new portfolio should be based on (having the same instruments and allocations). If set, the InstrumentAllocations property is ignored.

PortfolioProposalId
integer <int32>

The ID of a portfolio proposal that the new portfolio should be based on (having the same instruments and allocations). If set, the InstrumentAllocations property is ignored.

AllocationsOrder
object (InstrumentSetOrder)
Name
string

The optional name of the new portfolio

ProductId
integer <int32>

The ID of the product that the new portfolio belongs to. If not passed a configured default will be used.

Accounts
Array of objects (PortfolioAccount)

A list of accounts the portfolio will be associated with.

PortfolioType
string
Enum: "Real" "Virtual" "Slice"

The type of the new portfolio. Can be 'Real' = 1 or 'Virtual' = 2. Defaults to 'Real'.

RebalancingType
string
Enum: "NoRebalancing" "Manual" "Automatic"

The rebalancing type of the new portfolio. If not passed, the rebalancing type associated with the portfolio product will be used.

InitialInvestmentAmount
number <double>

The optional initial investment amount for the new portfolio in portfolio currency. If not specified then the sum of all payin account balances linked to the portfolio will be used as initial investment amount.

CurrencyId
integer <int32>

The currency ID of the portfolio. If not passed the one associated with the contact or the system default will be used.

CustomAttributes
string

Custom attributes specific to the tenant

ExternalId
string

The optional ExternalId of the new portfolio

Responses

200

OK

201

Created

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/portfolios
https://example-host/v1.0/contacts/{contactId}/portfolios

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ModelPortfolioId": 4,
  • "Name": "Albert's Portfolio Slice",
  • "ProductId": 1,
  • "Accounts":
    [
    ],
  • "PortfolioType": "Real",
  • "RebalancingType": "Automatic",
  • "InitialInvestmentAmount": 100000,
  • "CurrencyId": 2,
  • "CustomAttributes": "{\"Description\": \"The Portfolio the Client always wanted to have.\"}",
  • "ExternalId": "TestExternalId"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "ContactGroupId": 0,
  • "Name": "string",
  • "Risk": 0,
  • "Return": 0,
  • "CreateDate": "2019-11-14T03:21:30Z",
  • "ExternalId": "string",
  • "Currency":
    {
    },
  • "PortfolioTypeId": 0,
  • "PortfolioStatusId": 0,
  • "InvestedAmount": 0,
  • "FirstInvestmentDate": "2019-11-14T03:21:30Z",
  • "RiskCategory":
    {
    },
  • "PortfolioRebalancingTypeId": 0,
  • "IsActive": true,
  • "ModelPortfolioName": "string",
  • "ModelPortfolioId": 0,
  • "PortfolioProposalName": "string",
  • "PortfolioProposalId": 0,
  • "CurrentValue": 0,
  • "CurrentPerformance": 0,
  • "CurrentPerformanceAmount": 0,
  • "IsReadOnly": true,
  • "CalculatedRisk": 0,
  • "CalculatedExpectedReturn": 0,
  • "SharpeRatio": 0,
  • "MaximumDrawdown": 0,
  • "ValueAtRisk": 0,
  • "ProjectedExpectedReturn": 0,
  • "IsBreached": true,
  • "ParentId": 0,
  • "CustomAttributes": "string",
  • "Goals":
    [
    ],
  • "Product":
    {
    }
}

Get contact group portfolios

Gets all portfolios for a specific contact group. Returns a list of portfolio summaries (excluding positions and historical performance).

path Parameters
contactGroupId
required
integer <int32>

The ID of the contact group that has access to the portfolios

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.1/contactgroups/{contactGroupId}/portfolios
https://example-host/v1.1/contactgroups/{contactGroupId}/portfolios

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Get portfolio transactions

[DEPRECATED Please use POST v1.1/contacts/{contactId}/portfolios/{portfolioId}/transactions instead] Gets the transactions of a portfolio within an optional date range. All currency values are returned in the base currency of the portfolio.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to retrieve the transactions for

query Parameters
page
required
integer <int32>

The result page number, starting by 1

pageSize
required
integer <int32>

The number of items in a result page

securityId
integer <int32>

An optional security ID for returning only transactions for this security

from
string <date-time>

An optional start date for returning only transactions with this date or newer

to
string <date-time>

An optional end date for returning only transactions with this date or older

securityType
string
Enum: "Instruments" "Liquidity" "All"

An optional filter to specify for which security types to return transactions for. Can be 'Instruments' = 1, 'Liquidity' = 2 or 'All' = 3. Defaults to 'Instruments'.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolios/{portfolioId}/transactions
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/transactions

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Transactions":
    [
    ],
  • "Currency":
    {
    },
  • "TotalNumberOfResults": 30
}

Get portfolio transactions v11

Gets the transactions of a portfolio within an optional date range. All currency values are returned in the base currency of the portfolio.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to retrieve the transactions for

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

SecurityType
required
string
Enum: "Instruments" "Liquidity" "All"

An optional filter to specify for which security types to return transactions for. Can be 'Instruments' = 1, 'Liquidity' = 2 or 'All' = 3. Defaults to 'Instruments'.

Page
required
integer <int32>

The result page number, starting by 1

PageSize
required
integer <int32>

The number of items in a result page

From
string <date-time>

An optional start date for returning only transactions with this date or newer

To
string <date-time>

An optional end date for returning only transactions with this date or older

SecurityId
integer <int32>

An optional security ID for returning only transactions for this security

AccountId
integer <int32>

An optional account ID for returning only transactions for this account

FundingId
integer <int32>

An optional funding ID for returning only transactions for this funding

TransactionType
string
Enum: "Credit" "Debit"

An optional transaction type for returning only transactions of this type

TransactionStatus
string
Enum: "ToBeExecuted" "Executed" "Cancelled" "Failed"

An optional transaction status for returning only transactions with this status

IsPerformanceRelevant
boolean

An optional performance relevance flag for returning only transactions that have this flag set as specified

Responses

200

OK

post /v1.1/contacts/{contactId}/portfolios/{portfolioId}/transactions
https://example-host/v1.1/contacts/{contactId}/portfolios/{portfolioId}/transactions

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SecurityType": "All",
  • "Page": 1,
  • "PageSize": 10,
  • "AccountId": 34,
  • "TransactionType": "Credit",
  • "TransactionStatus": "ToBeExecuted"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Transactions":
    [
    ],
  • "Currency":
    {
    },
  • "TotalNumberOfResults": 30
}

Get model portfolios

Gets all model portfolios for a specific product filtered by criteria. Returns a list of model portfolio summaries (excluding positions). If the optional risk category ID is passed only model portfolios for this risk category will be returned.

path Parameters
productId
required
integer <int32>

The ID of the product that the portfolios belong to

query Parameters
language
required
string

The language in which to return all properties

riskCategoryId
integer <int32>

The optional risk category ID to return only model portfolios of this risk category

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/products/{productId}/model-portfolios
https://example-host/v1.0/products/{productId}/model-portfolios

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Get model portfolio details

Gets a model portfolio by ID. Returns all details about a model portfolio including KPIs, positions, historical performance and fees.

path Parameters
modelPortfolioId
required
integer <int32>

The ID of the model portfolio to retrieve

query Parameters
language
required
string

The language in which to return all properties

currencyId
integer <int32>

The ID of the currency to use for KPI and historical performance calculation

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/model-portfolios/{modelPortfolioId}
https://example-host/v1.0/model-portfolios/{modelPortfolioId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "CustomExpectedRisk": 0.047,
  • "CustomExpectedReturn": 0.0042,
  • "CalculatedRisk": 0.042,
  • "CalculatedExpectedReturn": 0.0039,
  • "SharpeRatio": 0.087,
  • "Positions":
    [
    ],
  • "Fees":
    [
    ],
  • "HistoricalPerformance":
    [
    ],
  • "BaseCurrency":
    {
    },
  • "IsEditable": false,
  • "MaximumDrawdown": 0,
  • "ValueAtRisk": 0,
  • "Id": 1,
  • "Name": "C002747290",
  • "IsActive": true,
  • "RiskCategory":
    {
    }
}

Get investment overview

Gets the investment overview for a specific contact. The investment overview contains a list of portfolio summaries of real portfolios and portfolio proposals as well as data aggregated from all real portfolios including a list of positions, the historical and current performance, current total amounts of securities and cash. It also contains the base currency that all aggregated values have been converted to.

path Parameters
contactId
required
integer <int32>

The ID of the contact to get the investment overview for

query Parameters
language
required
string

The language in which to return all properties

currencyId
integer <int32>

The ID of the currency to use as base currency and for KPI and historical performance calculation

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/investment-overview
https://example-host/v1.0/contacts/{contactId}/investment-overview

Response samples

Content type
Copy
Expand all Collapse all
{
  • "CurrentValue": 19635964.0421,
  • "SecuritiesValue": 19608137.0219,
  • "CashAmount": 27826.94159,
  • "CurrentPerformance": 0.35339202826882854,
  • "CurrentPerformanceAmount": 839230.61183,
  • "BaseCurrency":
    {
    },
  • "Portfolios":
    [
    ],
  • "ConsolidatedPositions":
    [
    ],
  • "HistoricalPerformance":
    [
    ]
}

Top up portfolio

Adds a specific amount to a portfolio. Doesn't trigger a cash transaction from an external account to the portfolio's cash account. Instead cash is moved from the portfolio's cash account to the custody account by issuing buy orders. The new amount will be distributed amongst the portfolio securities based on their allocation values and a buy order will be created. The change will not become effective immediately, only after the order was executed successfully. The execution time of the order is determined by system configuration.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to top up

query Parameters
topUpAmount
required
number <double>

The amount to add to the portfolio in portfolio currency. Must be > 0.

forceOrderGeneration
boolean

If set to 'true' forces the generation of order book entries, regardless of the value for the product setting 'IsOrderBookEnabled'.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/topup
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/topup

Response samples

Content type
Copy
Expand all Collapse all
{
  • "OperationResult": "Success",
  • "OrderResult":
    {
    }
}

Sell amount from portfolio

Sells a specific amount from a portfolio. Doesn't trigger a cash transaction from the portfolio's cash account to an external account. Instead cash is moved from the portfolio's custody account to the cash account by issuing sell orders. The reduction amount will be distributed amongst the portfolio securities based on their allocation values and a sell order will be created. Depending on the allocation values and actual prices it is possible that not the exact amount will be sold. The change will not become effective immediately, only after the order was executed successfully. The execution time of the order is determined by system configuration.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to sell from

query Parameters
amount
required
number <double>

The amount to sell from the portfolio in portfolio currency. Must be > 0.

forceOrderGeneration
boolean

If set to 'true' forces the generation of order book entries, regardless of the value for the product setting 'IsOrderBookEnabled'.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/sell
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/sell

Response samples

Content type
Copy
Expand all Collapse all
{
  • "OperationResult": "Success",
  • "OrderResult":
    {
    }
}

Sell all from portfolio

Sells a whole portfolio. Doesn't trigger a cash transaction from the portfolio's cash account to an external account. Instead cash is moved from the portfolio's custody account to the cash account by issuing sell orders. The change will not become effective immediately, only after the order was executed successfully. The execution time of the order is determined by system configuration.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to sell completely

query Parameters
forceOrderGeneration
boolean

If set to 'true' forces the generation of order book entries, regardless of the value for the product setting 'IsOrderBookEnabled'.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/sellall
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/sellall

Response samples

Content type
Copy
Expand all Collapse all
{
  • "OperationResult": "Success",
  • "OrderResult":
    {
    }
}

Order portfolio

Orders a portfolio. Orders an existing portfolio that has not been implemented yet. The portfolio positions can be modified based on a set of instrument allocation orders (passed in the AllocationsOrder property), on an existing model portfolio (passed in the ModelPortfolioId property) or based on an existing portfolio proposal (passed in the PortfolioProposalId property). The change will not become effective immediately, only after the order was executed successfully. For virtual portfolios the position changes will become effective immediately.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to order

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

CurrencyId
integer <int32>

The optional new currency ID of the portfolio.

ModelPortfolioId
integer <int32>

The ID of a model portfolio that the ordered portfolio should be based on (having the same instruments and allocations). If set, the AllocationsOrder property is ignored.

PortfolioProposalId
integer <int32>

The ID of a portfolio proposal that the ordered portfolio should be based on (having the same instruments and allocations). If set, the AllocationsOrder property is ignored.

AllocationsOrder
object (InstrumentSetOrder)
ForceOrderGeneration
required
boolean

If set to 'true' forces the generation of order book entries, regardless of the value for the product setting 'IsOrderBookEnabled'.

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/order
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/order

Request samples

Content type
Copy
Expand all Collapse all
{
  • "AllocationsOrder":
    {
    },
  • "ForceOrderGeneration": false
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "OperationResult": "Success",
  • "OrderResult":
    {
    }
}

Get portfolio proposal details

Gets a portfolio proposal by ID. Returns all details about the proposal including KPIs, positions and historical performance.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio proposal

portfolioProposalId
required
integer <int32>

The ID of the portfolio proposal to retrieve

query Parameters
language
required
string

The language in which to return all properties

currencyId
integer <int32>

The ID of the currency to use for KPI and historical performance calculation

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Portfolio proposal details returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolioproposals/{portfolioProposalId}
https://example-host/v1.0/contacts/{contactId}/portfolioproposals/{portfolioProposalId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "SecuritiesValue": 770184.89,
  • "CashAmount": 1093.01,
  • "Fees":
    [
    ],
  • "HistoricalPerformance":
    [
    ],
  • "Positions":
    [
    ],
  • "Id": 1,
  • "ContactGroupId": 1,
  • "Name": "C002747290",
  • "Risk": 0.0399,
  • "Return": 0.0035,
  • "CreateDate": "2018-04-21T00:00:00",
  • "ExternalId": "C002747290",
  • "Currency":
    {
    },
  • "PortfolioTypeId": 1,
  • "PortfolioStatusId": 1,
  • "InvestedAmount": 836273.55,
  • "FirstInvestmentDate": "2018-04-23T00:00:00",
  • "RiskCategory":
    {
    },
  • "PortfolioRebalancingTypeId": 1,
  • "IsActive": true,
  • "CurrentValue": 771277.9,
  • "CurrentPerformance": 0.0035,
  • "IsReadOnly": false,
  • "CalculatedRisk": 0.042,
  • "CalculatedExpectedReturn": 0.0039,
  • "SharpeRatio": 0.087,
  • "MaximumDrawdown": 0,
  • "ValueAtRisk": 0,
  • "IsBreached": false,
  • "Goals":
    [
    ],
  • "Product":
    {
    }
}

Delete portfolio proposal

Deletes a portfolio proposal by ID.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio proposal

portfolioProposalId
required
integer <int32>

The ID of the portfolio proposal to retrieve

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Portfolio proposal deleted successfully.

400

BadRequest

401

Unauthorized

404

NotFound

500

InternalServerError

delete /v1.0/contacts/{contactId}/portfolioproposals/{portfolioProposalId}
https://example-host/v1.0/contacts/{contactId}/portfolioproposals/{portfolioProposalId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Code": "NotFound",
  • "Message": "Contact with ID 1 not found"
}

Modify portfolio proposal

Modifies a portfolio proposal. The portfolio proposal can be modified based on a set of instrument allocations (passed in the InstrumentAllocations property) or based on an existing model portfolio (passed in the ModelPortfolioId property). If no data is provided in both properties no changes will be made to the portfolio proposal details, but only to the properties specified (Name, ...)

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio proposal

portfolioProposalId
required
integer <int32>

The ID of the portfolio proposal to modify

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

ModelPortfolioId
integer <int32>

The ID of a model portfolio that the portfolio proposal should be changed to (having the same instruments and allocations). If set, the InstrumentAllocations property is ignored.

InstrumentAllocations
Array of objects (InstrumentAllocation)

The instruments and their allocations of the portfolio proposal. Is only used if ModelPortfolioId is not set.

Name
string

The optional name of the portfolio proposal

PortfolioProposalStatusId
integer <int32>

The ID of proposal status

CurrencyId
integer <int32>

The ID of proposal currency

BenchmarkId
integer <int32>

The ID of the security used as a benchmark index

PortfolioId
integer <int32>

The ID of the portfolio that the portfolio proposal is linked to

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

patch /v1.0/contacts/{contactId}/portfolioproposals/{portfolioProposalId}
https://example-host/v1.0/contacts/{contactId}/portfolioproposals/{portfolioProposalId}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "InstrumentAllocations":
    [
    ],
  • "Name": "C002747291"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Code": "NotFound",
  • "Message": "Contact with ID 1 not found"
}

Get contact portfolio proposals

Gets all portfolio proposals for a specific contact. Returns a list of portfolio proposal summaries (excluding positions and historical performance). The list of portfolio proposals is determined by the contact groups the contact is a member of.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio proposals

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolioproposals
https://example-host/v1.0/contacts/{contactId}/portfolioproposals

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Create portfolio proposal

Creates a portfolio proposal. The portfolio proposal can be created based on a set of instrument allocations (passed in the InstrumentAllocations property), on an existing portfolio proposal (passed in the PortfolioProposalId property) or based on an existing model portfolio (passed in the ModelPortfolioId property). If no data in all properties is provided a ValidationException will be thrown. The newly created portfolio proposal will always have the status "Created" (PortfolioProposalStatusId = 1). If the optional contactGroupId parameter is passed then the contact must be part of the contact group provided.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio proposal

query Parameters
language
required
string

The language in which to return all properties

contactGroupId
integer <int32>

The ID of the contact group that has access to the portfolio proposal

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

ModelPortfolioId
integer <int32>

The ID of a model portfolio that the new portfolio proposal should be based on (having the same instruments and allocations). If set, the InstrumentAllocations property is ignored.

PortfolioProposalId
integer <int32>

The ID of a portfolio proposal that the new portfolio proposal should be based on (having the same instruments and allocations). If set, the InstrumentAllocations property is ignored.

InstrumentAllocations
Array of objects (InstrumentInformation)

The instruments and their allocations for the portfolio proposal to create. Is only used if ModelPortfolioId and PortfolioProposalId are not set.

Name
string

The optional name of the new portfolio proposal

ProductId
integer <int32>

The ID of the product that the new portfolio proposal belongs to

PortfolioId
integer <int32>

The ID of the portfolio that the new portfolio proposal is linked to

Responses

200

OK

201

Created

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/portfolioproposals
https://example-host/v1.0/contacts/{contactId}/portfolioproposals

Request samples

Content type
Copy
Expand all Collapse all
{
  • "ModelPortfolioId": 1,
  • "InstrumentAllocations":
    [
    ],
  • "Name": "C002747290",
  • "ProductId": 1
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Id": 0,
  • "Name": "string",
  • "CustomExpectedRisk": 0,
  • "CustomExpectedReturn": 0,
  • "PortfolioProposalStatusId": 0,
  • "CreateDate": "2019-11-14T03:21:30Z",
  • "ProductId": 0,
  • "RecommendedAmount": 0,
  • "BenchmarkId": 0,
  • "BenchmarkName": "string",
  • "ModelPortfolioId": 0,
  • "PortfolioId": 0,
  • "RelationshipManagerId": 0,
  • "CurrencyId": 0
}

Get portfolio accounts

Gets the accounts related to a portfolio.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to retrieve the transactions for

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolios/{portfolioId}/accounts
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/accounts

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    },
  • {
    }
]

Create portfolio account

Creates a portfolio account.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to create the account for

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

AccountId
required
integer <int32>
IsDefaultCustodyAccount
required
boolean
IsPayoutAccount
required
boolean
IsPayinAccount
boolean

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/accounts
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/accounts

Request samples

Content type
Copy
Expand all Collapse all
{
  • "AccountId": 34,
  • "IsDefaultCustodyAccount": true,
  • "IsPayoutAccount": false,
  • "IsPayinAccount": false
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Account":
    {
    },
  • "IsDefaultCustodyAccount": true,
  • "IsPayoutAccount": false,
  • "IsPayinAccount": false
}

Delete portfolio account

Deletes a portfolio account.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to delete the account from

accountId
required
integer <int32>

The ID of the account to delete

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

500

InternalServerError

delete /v1.0/contacts/{contactId}/portfolios/{portfolioId}/accounts/{accountId}
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/accounts/{accountId}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Code": "NotFound",
  • "Message": "Contact with ID 1 not found"
}

Rebalance portfolio

Rebalances an existing implemented portfolio. The portfolio is rebalanced to a target set of new instruments/allocations. The target can be specified as a set of instrument allocations (passed in the InstrumentAllocations property), as an existing model portfolio (passed in the ModelPortfolioId property) or as an existing portfolio proposal (passed in the PortfolioProposalId property). If no target is passed the last implemented change to the portfolio will be used as the target. For virtual portfolios the position changes will become effective immediately, for real portfolios a rebalancing order will be created.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to rebalance

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

ModelPortfolioId
integer <int32>

The ID of a model portfolio that the portfolio should be rebalanced to (having the same instruments and allocations). If set, the InstrumentAllocations property is ignored.

PortfolioProposalId
integer <int32>

The ID of a portfolio proposal that the portfolio should be rebalanced to (having the same instruments and allocations). If set, the InstrumentAllocations property is ignored.

InstrumentAllocations
Array of objects (InstrumentAllocation)

The list of all instruments and their allocations that the portfolio should be rebalanced to. Is only used if ModelPortfolioId and PortfolioProposalId are not set.

ForceOrderGeneration
required
boolean

If set to 'true' forces the generation of order book entries, regardless of the value for the product setting 'IsOrderBookEnabled'.

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/rebalance
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/rebalance

Request samples

Content type
Copy
Expand all Collapse all
{
  • "InstrumentAllocations":
    [
    ],
  • "ForceOrderGeneration": false
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "OperationResult": "Success",
  • "OrderResult":
    {
    }
}

Get portfolio changes

Gets the changes of a portfolio within an optional date range. All currency values are returned in the base currency of the portfolio

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to retrieve the changes for

query Parameters
page
required
integer <int32>

The result page number, starting by 1

pageSize
required
integer <int32>

The number of items in a result page

language
required
string

The language in which to return all properties

from
string <date-time>

An optional start date for returning only changes with this date or newer

to
string <date-time>

An optional end date for returning only changes with this date or older

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolios/{portfolioId}/changes
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/changes

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Changes":
    [
    ],
  • "TotalNumberOfResults": 2
}

Get portfolio order book

Gets the order book entries of a portfolio within an optional date range.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to retrieve the changes for

query Parameters
page
required
integer <int32>

The result page number, starting by 1

pageSize
required
integer <int32>

The number of items in a result page

language
required
string

The language in which to return all properties

from
string <date-time>

An optional start date for returning only order book entries with this date or newer

to
string <date-time>

An optional end date for returning only order book entries with this date or older

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolios/{portfolioId}/orderbook
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/orderbook

Response samples

Content type
Copy
Expand all Collapse all
{
  • "OrderBookEntries":
    [
    ],
  • "TotalNumberOfResults": 2
}

Cancel order

Cancels an existing order from the order book

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio the order belongs to

orderBookId
required
integer <int32>

The ID of the order book entry to cancel

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/orderbook/{orderBookId}/cancel
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/orderbook/{orderBookId}/cancel

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Code": "NotFound",
  • "Message": "Contact with ID 1 not found"
}

Release orders

Releases orders from the order book. The market orders belonging to a product with enabled block orders are pulled together as block orders, all other order types are published to the service bus.

query Parameters
language
required
string

The language to use for all language dependent properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The parameter DTO containing a list of IDs of order book entries to be released

OrderBookIds
required
Array of integers <int32>

Responses

200

OK

post /v1.0/contacts/portfolios/orderbook/release
https://example-host/v1.0/contacts/portfolios/orderbook/release

Request samples

Content type
Copy
Expand all Collapse all
{
  • "OrderBookIds":
    [
    ]
}

Release block orders

Releases orders from the block order book. All block orders with status "Generated" are published to the service bus.

query Parameters
language
required
string

The language to use for all language dependent properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The parameter DTO containing a list of IDs of block order book entries to be released

BlockOrderBookIds
required
Array of integers <int32>

Responses

200

OK

post /v1.0/contacts/portfolios/blockorderbook/release
https://example-host/v1.0/contacts/portfolios/blockorderbook/release

Request samples

Content type
Copy
Expand all Collapse all
{
  • "BlockOrderBookIds":
    [
    ]
}

Release portfolio orders

Releases orders of a portfolio from the order book. The market orders belonging to a product with enabled block orders are pulled together as block orders, all other order types are published to the service bus.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio the orders belong to

query Parameters
language
required
string

The language to use for all language dependent properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO containing an optional list of IDs of order book entries to be released. If not passed then all orders with status 'Generated' belonging to the portfolio are released.

OrderBookIds
Array of integers <int32>

Responses

200

OK

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/orderbook/release
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/orderbook/release

Request samples

Content type
Copy
Expand all Collapse all
{
  • "OrderBookIds":
    [
    ]
}

Simulate order

The type of order that will be simulated is determined by the combination of properties set in the parameter DTO.

The following combinations and the resulting types are supported. All amounts are given in the currency specified in the CurrencyId parameter.

Initial order

  • TargetInstrumentAllocations - Contains the desired instrument set with allocations.
  • Amount - Contains the amount to be distributed according to the allocations given in TargetInstrumentAllocations.

Top up

  • SourceInstrumentAllocations - Contains the instrument set to top up.
  • SourceAmount - Contains the current market value of the instrument set given in SourceInstrumentAllocations.
  • Amount - Contains the amount to top up.
  • TargetInstrumentAllocations - If "AllowDriftingInvestments" is set to false in the global settings "Ordering" group the top up will result in a rebalance. In this case the instrument set to rebalance to needs to be provided in this property.

Sell/Sell all

  • SourceInstrumentAllocations - Contains the instrument set to sell from.
  • SourceAmount - Contains the current market value of the instrument set given in SourceInstrumentAllocations.
  • Amount - Contains the amount to sell, given as a negative value. If this amount * -1 is the same as the amount given in SourceAmount, a sell all is assumed.
  • TargetInstrumentAllocations - If "AllowDriftingSells" is set to false in the global settings "Ordering" group a normal sell (not a sell all!) will result in a rebalance. In this case the instrument set to rebalance to needs to be provided in this property.

Rebalancing

  • SourceInstrumentAllocations - Contains the instrument set to rebalance from.
  • SourceAmount - Contains the current market value of the instrument set given in SourceInstrumentAllocations.
  • TargetInstrumentAllocations - Contains the instrument set to rebalance to.
path Parameters
contactId
required
integer <int32>

The ID of the contact

query Parameters
language
required
string

The language to use for all language dependent properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO.

CurrencyId
required
integer <int32>

The base currency ID of the order.

SourceAmount
number <double>

The source amount of the order.

Amount
number <double>

The amount of the order.

SourceInstrumentAllocations
Array of objects (InstrumentAllocation)

The source list of all instruments and their allocations.

TargetInstrumentAllocations
Array of objects (InstrumentAllocation)

The target list of all instruments and their allocations.

Responses

200

OK

post /v1.0/contacts/{contactId}/portfolios/orderbook/simulate
https://example-host/v1.0/contacts/{contactId}/portfolios/orderbook/simulate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "CurrencyId": 2,
  • "Amount": 10000,
  • "TargetInstrumentAllocations":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "OrderBookEntries":
    [
    ],
  • "ChangeSetType": "InitialOrder"
}

Modify portfolio change

Modifies specific properties of a portfolio changeset

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio the orders belong to

portfolioChangeId
required
integer <int32>

The ID of the portfolio changeset to be modified

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO.

Availability
string
Enum: "OnHold" "Ready"

The new availability of the changeset

Status
string
Enum: "ToBeProcessed" "Processed" "Canceled" "Failed"

The new status of all details belonging to the changeset

Responses

200

OK

patch /v1.0/contacts/{contactId}/portfolios/{portfolioId}/changes/{portfolioChangeId}
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/changes/{portfolioChangeId}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Availability": "Ready",
  • "Status": "ToBeProcessed"
}

Generate orders

Generates orders in the order book for pending changesets.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio the changesets belong to

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO.

PortfolioChangeIds
Array of integers <int32>

The list of portfolio change IDs to generate orders for

ForceOrderGeneration
required
boolean

If set to 'true' forces the generation of order book entries, regardless of the value for the product setting 'IsOrderBookEnabled'

Responses

200

OK

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/orderbook/generate
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/orderbook/generate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "PortfolioChangeIds":
    [
    ],
  • "ForceOrderGeneration": false
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "PortfolioOrderResults":
    [
    ]
}

Calculate portfolio performance

Returns the performance time series of a portfolio for a given date range and the currency information used for calculation. If no date is passed it returns the whole time series since inception.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio for which the performance will be calculated

query Parameters
from
string <date-time>

An optional date which represents the start date of the interval for the calculated performance time series

to
string <date-time>

An optional date which represents the end date of the interval for the calculated performance time series

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Portfolio performance returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolios/{portfolioId}/performance
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/performance

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Values":
    [
    ],
  • "Currency":
    {
    }
}

Calculate investment overview performance

Returns the performance time series of all portfolios that belongs to a contact for a given date range and the currency information used for calculation.

path Parameters
contactId
required
integer <int32>

The ID of the contact

query Parameters
currencyId
integer <int32>

The ID of the currency to use as base currency for performance calculation

from
string <date-time>

An optional date which represents the start date of the interval for the calculated performance time series

to
string <date-time>

An optional date which represents the end date of the interval for the calculated performance time series

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Contact's portfolios performance returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/investment-overview/performance
https://example-host/v1.0/contacts/{contactId}/investment-overview/performance

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Values":
    [
    ],
  • "Currency":
    {
    }
}

Get portfolio monetary performance

Returns the monetary performance time series of a portfolio for a given date range and the currency information used for calculation.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio for which the monetary performance will be retrieved

query Parameters
from
string <date-time>

An optional date which represents the start date of the interval for the monetary performance time series

to
string <date-time>

An optional date which represents the end date of the interval for the monetary performance time series

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Portfolio's monetary performance time series returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/portfolios/{portfolioId}/monetary-performance
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/monetary-performance

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Values":
    [
    ],
  • "Currency":
    {
    }
}

Get investment overview monetary performance

Returns the daily monetary performance time series of all portfolios for a given contact and a given date range and the currency information used for calculation.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolios

query Parameters
currencyId
integer <int32>

The ID of the currency to use as base currency for performance calculation

from
string <date-time>

An optional date which represents the start date of the interval for the monetary performance time series

to
string <date-time>

An optional date which represents the end date of the interval for the monetary performance time series

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

Portfolio's monetary performance time series returned successfully.

400

BadRequest

401

Unauthorized

404

NotFound

422

UnprocessableEntity

500

InternalServerError

get /v1.0/contacts/{contactId}/investment-overview/monetary-performance
https://example-host/v1.0/contacts/{contactId}/investment-overview/monetary-performance

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Values":
    [
    ],
  • "Currency":
    {
    }
}

Get portfolio trading cart

Gets the trading cart of a portfolio.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to get the trading cart for

query Parameters
language
required
string

The language in which to return all properties

scope
string
Enum: "Buy" "Sell" "All"

An optional parameter to specify the scope for which to return the trading cart for. Can be 'Sell', 'Buy' or 'All'. Defaults to 'All' if not specified.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart

Response samples

Content type
Copy
Expand all Collapse all
{
  • "PortfolioTradingCart":
    {
    }
}

Delete portfolio trading cart

Deletes the trading cart of a portfolio.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to delete the trading cart for

query Parameters
scope
string
Enum: "Buy" "Sell" "All"

An optional parameter to specify the scope for which to delete the trading cart for. Can be 'Sell', 'Buy' or 'All'. Defaults to 'All' if not specified.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

delete /v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart

Modify portfolio trading cart

Modifies the trading cart of a portfolio.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to modify the trading cart for

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

Trades
required
Array of objects (InstrumentTrade)

The list containing the trades to create/modify

Responses

200

OK

patch /v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Trades":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Result": "Success"
}

Order portfolio trading cart

Orders the trading cart items of a portfolio.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to delete the trading cart for

query Parameters
scope
string
Enum: "Buy" "Sell" "All"

An optional parameter to specify the scope for which to create orders for. Can be 'Sell', 'Buy' or 'All'. Defaults to 'All' if not specified.

forceOrderGeneration
boolean

If set to 'true' forces the generation of order book entries, regardless of the value for the product setting 'IsOrderBookEnabled'.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart/order
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart/order

Response samples

Content type
Copy
Expand all Collapse all
{
  • "SellOperationResult":
    {
    },
  • "BuyOperationResult":
    {
    },
  • "SellPortfolioChangeId": 1,
  • "BuyPortfolioChangeId": 2
}

Simulate portfolio trading cart order

Simulates ordering the trading cart items of a portfolio.

path Parameters
contactId
required
integer <int32>

The ID of the contact that has access to the portfolio

portfolioId
required
integer <int32>

The ID of the portfolio to simulate the trading cart order for

query Parameters
language
required
string

The language in which to return all properties

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Request Body schema:

The parameter DTO

Trades
Array of objects (InstrumentTrade)

An optional list of trades to simulate. If not passed the current trades in the portfolio trading cart will be used.

Scope
string
Enum: "Buy" "Sell" "All"

An optional parameter to specify the scope for which to simulate the order for. Can be 'Sell', 'Buy' or 'All'. Defaults to 'All' if not specified.

Responses

200

OK

post /v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart/order/simulate
https://example-host/v1.0/contacts/{contactId}/portfolios/{portfolioId}/tradingcart/order/simulate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "Trades":
    [
    ],
  • "Scope": "All"
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "OrderBookEntries":
    [
    ],
  • "SellOrderSimulationResult": "Success",
  • "BuyOrderSimulationResult": "Success",
  • "Messages": [ ]
}

Products

Get product balances

Gets balance information for each product of a contact. Returns the current balance as well as the balance history and the allocation percentage. All balance information is returned in the base currency (returned in the Currency property) Only balance information from active accounts is returned.

path Parameters
contactId
required
integer <int32>
query Parameters
language
required
string
calculationInterval
required
string
Enum: "Daily" "Weekly" "Monthly" "Yearly"
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/contacts/{contactId}/products/balances
https://example-host/v1.0/contacts/{contactId}/products/balances

Response samples

Content type
Copy
Expand all Collapse all
{
  • "Total": 0,
  • "Currency":
    {
    },
  • "Products":
    [
    ]
}

Get contact accounts

Gets all accounts of a contact. Only active accounts are returned.

path Parameters
contactId
required
integer <int32>
query Parameters
language
required
string
header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

X-Token-Jwt
required
string

The Jwt token

Responses

200

OK

get /v1.0/contacts/{contactId}/accounts
https://example-host/v1.0/contacts/{contactId}/accounts

Response samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Trading

Get currency exchange rates

Retrieves the latest currency exchange rates for the currency pairs specified in the parameters. Automatically tries to convert exchange rates that are not available for the requested currency pairs by using indirect quotes (if available).

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The parameter DTO

CurrencyExchangeRateRequests
required
Array of objects (CurrencyExchangeRateRequest)
PriceDate
string <date-time>

Responses

200

OK

post /v1.0/currencies/exchangerates
https://example-host/v1.0/currencies/exchangerates

Request samples

Content type
Copy
Expand all Collapse all
{
  • "CurrencyExchangeRateRequests":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "CurrencyExchangeRates":
    [
    ]
}

Update fx rates history

Loads and saves all the available currencies fx rates from a price feed provider given a list of currency pairs. FX Rates history queried for a currency pair varies depending on the currency pair latest valuation date.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

Contains the list of currency pairs to import FX rates history for. If an empty currency pair list is passed then this will trigger the import of fx rates history for all currency pairs from the database which have an IntegrationIdentifier and an IntegrationIdentifierType.

CurrenciesPairs
Array of objects (CurrencyPair)

The list of currencies pairs to import FX rates history for

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

500

InternalServerError

post /v1.0/currencies/updatefxrateshistory
https://example-host/v1.0/currencies/updatefxrateshistory

Request samples

Content type
Copy
Expand all Collapse all
{
  • "CurrenciesPairs":
    [
    ]
}

Response samples

Content type
No sample

Get security prices

Retrieves the latest security prices for the securities and currencies specified in the parameters. Automatically tries to convert prices to the desired currency if they are not available in the requested currency.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

The parameter DTO

SecurityPriceRequests
required
Array of objects (SecurityPriceRequest)
PriceDate
string <date-time>

Responses

200

OK

post /v1.0/securities/prices
https://example-host/v1.0/securities/prices

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SecurityPriceRequests":
    [
    ]
}

Response samples

Content type
Copy
Expand all Collapse all
{
  • "SecurityPrices":
    [
    ]
}

Update securities price history

Loads and saves all the available price history from a price feed provider by security IDs. Price history queried for a security varies depending on the security date range.

header Parameters
Authorization
required
string

The BasicAuth token

X-Token-Hmac
string

The Hmac token

Request Body schema:

Contains the list of security IDs to import price history for. If security IDs list is passed as an empty list then this will trigger the import of price history for all securities from database which have a PriceFeedIntegrationIdentifier and a PriceFeedIntegrationIdentifierType.

SecurityIds
Array of integers <int32>

The list of security IDs to import price history for

Responses

200

OK

204

No Content

400

BadRequest

401

Unauthorized

500

InternalServerError

post /v1.0/securities/updatepricehistory
https://example-host/v1.0/securities/updatepricehistory

Request samples

Content type
Copy
Expand all Collapse all
{
  • "SecurityIds":
    [
    ]
}

Response samples

Content type
No sample