Endpoints - Customer

GET /api/customer

Get all customers associated with logged in user. Uses authentication token.

Query string parameters

Name Type Title Read Only Description
token Token Access True Authentication token from server, provided after successful login.

Response body parameters

Name Type Title Read Only Description
id Integer ID True The customer ID, used for further lookups, or as a primary key.
customer String Customer Name True The name of the customer.
Example Request
curl --request GET \
--url 'https://qcore-api.dev/api/customer/' \
--token 'anystring:apikey' \
--include
Example Response
[
  {
    "id": 3,
    "customer": "Acme Cement"
  },
  {
    "id": 2,
    "customer": "Very Good Builders"
  }
]


POST /api/customer

Store a new instance of customer, and associate with current company. Uses authentication token.

Query string parameters

Name Type Title Read Only Description
token Token Access True Authentication token from server, provided after successful login.
customer String Customer Name False The name of the customer.

Response body parameters

Name Type Title Read Only Description
id Integer ID True The customer ID, used for further lookups, or as a primary key.
customer String Customer Name True The name of the customer.
Example Request
curl --request POST \
--url 'https://qcore-api.dev/api/customer/' \
--token 'anystring:apikey' \
--data 'customerName' \
--include
Example Response
[
  {
    "id": 3,
    "customer": "Acme Cement"
  },
  {
    "id": 2,
    "customer": "Very Good Builders"
  }
]

Still need help? Contact Us Contact Us