List import templates
Import Templates
List import templates
Retrieve import templates using GraphQL. Supports filtering, sorting, and pagination via relay-style connections.
POST
List import templates
Query Structure
Filter Argument
All filters are passed inside thefilter argument. Each filter field accepts an input object with operators (e.g. eq, ilike, from, to, between):
Available Filters
| Filter | Input Type | Operators | Description |
|---|---|---|---|
template_type | ImportTemplatesTemplateTypeInputType | eq, in | Template type (enum input — e.g. StandardOrder) |
file_regexp | StringInputType | eq, ilike, like, in, between | Filename-matching regexp |
account_id | IdInputType | eq, in, gt, gteq, lt, lteq, filled | Stock account ID |
account_code | StringInputType | eq, ilike, like, in, between | Stock account code |
ftp_user_id | IdInputType | eq, in, gt, gteq, lt, lteq, filled | SFTP user ID |
ftp_user_name | StringInputType | eq, ilike, like, in, between | SFTP user name |
mapping_group_id | IdInputType | eq, in, gt, gteq, lt, lteq, filled | Mapping group ID |
created_at | DatetimeInputType | eq, from, to, between | Creation timestamp |
Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Body
application/json
GraphQL query string
Example:
"query($filter: ImportTemplateFilterType) { import_templates { all(filter: $filter) { edges { node { id file_regexp template_type account { id code } ftp_user { id name } mapping_group { id } } } } } }"
Query variables including the filter object
Example:
{
"filter": {
"template_type": { "eq": "StandardOrder" }
}
}
