This API provides services to upload, manipulate and download Global Trade Item data in the CDQ Cloud
Product Identification API (1)
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/
https://api.cdq.com/product-identification/rest/
Global Trade Items
-> Covers several operations including the creation, reading, updating, and deletion of Global Trade Items, as well as the management of references between Global Trade Items and business partners. The endpoints under this tag are designed to handle data related to Global Trade Items, which are unique identifiers for products in the global marketplace.
Use nextStartAfter provided in the response of previous call as an indicator for a next page.
Filter Global Trade Items by Business Partners ID that are referenced.
Features to be turned on:
FETCH_BUSINESS_PARTNER_REFERENCES
- Includes businessPartnerReferences. By default, turned off.NUMBER_OF_TOTAL
- Allows switching fetching the total number of Global Trade Items to improve performance. By default turned off.
Items Enum Value | Description |
---|---|
FETCH_BUSINESS_PARTNER_RELATIONS | Includes businessPartnerReferences. |
NUMBER_OF_TOTAL | Allows switching fetching the total number of Global Trade Items to improve performance. |
- Mock server
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems
- Production
https://api.cdq.com/product-identification/rest/globaltradeitems
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X GET \
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "total": "67", "limit": "100", "startAfter": "5712566172571652", "nextStartAfter": "5712566172571652", "values": [ { … } ] }
A 13 digit Global Trade Item Number that uniquely identifies the item
- Mock server
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems
- Production
https://api.cdq.com/product-identification/rest/globaltradeitems
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X POST \
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"gtin": "5099206081901",
"name": "Business Partner Update Browser"
}'
{ "gtin": "5099206081901", "name": "Business Partner Update Browser", "businessPartnerReferences": [ { … } ] }
- Mock server
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/{gtin}
- Production
https://api.cdq.com/product-identification/rest/globaltradeitems/{gtin}
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X PATCH \
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/5099206081901 \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"name": "Business Partner Update Browser"
}'
{ "globalTradeItem": { "name": "Business Partner Update Browser" }, "status": "OK" }
- Mock server
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/{gtin}
- Production
https://api.cdq.com/product-identification/rest/globaltradeitems/{gtin}
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X GET \
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/5099206081901 \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "globalTradeItem": { "gtin": "5099206081901", "name": "Business Partner Update Browser", "businessPartnerReferences": [ … ] }, "status": "OK" }
- Mock server
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/delete
- Production
https://api.cdq.com/product-identification/rest/globaltradeitems/delete
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X POST \
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/delete \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"globalTradeItems": [
{
"gtin": "5099206081901"
}
]
}'
{ "results": [ { … } ] }
List of Business Partners to be referenced.
Unique identifier of the Storage.
Unique identifier for a Data Source of the Storage.
A CDQ ID identifies a business partner uniquely in the context of the Corporate Data League.
- Mock server
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/{gtin}/businesspartnerreferences
- Production
https://api.cdq.com/product-identification/rest/globaltradeitems/{gtin}/businesspartnerreferences
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X POST \
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/5099206081901/businesspartnerreferences \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"businessPartnerReferences": [
{
"storageId": "72d6900fce6b326088f5d9d91049e3e6",
"dataSourceId": "648824a691d8d2503d65103e",
"businessPartnerId": "63e635235c06b7396330fe40",
"externalId": "The ID managed in the customer'\''s SAP systems."
}
]
}'
{ "results": [ { … } ] }
List of Business Partner References to be deleted.
Unique identifier of the Storage.
- Mock server
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/{gtin}/businesspartnerreferences/delete
- Production
https://api.cdq.com/product-identification/rest/globaltradeitems/{gtin}/businesspartnerreferences/delete
- cURL
- Java
- JavaScript
- Python
- Node.js
curl -i -X POST \
https://developer.cdq.com/_mock/apis/product-identification-api/api-v1/globaltradeitems/5099206081901/businesspartnerreferences/delete \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"businessPartnerReferences": [
{
"storageId": "72d6900fce6b326088f5d9d91049e3e6",
"businessPartnerId": "63e635235c06b7396330fe40"
}
]
}'
{ "results": [ { … } ] }