Table of Contents |
---|
Introduction
The primary method for redirecting to the Thinksurance Platform while concurrently transmitting all essential data is through the usage of the Broker Forward action within the Thinksurance Public API V1, hereafter referred to as "the API." This action, the first of two, facilitates the redirection and data transfer process (the second being the Switch action). The Broker Forward action assumes responsibility for updating or creating data related to the customer, consultation, or inquiry. It subsequently returns a URL directing to a dedicated payload within the Switch action, ultimately guiding partner to their intended final destination.
Endpoint
To initiate the Broker Forward action, it is imperative to dispatch an HTTP POST request to the endpoint /api/broker/fwd/{:token}. The parameterised segment of the endpoint, denoted as "{:token}," pertains to the security token retrievable by the partner during the Authentication process on the API.
...
Action name
...
broker forward
...
HTTP path
...
/api/broker/fwd/{:token}
token - a security token retrieved from Authentication
...
HTTP method
...
POST
Attributes of the HTTP request
Broker Parameters
The initial set of parameters pertains to broker data. Only specific elements within this data subset are mandatory for delivery. These required elements assist the API in accurately mapping the request to the designated broker. If supplementary data for the broker is provided, the mapped broker information will be updated accordingly.
...
type
...
int
...
required
...
Enumeration value that defines the way for mapping broker data from the request:
1 - it requires to have broker’s ID from the partner system provided to Thinksurance System
2 - it doesn’t requires to have broker’s ID from the partner system provided to Thinksurance System
...
bToken
...
string
...
required
...
A special token used for brokers to identify itself during API calls. Provided by Thinksurance Support Team.
...
bExternalId
...
string
...
required
...
Broker’s ID from the partner system.
...
bGender
...
int
...
optional
...
Enumeration value that defines salutation of the broker person:
1 - Mr
2 - Ms
...
bFirstName
...
string
...
optional
...
Broker person’s first name.
...
bLastName
...
string
...
optional
...
Broker person’s last name.
...
bEmail
...
string
...
optional
...
Broker person’s email address.
...
bCompany
...
string
...
optional
...
Broker company’s name.
...
bStreet
...
string
...
optional
...
Broker company’s street name.
...
bStreetNumber
...
string
...
optional
...
Broker company’s street number.
...
bZip
...
string
...
optional
...
Broker company’s postcode.
...
bCity
...
string
...
optional
...
Broker company’s city.
...
bPhone
...
string
...
optional
...
Broker company’s phone number.
...
bCompanyRegNumber
...
string
...
optional
...
Broker company’s commercial register number.
...
bRegNumber
...
string
...
optional
...
Broker company’s IHK register number.
Callback Parameters
All callback parameters are similarly associated with broker data. The provision of these parameters during the request will result in the corresponding values being updated.
...
fullCallback
...
int
...
optional
...
Enumeration value that defines if the partner system expects update (a callback) from the API after booking process is done:
0 - the partner system expects to get an update in a form of a callback, once the inquiry passes booking process.
1 - the partner system doesn’t expect any active update from Thinksurance side, but it will use the API to get further information on its own.
...
callbackUrl
...
string
...
optional1
...
An endpoint on the partner side that should receive update in a form of callback. It will be used if fullCallback parameter is set to 0.
...
Table of Contents |
---|
Introduction
The primary method for redirecting to the Thinksurance Platform while concurrently transmitting all essential data is through the usage of the Broker Forward action within the Thinksurance Public API V1, hereafter referred to as "the API." This action, the first of two, facilitates the redirection and data transfer process (the second being the Switch action). The Broker Forward action assumes responsibility for updating or creating data related to the customer, consultation, or inquiry. It subsequently returns a URL directing to a dedicated payload within the Switch action, ultimately guiding partner to their intended final destination.
Endpoint
To initiate the Broker Forward action, it is imperative to dispatch an HTTP POST request to the endpoint /api/broker/fwd/{:token}. The parameterised segment of the endpoint, denoted as "{:token}," pertains to the security token retrievable by the partner during the Authentication process on the API.
Action name | broker forward |
---|---|
HTTP path | /api/broker/fwd/{:token}
|
HTTP method | POST |
Attributes of the HTTP request
Broker Parameters
The initial set of parameters pertains to broker data. Only specific elements within this data subset are mandatory for delivery. These required elements assist the API in accurately mapping the request to the designated broker. If supplementary data for the broker is provided, the mapped broker information will be updated accordingly.
Notice: Please use the correct format for email adresses. Don’t use spacings or special characters in the email. False: “ exampleMail@mailProvider.com;” Correct: “exampleMail@mailProvider.com” |
---|
type | int | required | Enumeration value that defines the way for mapping broker data from the request:
|
---|---|---|---|
bToken | string | required | A special token used for brokers to identify itself during API calls. Provided by Thinksurance Support Team. |
bExternalId | string | required | Broker’s ID from the partner system. |
bGender | int | optional | Enumeration value that defines salutation of the broker person:
|
bFirstName | string | optional | Broker person’s first name. |
bLastName | string | optional | Broker person’s last name. |
bEmail | string | optional | Broker person’s email address. |
bCompany | string | optional | Broker company’s name. |
bStreet | string | optional | Broker company’s street name. |
bStreetNumber | string | optional | Broker company’s street number. |
bZip | string | optional | Broker company’s postcode. |
bCity | string | optional | Broker company’s city. |
bPhone | string | optional | Broker company’s phone number. |
bCompanyRegNumber | string | optional | Broker company’s commercial register number. |
bRegNumber | string | optional | Broker company’s IHK register number. |
Callback Parameters
All callback parameters are similarly associated with broker data. The provision of these parameters during the request will result in the corresponding values being updated.
fullCallback | int | optional | Enumeration value that defines if the partner system expects update (a callback) from the API after booking process is done:
| ||||||
---|---|---|---|---|---|---|---|---|---|
callbackUrl | string | optional1 | An endpoint on the partner side that should receive update in a form of callback. It will be used if fullCallback parameter is set to 0. | ||||||
mvpFullCallback | int | optional | Enumeration value that defines if the partner’s TEST system expects update (a callback) from the API after booking process is done:
| ||||||
mvpCallbackUrl | string | optional2 | An endpoint on the partner’s TEST system side that should receive update in a form of callback. It will be used if mvpFullCallback parameter is set to 0. | ||||||
1 required if fullCallback is set to 0 |
Customer Parameters
The following parameters belong to the customer and serve the purpose of updating or creating a customer, contingent upon whether their external ID (an identifier from the partner's system) is already recognized within the Thinksurance platform.
cExternalId | string | optional1 | Unique customer’s ID in the partners system. |
---|---|---|---|
cSalutation | int | optional | Enumeration value that defines |
0 - the partner’s TEST system expects to get an update in a form of a callback, once the inquiry passes booking process.
1 - the partner’s TEST system doesn’t expect any active update from Thinksurance side, but it will use the API to get further information on its own.
salutation of the customer person:
| ||
cFirstName | string | optional |
---|
An endpoint on the partner’s TEST system side that should receive update in a form of callback. It will be used if mvpFullCallback parameter is set to 0.
1 required if fullCallback is set to 0
2 required if mvpFullCallback is set to 0
Customer Parameters
The following parameters belong to the customer and serve the purpose of updating or creating a customer, contingent upon whether their external ID (an identifier from the partner's system) is already recognized within the Thinksurance platform.
cExternalId | string | optional1 | Unique customer’s ID in the partners system. | ||||||
---|---|---|---|---|---|---|---|---|---|
Customer person’s first name. | |||||||||
cLastName | string | optional2 | Customer person’s last name. | ||||||
cBirthDate | string | optional | Customer person’s date of birth. | ||||||
cEmail | string | optional2 | Customer person’s email address. | ||||||
cTitle | int | optional | cEmail | string | optional2 | Enumeration value that defines salutation of the customer person:
| |||
cFirstName | string | optional | Customer person’s first name. | ||||||
cLastName | string | optional2 | Customer person’s last name. | ||||||
cBirthDate | string | optional | Customer person’s date of birth. | ||||||
Customer person’s email addressthe customer’s title: 1 - Dr. 2 - Prof. 3 - Prof. Dr. 4 - B.A. 5 - MBA 6 - Ph.D. 7 - Mag. 8 - Dipl.-Ing. 9 - Dipl.-Inf. 10 - Dr. med. 11 - Dr.-Ing. 12 - Dipl.-Psych. 13 - Priv.-doz. 14 - Dr. Dr. 15 - M.A. 16 - Priv.-doz. Dr. 17 - Bachelor 18 - Master 19 - Dipl.-Wirt.-Ing. 20 - Dipl.-Wirt.-Inf. 21 - Dipl.-Betriebswirt 22 - Dr.med.dent 23 - Dr. jur. 24 - Dipl.-Med. | |||||||||
cStreet | string | optional | Customer person’s street name. | ||||||
cStreetNumber | string | optional | Customer person’s street number. | ||||||
cZip | string | optional | Customer person’s postcode. | ||||||
cCity | string | optional | Customer person’s city. | ||||||
cWebsite | string | optional | Customer person’s website. | ||||||
cPhone | string | optional | Customer person’s phone number. | ||||||
cPrivateIsCompanyAddress | int | optional | Enumeration value that defines if customer person’s address should be used as actual business address for the customer:
| ||||||
cCompany | string | optional | Customer company’s name. | ||||||
cLegalForm | int | optional | Enumeration value that defines legal form of the customer’s business:
| ||||||
cCompanyStreet | string | optional | Customer business address street name. | ||||||
cCompanyStreetNumber | string | optional | Customer business address street number. | ||||||
cCompanyZip | string | optional | Customer business address postcode. | ||||||
cCompanyCity | string | optional | Customer business address city. | ||||||
cBankIban | string | optional | IBAN of the customer business bank details. | ||||||
cBankBic | string | optional | BIC of the customer business bank details. | ||||||
cBankName | string | optional | Bank name of the customer business bank details. | ||||||
cBankAccountHolder | string | optional | Bank account holder name of the customer business bank details. | ||||||
cAccountType | int | optional | Enumeration value that defines if customer is private entity or corporate:
| ||||||
cExternalReferences | optional | An array of objects, containing custom values requested to properly identify the customer on the partners system, for example CRM tool. | |||||||
crmIdent | string | optional3 | Enumeration value that defines the CRM tool (Customer Relationship Management), that owns original data of the customer:
| ||||||
1 required if instantInquiryCreation is set to True |
...
HTTP Request with only broker details | |||||
| |||||
HTTP Request with update for broker data | |||||
| |||||
HTTP Request with created or updated customer | |||||
| |||||
HTTP Request with created or updated customer and created inquiry | |||||
| |||||
HTTP Request with created or updated customer, created inquiry and questionnaire pre-populated | |||||
| |||||
Successful HTTP Response without created inquiry | |||||
| |||||
Successful HTTP Response with created inquiry | |||||
| |||||
Failed HTTP Response | |||||
|
...