Enterprise Endpoints
Enterprises are the main database of your Salesly.app account. They are the base of all other modules.
Enterprise Object
Property Name | Type |
---|---|
id | integer |
name | string |
type | integer |
string | |
cif | string |
phone | string |
phone2 | string |
web | string |
iban | string |
public | boolean |
users | array of integer |
location | object ( Location ) |
contacts_ids | array of integer |
contacts | array of Contact |
EXAMPLE
{
"id": 2,
"name": "Salesly.app",
"email": "test@salesly.app",
"comments": null,
"cif": "G123456789",
"phone": "938206362",
"phone_2": null,
"iban": null,
"web": null,
"public": 0,
"last_event": null,
"next_event": null,
"last_opportunity_sale_date": null,
"state": 0,
"type": 1,
"no_user": 0,
"created_at": "2023-10-23 20:09:12",
"updated_at": "2023-10-23 20:09:12",
"deleted_at": null,
"contacted": null,
"mailchimp_unsubscribed": null,
"fiscal_equal_commercial": true,
"fiscal_name": null,
"fiscal_address": null,
"store_discount": null,
"instagram": null,
"facebook": null,
"location": {
"id": 2,
"enterprise_id": 2,
"primary": 1,
"direction": "Carrer Gavarresa",
"city": "Cabrianes",
"postal": "08620",
"country": "Spain",
"latitude": "41.7984089",
"longitude": "1.9100628999999572",
"created_at": "2023-10-23 20:09:12",
"updated_at": "2023-10-23 20:09:12",
"deleted_at": null,
"extra_info": null
},
"contacts": [],
"users": []
}
Location Object
Property Name | Type |
---|---|
primary | required integer |
direction | required string |
city | required string |
postal | required string |
country | required string |
latitude | string |
longitude | string |
extra_info | string |
EXAMPLE
{
"primary": 1,
"direction": "Carrer Gavarresa",
"city": "Cabrianes",
"postal": "08620",
"country": "Spain",
"latitude": "41.7984089",
"longitude": "1.9100628999999572"
}