{"id":21266,"date":"2022-04-11T13:56:06","date_gmt":"2022-04-11T11:56:06","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/objects\/thirdpart\/"},"modified":"2026-05-13T09:35:51","modified_gmt":"2026-05-13T07:35:51","slug":"thirdpart","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/objects\/thirdpart\/","title":{"rendered":"ThirdPart"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"ThirdPart-Structure\">Structure<\/h1>\n\n<p>The ThirdPart type consists of several attributes associated with a third party:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>ID <\/strong>(since version 4.1.1) internal identifier of the third party<\/li>\n\n\n\n<li><strong>Name<\/strong>: Name of the party<\/li>\n\n\n\n<li><strong>Sharable<\/strong>: True\/False next if the third party is shareable<\/li>\n\n\n\n<li><strong>values<\/strong>: Object containing a list of values attached to the third party\n<ul class=\"wp-block-list\">\n<li><strong>ID: <\/strong>Identifier of the value<\/li>\n\n\n\n<li><strong>type<\/strong>: the type of the value (ValueInfo \/ KeywordValueInfo)<\/li>\n\n\n\n<li><strong>rawValue: <\/strong>The raw value of the information (the one present in the vendor master record). Only in the case of the ValueInfo type  <\/li>\n\n\n\n<li><strong>value&nbsp;<\/strong>:\n<ul class=\"wp-block-list\">\n<li>In the case of valueInfo: A formatted value used for third-party lookup<\/li>\n\n\n\n<li>In the case of the KeywordValueInfo type: an object containing the keyword. There are 2 types of keywords:\n<ul class=\"wp-block-list\">\n<li>Simple keywords: type = &#8220;ThirdPartKeyword&#8221;\n<ul class=\"wp-block-list\">\n<li>Keyword: the content of the keyword<\/li>\n\n\n\n<li>Zone: The search box for the keyword (can be null). Contains a rectangle (x1,y1,x2,y2)<\/li>\n\n\n\n<li>Favorite: True if the keyword is marked as a favorite, otherwise false<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Group keywords: type = &#8220;ThirdPartKeywordGroup&#8221;\n<ul class=\"wp-block-list\">\n<li>Keywords: List of simple keywords<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>personalAccount<\/strong> (since 4.1.1) Accounting Account Object (if available)<\/li>\n<\/ul>\n\n<h1 class=\"wp-block-heading\" id=\"ThirdPart-Exemple\">Example<\/h1>\n\n<pre class=\"wp-block-code\"><code>{ \n    \"id\": \"60e2bfbce11c64196be4c6d2\",\n\tname : \"Open Bee\",\n\tsharable : \"false\", \n\tvalues : &#91;\n\t\t{\n\t\t\t\"id\":\"PHONE_INDEX\",\n\t\t\t\"rawValue\":\"01.23.45.67.89\",\n\t\t\t\"value\":\"0123456789\",\n\t\t\t\"type\":\"ValueInfo\"\n\t\t},\n\t\t{\n\t\t\t\"id\":\"KEYWORD_INDEX\",\n\t\t\t\"value\":&#91;\n\t\t\t\t{\n\t\t\t\t\t\"type\" : \"ThirdPartKeyword\",\n\t\t\t\t\t\"keyword\": \"Test 01\",\n\t\t\t\t\t\"zone\": {\"x1\":683.0, \"y1\":779.0, \"x2\":805.0, \"y2\":798.0},\n\t\t\t\t\t\"favorite\": false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\" : \"ThirdPartKeywordGroup\",\n\t\t\t\t\t\"keywords\": &#91;\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"type\" : \"ThirdPartKeyword\",\n\t\t\t\t\t\t\t\"keyword\": \"Test 02\", ...\n\t\t\t\t\t\t}, ...\n\t\t\t\t\t]\n\t\t\t\t}, ...\n\t\t\t],\n\t\t\t\"type\":\"KeywordValueInfo\"\n\t\t}\n\t],\n    \"personalAccount\": {\n        \"id\": \"60e2abbce11c64196be4c478\",\n        \"type\": \"SupplierAccount\",\n        \"accountNumber\": \"40110000\",\n        \"label\": \"AGC\",\n        \"buyerID\": \"60e2aad6e11c64196be4c46e\",\n        \"status\": \"ACTIVE\",\n        \"additionnalInfos\": &#91;\n                {\n                         \"id\" : \"INFORMATION_SUPPLEMENTAIRE_1\",\n                         \"label\" : \"Information suppl\u00e9mentaire 1\",\n                         \"value\" : \"valeur 1\"\n                }\n        ],\n        \"isImported\": true,\n        \"isVentilable\": false,\n        \"personalAccountNumber\": \"FAGC\",\n        \"discountRate\": 0\n  }\n}<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Helpful Tip<\/h2>\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-help-open-bee wp-block-embed-help-open-bee\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"VI5bZSG9os\"><a href=\"https:\/\/help.openbee.com\/fr\/open-bee-scan-capture\/base-de-connaissance\/guides-pratiques\/les-scripts-dans-capture\/cas-concrets\/astuces\/astuces-afficher-le-resultat-dune-variable-jse_result-ou-autres-types\/\">Astuces: R\u00e9cup\u00e9rer une valeur du dossier ou depuis la fiche tiers<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u00ab\u00a0Astuces: R\u00e9cup\u00e9rer une valeur du dossier ou depuis la fiche tiers\u00a0\u00bb &#8212; Help Open Bee\" src=\"https:\/\/help.openbee.com\/fr\/open-bee-scan-capture\/base-de-connaissance\/guides-pratiques\/les-scripts-dans-capture\/cas-concrets\/astuces\/astuces-afficher-le-resultat-dune-variable-jse_result-ou-autres-types\/embed\/#?secret=Y67ky2zrZr#?secret=VI5bZSG9os\" data-secret=\"VI5bZSG9os\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-help-open-bee wp-block-embed-help-open-bee\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"iTDzKUlHYA\"><a href=\"https:\/\/help.openbee.com\/fr\/open-bee-scan-capture\/base-de-connaissance\/guides-pratiques\/les-scripts-dans-capture\/cas-concrets\/index\/index-obtenir-le-compte-tiers-enregistre-sur-le-tiers\/\">Index : Obtenir le compte tiers enregistr\u00e9 sur le tiers<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u00ab\u00a0Index : Obtenir le compte tiers enregistr\u00e9 sur le tiers\u00a0\u00bb &#8212; Help Open Bee\" src=\"https:\/\/help.openbee.com\/fr\/open-bee-scan-capture\/base-de-connaissance\/guides-pratiques\/les-scripts-dans-capture\/cas-concrets\/index\/index-obtenir-le-compte-tiers-enregistre-sur-le-tiers\/embed\/#?secret=pOq5nkoIU5#?secret=iTDzKUlHYA\" data-secret=\"iTDzKUlHYA\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Structure The ThirdPart type consists of several attributes associated with a third party: Example Helpful Tip<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":21242,"menu_order":11,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-21266","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=21266"}],"version-history":[{"count":1,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21266\/revisions"}],"predecessor-version":[{"id":21268,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21266\/revisions\/21268"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21242"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}