Core API
The Core API is our next-gen API designed to power Apps and Integrations. Please note that the API is a work in progress, and parts of it can change.
Authentication is required to access the Core API. You can generate access tokens in order to do so.
While we're in the process of migrating functionality between the APIs, the PIM API cannot be fully replaced by the Core API just yet. However, certain queries and mutations are currently only available through the Core API, including:
One major thing that differs within this API is error handling. You need to specifically query errors as follows:
{
order(id: "ORDER_ID") {
... on Order {
id
}
...on OrderDoesNotBelongToTenantError {
errorName
message
}
}
}
Queries can have errors that are specific to it, like in the example above, in addition to some common ones such as:
...on UnauthorizedError
...on ExperimentalFeaturesNotAvailableError
...on Unknown error
...on BasicError
Have a look at our references for: