ServiceProductImportPreviewResponse
Always true on a 2xx response.
truedata objectrequired
What approving the import will do.
Import id.
5b0c8a6e-2f4d-4d6e-9a53-7c1d2e3f4a5bImport status.
Possible values: [UPLOADED, MAPPING, VALIDATING, PREVIEW, COMMITTING, COMPLETED, FAILED, ROLLED_BACK]
Import mode.
Possible values: [CREATE_ONLY, UPSERT]
Rows found in the file.
120Rows that passed validation.
118Rows that failed validation.
1Rows that passed with a warning.
1Products the import will create.
100Products the import will update.
18Number of processing chunks.
3sampleErrors object[]required
Up to 50 failing rows, with the reason for each.
Row number in the file, starting at 1.
7The row's SKU, when it has one.
SKU-1001What is wrong with the row.
["Unknown unit of measure"]sampleRows object[]required
Up to 10 rows that will be written, so you can see what approving will do.
Row number in the file, starting at 1.
2The row's SKU.
SKU-1001The row's product name.
Sample WidgetWhat the import will do with the row, such as CREATE or UPDATE.
CREATEAdjustments the import made for you, such as matching a unit spelling to one of your units.
["Unit \"pcs\" matched to \"EA\""]currencySummary object[]required
How many rows carry price tiers in each currency.
ISO 4217 currency code of the price tiers.
USDTrue when this is the workspace's own currency.
trueRows that carry price tiers in this currency.
100{
"success": true,
"data": {
"importId": "5b0c8a6e-2f4d-4d6e-9a53-7c1d2e3f4a5b",
"status": "UPLOADED",
"mode": "CREATE_ONLY",
"totalRows": 120,
"validRows": 118,
"errorRows": 1,
"warningRows": 1,
"createCount": 100,
"updateCount": 18,
"totalChunks": 3,
"sampleErrors": [
{
"rowNumber": 7,
"sku": "SKU-1001",
"errors": [
"Unknown unit of measure"
]
}
],
"sampleRows": [
{
"rowNumber": 2,
"sku": "SKU-1001",
"productName": "Sample Widget",
"action": "CREATE"
}
],
"autoAppliedRules": [
"Unit \"pcs\" matched to \"EA\""
],
"currencySummary": [
{
"currency": "USD",
"isBase": true,
"rowCount": 100
}
]
}
}