Attention: Our API is in active development. Please ensure to read our Development Notice for important information on potential changes and updates. We appreciate your understanding.
TBInt API Reference (Beta)
The TBInt API is built with GraphQL, a powerful query language that enables you to request only the data you need. Unlike REST APIs, which require multiple endpoints to return different sets of data, GraphQL exposes a single endpoint. This endpoint provides access to functions called queries (for reading data) and mutations (for writing data), allowing you to specify the structure of the data returned.
GraphQL Schema
A GraphQL schema is a blueprint that represents the data structure of the API. It defines the type hierarchy, fields, queries, and mutations, and outlines the functionality available to the client. In simple terms, "A schema defines a collection of types and the relationships between these types." Developers can utilize the schema as a form of documentation and as a guide for generating code to interact with the API.
Queries and Mutations
Queries and mutations are the fundamental operations in a GraphQL API. A query is used to read or retrieve data, while a mutation is used to write, modify, or post data. Each operation is a string that the GraphQL server can parse and respond to with data in a specific structure, generally in JSON format.
Consider a query or mutation as a method within your source code - it accepts arguments, performs a function, and then returns a response in a predictable format.
Example of a GraphQl Query
query customers {
customer {
id
firstName
lastName
}
}
Response
{
"data":
"customers": {
[
{
"id": "WAz8eIbvDR60rouK",
"firstName": "Esther",
"lastName": "Mude"
},
{
"id": "WAz8eIbvDR60rouK",
"firstName": "Jens-Peter",
"lastName": "Misicher"
}
...
]
}
}
Example of a GraphQl Mutation
mutation createCustomer($firstName: String!, $lastName: String!) {
createCustomer(firstName: $firstName, lastName: $lastName) {
id
firstName
lastName
}
}
Response
{
"data": {
"createCustomer": {
"id": "WAz8eIbvDR60rouK",
"firstName": "Esther",
"lastName": "Mude"
}
}
}
Entity Representation
Guides
Resources
Sales API
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Products API
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Business Partner API
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.