Using this API you can create a third party.
Input parameters
| Parameter | Type | Required | Description | 
|---|---|---|---|
| name | Text | Required | Name of third party | 
| code | Text | Required | Third party code | 
| email | Text | Optional | E-mail address | 
| active | Boolean | Optional | True if the third party is active, false otherwise | 
| code_parent_location | Text | Optional | Code of the asset in which the third party will be located. | 
| group_1 | Text | Optional | Description of classification 1 | 
| group_2 | Text | Optional | Description of classification 2 | 
| address | Text | Optional | Address | 
| city | Text | Optional | City | 
| state | Text | Optional | State | 
| zip_code | Text | Optional | Area code | 
| country | Text | Optional | Country | 
| latitude | Text | Optional | Latitude | 
| longitud | Text | Optional | longitude | 
| telephone | Text | Optional | Phone | 
| telephone_2 | Text | Optional | Phone 2. | 
| sms | Text | Optional | sms | 
| fax | Text | Optional | Fax | 
| web_page | Text | Optional | Website. | 
| visible_to_all | Boolean | Optional | Visible to all. | 
| id_third_party_type | Integer Array | Optional | 1:Service provider 2:Manufacturer 3:Supplier 4:Customer | 
Output parameters
| Parameter | Type | Description | 
|---|---|---|
| success | Boolean | True if the insert was successful or false otherwise | 
| message | Text | 200 if successful | 
| data | Text | Json con el item insertado | 
| total | Number | Number of inserted records (always 1) | 
Example
Petition: (POST)https://app.fracttal.com/api/third_parties
{
	"name":"Fracttal SPA",
	"code":"fracttal_tercero",
	"address":"San Pio X",
	"country":"Chile",
	"email":"[email protected]",
	"active": "true",
	"city":"Providencia",
	"state": "Region Metropolitana",
	"telephone_1":"555-555-55",
	"web_page":"www.fracttal.com",
        "id_third_party_type":[1,2,3]
}Test It
Test It
