Through this API you can create a third party.

EndPoint
https://app.fracttal.com/api/third_parties
Method POST

Input Parameters in the Body

Parameter

Type of field

Required

Description

name

Text

Yes

Third party name

code

Text

Yes

Third party name

email

Text

Optional

Email

active

Text

Optional

Enabled resource. Send true or false

code_parent_location

Text

Optional

Code of the asset in which the third party will be located

group_1

Text

Optional

Classification description 1

group_2

Text

Optional

Classification Description 2

address

Text

Optional

Address

city

Text

Optional

City

state

Text

Optional

State

zip_code

Text

Optional

Zip code

country

Text

Optional

Country.

latitude

Text

Optional

Latitude

longitud

Text

Optional

Length.

telephone

Text

Optional

Telephone.

telephone_2

Text

Optional

Telephone 2.

sms

Text

Optional

SMS.

fax

Text

Optional

Fax.

web_page

Text

Optional

Web page.

visible_to_all

Boolean

Optional

Visible to all.

id_third_party_type

Integers array

Optional

1:Service provider
2:Maker
3:Supplier
4:Client

Output Parameters

PARAMETER

Type of field

Description

success

Boolean

true if the insert was successful or false otherwise

message

Text

200 if it was successful

data

Text

Json with the inserted item

total

Number

Number of records inserted (It will always be 1)

Example:
Petition: https://app.fracttal.com/api/third_parties
Body

{ 
"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]
}


Example Response:

{ 
"success": true,
"message": "200",
"data": {
"id": 6,
"id_company": 69,
"code": "3457899",
"address": null,
"email": null,
"id_parent": null,
"id_group_1": null,
"id_group_2": null,
"active": false,
"name": "Tercero 3 api",
"zip_code": null,
"city": null,
"state": null,
"telephone_1": null,
"telephone_2": null,
"fax": null,
"sms": null,
"id_custom_field_group": null,
"country": null,
"is_changed": false,
"latitude": null,
"longitud": null,
"web_page": null,
"id_third_party_import": null,
"id_parent_location": null
},
"total": 0
}

Did this answer your question?