Enterprise
List Enterprises

List enterprises

Get all your enterprises in paginate format.

POST/enterprise/list

Parameters

items_for_page - intger required
Total of returned items.


page - intger required
Number of the page relatievly of the items_for_page.


user_id - intger optional
For only get the enterprises of specific user.


Example
{
  "items_for_page": 5,
  "page": 1
}

Response

status 200

The response contains the pagination data and the enterprise objects are inside in the data property.

Response
{
  "total": 6,
  "per_page": 5,
  "current_page": 1,
  "last_page": 2,
  "from": 1,
  "to": 5,
  "data":
    [
      {
        "id": 1,
        "name": "Salesly.app",
        "email": "info@salesly.app",
        "comments": null,
        "cif": "G123456789",
        "phone": "938206362",
        "phone_2": null,
        "iban": null,
        "web": "https://www.salesly.app",
        "public": 0,
        "last_event": null,
        "next_event": null,
        "last_opportunity_sale_date": null,
        "state": 0,
        "type": 1,
        "no_user": 0,
        "extra_field": null,
        "contacted": null,
        "mailchimp_unsubscribed": null,
        "location": {
          "primary": 1,
          "direction": "Carrer Gavarresa",
          "city": "Cabrianes",
          "postal": "08620",
          "country": "Spain",
          "latitude": "41.7984089",
          "longitude": "1.9100628999999572"
        },
        "contacts": [],
        "users": []
      },
 
      {"id" : 2 ...},
      {"id" : 3 ...}
      {"id" : 4 ...}
      {"id" : 5 ...}
    ]
}