Skip to main content

Step 2: Preview Imported File

HTTP Request

PUT https://commerce.zoho.com/store/api/v1/import//preview 

 

OAuthScope

ZohoCommerce.import.UPDATE

 

Body Parameters

ParameterDescription
entity_columns*Array: Give array of all entity and csv column mapping (Use entity_columns array response format from the step 1).
csv_column*string: Give csv column name.
entity_column*string: Give corresponding entity column name for mapping.

 

Sample Request

Copiedcurl -X PUT \
https://commerce.zoho.com/store/api/v1/import/2212135000000182099/preview \
-H 'Authorization: Zoho-oauthtoken ***' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: text/json' \
-H 'X-com-zoho-store-organizationid: 711022734' \
-d '{
"entity_columns": [
{
"csv_column": "",
"entity_column": "Product ID",
},
{
"csv_column": "Product Name",
"entity_column": "Product Name",
},
{
"csv_column": "Store Description",
"entity_column": "Store Description",
},
...
]
}'

Show full

Show less

Success Response

Copied{
"code": 0,
"message": "success",
"data": {
"entity_updated": 1,
"unmapped_csv_columns": [
"Avalara Tax Code",
"Handle",
"Qualifies For Returns "
],
"entity_imported": 2,
"entity_total": 2,
"entity_created": 1,
"unmapped_csv_columns_count": 3,
"errors": [],
"rows_skipped": 0
}
}
This API is used to preview the result of the imported file before import.