API Guide Items- Customers - Request customer information

Customers - Request customer information

GET yourdomain.com/api/customers/:id

Header

json
Field Type Description
Authorization String

Basic Access Authentication token.

Parameter

json
Field Type Description
id Number

customer unique ID.

Success 200

json
Field Type Description
customer Object

information.

Error 4xx

json
Name Type Description
status Boolean

Request status.

message String

No data were found.

HTTP/1.1 200 OK
{
     "id": "28",
     "name": "Test1",
     "description": null,
     "status": "1",
     "clientid": "11",
     "billing_type": "3",
     "start_date": "2019-04-19",
     "deadline": "2019-08-30",
     "customer_created": "2019-07-16",
     "date_finished": null,
     "progress": "0",
     "progress_from_tasks": "1",
     "customer_cost": "0.00",
     "customer_rate_per_hour": "0.00",
     "estimated_hours": "0.00",
     "addedfrom": "5",
     "rel_type": "customer",
     "potential_revenue": "0.00",
     "potential_margin": "0.00",
     "external": "E",
    ...
}
HTTP/1.1 404 Not Found
{
  "status": false,
  "message": "No data were found"
}

Did you find this article useful?