Structure
The ThirdPart type consists of several attributes associated with a third party:
- ID (since version 4.1.1) internal identifier of the third party
- Name: Name of the party
- Sharable: True/False next if the third party is shareable
- values: Object containing a list of values attached to the third party
- ID: Identifier of the value
- type: the type of the value (ValueInfo / KeywordValueInfo)
- rawValue: The raw value of the information (the one present in the vendor master record). Only in the case of the ValueInfo type
- value :
- In the case of valueInfo: A formatted value used for third-party lookup
- In the case of the KeywordValueInfo type: an object containing the keyword. There are 2 types of keywords:
- Simple keywords: type = “ThirdPartKeyword”
- Keyword: the content of the keyword
- Zone: The search box for the keyword (can be null). Contains a rectangle (x1,y1,x2,y2)
- Favorite: True if the keyword is marked as a favorite, otherwise false
- Group keywords: type = “ThirdPartKeywordGroup”
- Keywords: List of simple keywords
- Simple keywords: type = “ThirdPartKeyword”
- personalAccount (since 4.1.1) Accounting Account Object (if available)
Example
{
"id": "60e2bfbce11c64196be4c6d2",
name : "Open Bee",
sharable : "false",
values : [
{
"id":"PHONE_INDEX",
"rawValue":"01.23.45.67.89",
"value":"0123456789",
"type":"ValueInfo"
},
{
"id":"KEYWORD_INDEX",
"value":[
{
"type" : "ThirdPartKeyword",
"keyword": "Test 01",
"zone": {"x1":683.0, "y1":779.0, "x2":805.0, "y2":798.0},
"favorite": false
},
{
"type" : "ThirdPartKeywordGroup",
"keywords": [
{
"type" : "ThirdPartKeyword",
"keyword": "Test 02", ...
}, ...
]
}, ...
],
"type":"KeywordValueInfo"
}
],
"personalAccount": {
"id": "60e2abbce11c64196be4c478",
"type": "SupplierAccount",
"accountNumber": "40110000",
"label": "AGC",
"buyerID": "60e2aad6e11c64196be4c46e",
"status": "ACTIVE",
"additionnalInfos": [
{
"id" : "INFORMATION_SUPPLEMENTAIRE_1",
"label" : "Information supplémentaire 1",
"value" : "valeur 1"
}
],
"isImported": true,
"isVentilable": false,
"personalAccountNumber": "FAGC",
"discountRate": 0
}
}