Customer API v1
Released stable version v1 of Customer API as REST and GraphQL endpoint.
For more information, see the documentation and introduction of the endpoints.
GraphQL
Trackunit Iris GraphQL API
Example:
query GetCustomers(
$before: Cursor
$after: Cursor
$last: Int
$first: Int = 20
) {
customers(before: $before, after: $after, first: $first, last: $last) {
edges {
node {
id
name
type
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
count
}
}
}
See all relevant GQL documentation
REST
Below a list of all available REST endpoints:
Customer:
GET: /customer/v1/customers/{customerId}
GET: /customer/v1/customers
POST: /customer/v1/customers
PATCH: /customer/v1/customers/{customerId}
DELETE: /customer/v1/customers/{customerId}
Customer Contact:
GET: customer/v1/customers/{customerId}/contacts/{contactId}
GET: customer/v1/customers/{customerid}/contacts
POST: customer/v1/customers/{customerid}/contacts
PATCH: customer/v1/customers/{customerid}/contacts/{contactId}
DELETE: customer/v1/customers/{customerid}/contacts/{contactId}
Customer Asset assignments:
GET: customer/v1/customers/{customerid}/assets
POST: customer/v1/customers/{customerid}/assets