Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v72
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Static segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
  • Automation scenarios
  • Promo codes
  • Goals
  • Application push notifications
  • Market
    • Market objects
    • Orders
    • Products and SKU
      • Import products, SKUs and categories
      • Import SKUs and categories
      • Get products list
      • Get SKUs list
  • Analytic reports
  • SendersDevv71
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
This is documentation for Altcraft Platform v72. This documentation is no longer maintained.
The information for up-to-date platform version at this page is available (v74).
  • Market
  • Products and SKU
  • Import products, SKUs and categories
Documentation for version v72

Import products, SKUs and categories

Description​

Allows you to import 3 types of entities at the same time: products, SKUs and categories.

Request URL​

Method: POST

https://example.com/api/v1.1/market/products/import

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token

Make sure that market roles are available for the token.
custom_fieldsarray of objects
[ 
   {
      "external_id": "1234",
      "name": "product_custom_field",
      "entity_type": "product",
      "required": false,
      "value_type": "unicode",
      "default_value": "data"
   }
]
NoCreating custom fields for the following entities:
  • product
  • SKU
  • order
  • order item

Learn more
categoriesarray of objects
[
   {
      "external_id": "1234",
      "name": "Camera & Photo",
      "parent_external_id": "123"
   }
]
NoCreating categories and subcategories
Learn more
dataarray of objects
[
   {
      "name": "iPhone",
      "product_external_id": "12345678",
      "external_id": "123456"
   }
]
YesData about products and their SKUs

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"custom_fields": [
{
"external_id": "test_field_string",
"name": "String field",
"entity_type": "sku",
"required": false,
"value_type": "unicode",
"default_value": "Default value of the sku test field"
}
],
"categories": [
{
"external_id": "test_category_2",
"name": "Test category 2"
}
],
"data": [
{
"name": "Apple iPhone 13 256GB",
"external_id": "sku_test_1",
"price": "1000",
"old_price": "1100",
"currency": "USD",
"description": "SKU description",
"product_external_id": "iphone_test_1",
"categories": ["test_category_2"],
"tags": ["phone", "Apple"],
"manufacturer_name": "Apple",
"url": "https://example.com",
"pictures": ["https://example.com", "https://example.com"],
"count": 10,
"expiration_time": "730",
"is_available": true,
"delivery": true,
"barcode": [23346346, 23546362, 76834566],
"manufacturer_warranty": true,
"custom_fields": {
"test_field_string": "Test field"
},
"regional_data": [
{
"external_id": "region_YnCrJj8Y1",
"price": "75000",
"old_price": "80000",
"currency": "RUB",
"custom_fields": {
"test_field_string": "Test field"
},
"count": 8,
"is_available": true,
"delivery": true
}
]
}
]
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<custom_fields>
<external_id>test_field_string</external_id>
<name>String field</name>
<entity_type>sku</entity_type>
<required>false</required>
<value_type>unicode</value_type>
<default_value>Default value of the sku test field</default_value>
</custom_fields>
<categories>
<external_id>test_category_2</external_id>
<name>Test category 2</name>
</categories>
<data>
<name>Apple iPhone 13 256GB</name>
<external_id>sku_test_1</external_id>
<price>1000</price>
<old_price>1100</old_price>
<currency>USD</currency>
<description>SKU description</description>
<product_external_id>iphone_test_1</product_external_id>
<categories>test_category_2</categories>
<tags>phone</tags>
<tags>Apple</tags>
<manufacturer_name>Apple</manufacturer_name>
<url>https://example.com</url>
<pictures>https://example.com</pictures>
<pictures>https://example.com</pictures>
<count>10</count>
<expiration_time>730</expiration_time>
<is_available>true</is_available>
<delivery>true</delivery>
<barcode>23346346</barcode>
<barcode>23546362</barcode>
<barcode>76834566</barcode>
<manufacturer_warranty>true</manufacturer_warranty>
<custom_fields>
<test_field_string>Test field</test_field_string>
</custom_fields>
<regional_data>
<external_id>region_YnCrJj8Y1</external_id>
<price>75000</price>
<old_price>80000</old_price>
<currency>RUB</currency>
<custom_fields>
<test_field_string>Test field</test_field_string>
</custom_fields>
<count>8</count>
<is_available>true</is_available>
<delivery>true</delivery>
</regional_data>
</data>
</xml>

Response example​

  • JSON
  • XML
{
"error": 0,
"error_text": "",
"result": [
{
"error": 0,
"external_id": "sku_test_1"
}
]
}
<xml>
<error>0</error>
<error_text></error_text>
<result>
<error>0</error>
<external_id>sku_test_1</external_id>
</result>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
resultarrayProduct IDs that were successfully imported
Last updated on Feb 28, 2024
Previous
Products and SKU
Next
Import SKUs and categories
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.