Third party creation with custom fields
There is the recipe https://doc.api.zenta.app/recipes/create-thirdparty-with-custom-fields
This payload represents a structure used for creating a thirdparty
- Contacts: This section contains a list of contact objects. Each contact includes details such as email, language, name, phone, and type. The contact type can be PRIMARY | SECONDARY | SALES | SECURITY | PRIVACY | IT
Example: A contact with the email "[email protected]", language "ES" (Spanish), and name "mario".
- FieldGroups: This section is a list of field groups. Each group contains multiple fields.
Each field has an ID, value, optional value option ID, a list of possible values, and an order.
Example: A field with ID "73cec1f3-4282-4af2-87c4-b27ef77eb114" and value "Arandi".
Name: This is a simple string field that contains the name "Arandi".
- Users: This section lists users associated with this record. Each user has a user ID and a list of permissions.
User permissions can be OWNER and RESPONSIBLE.
Example: A user with ID "fcd23c8b-f710-41b6-85e1-ae4ee649cbab" who has the "OWNER" permission.
- Scopes : This section lists the scopes for the data, typically used to define the boundaries or context in which this data is relevant.
The companies of the scope field must be obtained from the companies endpoint (see recipe https://doc.api.zenta.app/recipes/get-all-companies)
Example: A scope with the company ID "459061fb-c047-4cba-8279-e0513c2de112".
Each part of the payload is structured to provide detailed and organized information about contacts, fields within groups, users, and scopes, facilitating comprehensive data management and integration into a system.
{
"contacts": [
{
"email": "[email protected]",
"language": "ES",
"name": "Daniel",
"phone": "",
"type": "PRIMARY"
}
],
"fieldGroups": [
{
"fields": [
{
"id": "73cec1f3-4282-4af2-87c4-b27ef77eb114",
"value": "Dinetch",
"valueOptionId": "",
"values": [],
"fieldOrder": 0
},
{
"id": "f001a7b2-68d3-43ef-8a33-540fcc4f314c",
"value": "",
"valueOptionId": "",
"values": [
{
"id": "459061fb-c047-4cba-8279-e0513c2de112"
}
],
"fieldOrder": 0
},
{
"id": "c85d8418-7e8d-495a-b33f-aec0c952d2d7",
"value": "",
"valueOptionId": "ce13ca44-0a6f-477b-b0ba-f014b49874cf",
"values": [],
"fieldOrder": 0
}
],
"groupId": "5b5fbbf0-1b2f-4e75-b104-12c97e5b80d6"
},
{
"fields": [
{
"id": "5fbea109-0d00-437f-a8c2-3edba67a2b12",
"value": "",
"valueOptionId": "b4a45022-8d09-440c-9e2b-05ed76f7e255",
"values": [],
"fieldOrder": 0
}
],
"groupId": "5a3be220-e3e9-4a90-be0e-8886224da6d1"
}
],
"name": "Dinetch",
"users": [
{
"userId": "fcd23c8b-f710-41b6-85e1-ae4ee649cbab",
"permissions": [
"OWNER"
]
}
],
"scopes": [
{
"companyId": "459061fb-c047-4cba-8279-e0513c2de112"
}
]
}
Updated over 1 year ago