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.
➕ 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
➕ GET:
/customer/v1/customers
Get customers
➕ POST:
/customer/v1/customers
Create customer
➕ PATCH:
/customer/v1/customers/{customerId}
Update customer
➕ DELETE:
/customer/v1/customers/{customerId}
Delete customer
Customer Contact:
➕ GET:
customer/v1/customers/{customerId}/contacts/{contactId}
Get contact
➕ GET:
customer/v1/customers/{customerid}/contacts
Get contacts
➕ POST:
customer/v1/customers/{customerid}/contacts
Create contact
➕ PATCH:
customer/v1/customers/{customerid}/contacts/{contactId}
Update contact
➕ DELETE:
customer/v1/customers/{customerid}/contacts/{contactId}
Delete contact
Customer Asset assignments:
➕ GET:
customer/v1/customers/{customerid}/assets
Get assets
➕ POST:
customer/v1/customers/{customerid}/assets
Update assets