Associate Products with Centers in Bulk

This API enables bulk association of multiple products to centers in a single request, streamlining product-center mapping at scale.

Request Model

BulkProductCenterAssociationRequest

JSON PropertyData TypeDescription
product_center_associationsList<ProductCenterAssociation>List of product and its center associations

product_center_associations object (ProductCenterAssociation)

JSON PropertyData TypeDescription
zone_namestringThis is the ZoneName of the product or center
zone_idstringThis is the zone id of product or center
product_codestringThis is the product code of the product
product_idstringThis is the product id of the product
idGuid?This is the product center association GUID
center_codestringThis is the center code of the center in which the product is to be associated
center_idstringThis is the center id of the center in which the product is to be associated
is_tax_includedboolFlag to check if tax is included in the product
tax_group_codestringTax group code of the tax the product is associated with
tax_group_idstringTax group id of the tax the product is associated with
sale_pricedoubleSale price of the product in center
consumable_order_quantityintConsumable order quantity of the product
consumable_desired_quantityintConsumable desired quantity of the product
consumable_alert_quantityintConsumable alert quantity of the product
retail_order_quantityintRetail order quantity of the product
retail_desired_quantityintRetail desired quantity of the product
retail_alert_quantityintRetail alert quantity of the product
transfer_pricedoubleTransfer price of the product
transfer_tax_group_codestringTransfer tax group code that the product is associated with
transfer_tax_group_idstringTransfer tax group id that the product is associated with
is_activeboolFlag that stores if the association is active or not
record_numberintUnique identification number for each record

Response Model

BulkCenterAssociationResponse

JSON PropertyData TypeDescription
run_idGuidRun Id of the operation
record_detailsDataIoRecordDetailsObject that gives information about number of records
errorsList<APIV2ErrorModelDataIo>Error list while processing the product

record_details object (DataIoRecordDetails)

JSON PropertyData TypeDescription
total_recordsintTotal rows that the request received
valid_recordsintCount of records that were valid
processed_recordsintCount of records that were processed

errors object (APIV2ErrorModelDataIo)

JSON PropertyData TypeDescription
codestringThe error code for reference in resources
messagestringThe error message
field_valuestringThis is the field value that has the error
field_namestringThis is the field name that has the error
record_numberint?This is the record number that caused the error
error_typeErrorTypeType of the error (error/warning/info)

Enum: ErrorType

NameValueDescription
error0Indicates an error
warning1Indicates a warning
info2Indicates information
Language
Credentials
Header
Click Try It! to start a request and see the response here!