GraphQL Product Export API
This API created by Custom Gateway allows you to get product information from CPP to enable it to be imported into other systems.
To utilise this you need to have an OMS OAUTH user set up with access to "Product Manager View" and "Product Manager List" along with any relevant categories. If you do not have an OAUTH user you can request one by emailing
support@custom-gateway.com. When you have this you will be provided with a Client ID and client secret that you can use to authenticate on the API endpoint.
An example authentication request is below where the 2 red portions would be where you add your own credentials from the steps above (note running this requires you to have curl and jq installed.
TOKEN=`curl "
https://oauth.custom-gateway.net/token" -d"client_id=
**REDACTED**&client_secret=
**REDACTED**&grant_type=client_credentials&scope=product.customisable.view products.customisable.list" -vv | jq .access_token -r`
Once you have authenticated and have obtained a token you can run the API endpoint with filters.
An example curl for this endpoint is available here which would follow on from the authentication above
curl -H"Authorization: Bearer $TOKEN" -d'{"query":"query($page: Int!, $filter: Json!) { core { products(filter: $filter, page: $page, count: 100) { pages { pageCount, current }, items { id, name, snapshots { large } } } } }", "variables": { "filter": { "category_id": 12345 }, "page": 1 } }' "https://graphql.custom-gateway.net"
The query is a bit easier to read when multiline:
query($page: Int!, $filter: Json!) {
core {
products(filter: $filter, page: $page, count: 250) {
pages {
pageCount
current
},
items {
id
name
snapshots {
large
}
}
}
}
}
You can also add addition information into the request, anything in CPP can be gathered this way, see the additional below exampe adding more
query($page: Int!, $filter: Json!) {
core {
products(filter: $filter, page: $page, count: 250) {
pages {
pageCount
current
},
items {
id
productCode
retail_sku
name
snapshots {
large
}
ecommerce {
sales_description
sales_description_long
}
legacy_tier_prices {
items {
quantity
price
rrp
}
}
}
}
}
Related Articles
Product Integration | Generic API
Introduction This article has been created to show how to setup the Product integration Kornit X has built to connect to Generic API. Setup To setup the Generic API integration, please head to your category and within and within the advanced ...
Product Integration | Mirakl (Export Only)
Introduction This article has been written to aide with setting up the Kornit X Product integration with the Mirakl platform. This This type of integration allows you to send products from the platform to Mirakl connected via the advanced settings of ...
Kornit X Product Manager - Excel Import and Export
Introduction The Excel import and export to and from Product Manager is a powerful tool which allows for bulk Blank product updates, and also serves a potential option for creating simple Blank products. Note: Attempting to amend Virtual Products is ...
Standard Order Details Export API
Kornit X have an API which can be called to gather order details from the OMS in JSON format. This function is available to users who have an Order Manager subscription or higher and is not available to OMS lite or free users. To utilise this you ...
Product Integration | Walmart (Export Only)
Introduction This article has been written to aide with setting up the Kornit X Product integration with the Walmart platform. This type of integration allows you to send products from the platform to Walmart connected via the advanced settings of ...