Datarova
Project ASINs

add_project_asins

Add project ASINs ยท Changes data, reaches outside Datarova

Add up to 25 ASIN inputs to one marketplace project using current catalog and Amazon admission.

  • Normalizes and deduplicates inputs, preserves variation representatives and existing attachment labels, and returns valid additions plus invalid or unresolved inputs separately.
  • Capacity failure makes no additions.
  • Inspect current attachments after a lost result before trying a fresh addition.

Cost and limits: Each successful call costs 5 credits.

Input

NameTypeRequiredDescription
project_idintegerRequiredA marketplace project ID: list_projects data.projects[].marketplaces[].project_id, not a project group. Minimum 1. Maximum 2147483647.
asinsstring[]RequiredUp to 25 ASIN inputs for this marketplace project. At least 1 item. At most 25 items.
label_idsinteger[]OptionalItem label IDs to assign to new attachments; existing attachments keep their labels. At most 1000 items.

Output

Read this object from the result's structuredContent. The result's content carries a text version for the model, which is not always the same JSON.

Fields of data:

NameTypeRequiredDescription
project_idintegerRequired
added_asinsProjectAsinAddedResult[]RequiredASINs added by this request, preserving relative normalized request order.
unchanged_asinsProjectAsinUnchangedResult[]RequiredASINs or variation families already in the project, plus ASINs added by another request, preserving relative normalized request order.
invalid_asinsProjectAsinInvalidResult[]RequiredMalformed, not-found, or disallowed parent identities, preserving relative normalized request order.
validation_unavailable_asinsobject[]RequiredItems Amazon could not validate because of a temporary dependency or credential failure. Retry these identities later.
primary_asinstring | nullRequiredPrimary ASIN after the operation.

data.added_asins[]

NameTypeRequiredDescription
requested_asinstringRequiredNormalized first-seen request identity.
added_asinstringRequiredThe ASIN added to the project. This can differ from the requested ASIN when a parent ASIN resolves to a child ASIN.
is_primarybooleanRequiredWhether the stored ASIN is primary. For a removed entry, this reports its primary state before removal.

data.unchanged_asins[]

NameTypeRequiredDescription
requested_asinstringRequiredNormalized first-seen request identity.
unchanged_asinstringRequiredThe corresponding ASIN that was not changed by the request.
is_primarybooleanRequiredWhether the unchanged ASIN is primary.

data.invalid_asins[]

NameTypeRequiredDescription
requested_asinstringRequired
reasonstringRequiredOne of invalid_asin, asin_not_found, variation_parent_not_allowed, variation_parent_has_no_children.

data.validation_unavailable_asins[]

NameTypeRequired
requested_asinstringRequired
reason"amazon_validation_unavailable"Required
Full input and output JSON Schema
JSONCode
{ "inputSchema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "project_id": { "type": "integer", "minimum": 1, "maximum": 2147483647, "description": "A marketplace project ID: list_projects data.projects[].marketplaces[].project_id, not a project group." }, "asins": { "minItems": 1, "maxItems": 25, "type": "array", "items": { "type": "string", "maxLength": 1024 }, "description": "Up to 25 ASIN inputs for this marketplace project." }, "label_ids": { "description": "Item label IDs to assign to new attachments; existing attachments keep their labels.", "maxItems": 1000, "type": "array", "items": { "type": "integer", "minimum": 1, "maximum": 2147483647 } } }, "required": [ "project_id", "asins" ], "additionalProperties": false }, "outputSchema": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "project_id", "added_asins", "unchanged_asins", "invalid_asins", "validation_unavailable_asins", "primary_asin" ], "properties": { "project_id": { "type": "integer" }, "added_asins": { "type": "array", "description": "ASINs added by this request, preserving relative normalized request order.", "items": { "$ref": "#/$defs/ProjectAsinAddedResult" } }, "unchanged_asins": { "type": "array", "description": "ASINs or variation families already in the project, plus ASINs added by another request, preserving relative normalized request order.", "items": { "$ref": "#/$defs/ProjectAsinUnchangedResult" } }, "invalid_asins": { "type": "array", "description": "Malformed, not-found, or disallowed parent identities, preserving relative normalized request order.", "items": { "$ref": "#/$defs/ProjectAsinInvalidResult" } }, "validation_unavailable_asins": { "type": "array", "description": "Items Amazon could not validate because of a temporary dependency or credential failure. Retry these identities later.", "items": { "$ref": "#/$defs/ProjectAsinValidationUnavailableResult" } }, "primary_asin": { "type": [ "string", "null" ], "description": "Primary ASIN after the operation." } } } }, "$defs": { "ProjectAsinAddedResult": { "type": "object", "required": [ "requested_asin", "added_asin", "is_primary" ], "properties": { "requested_asin": { "type": "string", "description": "Normalized first-seen request identity." }, "added_asin": { "type": "string", "description": "The ASIN added to the project. This can differ from the requested ASIN when a parent ASIN resolves to a child ASIN." }, "is_primary": { "type": "boolean", "description": "Whether the stored ASIN is primary. For a removed entry, this reports its primary state before removal." } } }, "ProjectAsinUnchangedResult": { "type": "object", "required": [ "requested_asin", "unchanged_asin", "is_primary" ], "properties": { "requested_asin": { "type": "string", "description": "Normalized first-seen request identity." }, "unchanged_asin": { "type": "string", "description": "The corresponding ASIN that was not changed by the request." }, "is_primary": { "type": "boolean", "description": "Whether the unchanged ASIN is primary." } } }, "ProjectAsinInvalidResult": { "type": "object", "required": [ "requested_asin", "reason" ], "properties": { "requested_asin": { "type": "string" }, "reason": { "type": "string", "enum": [ "invalid_asin", "asin_not_found", "variation_parent_not_allowed", "variation_parent_has_no_children" ] } } }, "ProjectAsinValidationUnavailableResult": { "type": "object", "required": [ "requested_asin", "reason" ], "properties": { "requested_asin": { "type": "string" }, "reason": { "type": "string", "enum": [ "amazon_validation_unavailable" ] } } } } } }