Hello. I hope someone can help. If you need more information let me know.
Process description: get all the products from the order (article and quantity) and pass them to the http request module.
Problem: the iterator splits the number of items into batches. They come in the wrong Json structure, which should be sent to the http request. Therefore, I use Create Json to create a new structure.
The problem is that the output of the iterator is 3 bundels. and only 1 goes to Create Json. How to make sure that all bundels from the iterator are passed to Create Json?
Bundles content from iterator:
[
{
“id”: 17867,
“sku”: “134000001”,
“variation_id”: null,
“publication_source_uuid”: null,
“name”: “Блок управління KME Nevo SUN 4цил (ЕБУ)”,
“upsale”: false,
“price”: 2312.76,
“discount_amount”: 0,
“discount_percent”: 0,
“individual_discount”: 0,
“loyalty_discount”: 0,
“total_discount”: 0,
“purchased_price”: 0,
“price_sold”: 2312.76,
“quantity”: 1,
“unit_type”: null,
“stock_status”: “reserved”,
“picture”: {
“thumbnail”: “https://gazmax.api.keycrm.app/file-storage/remote?url=https%3A%2F%2Fgazmax.com.ua%2Fcontent%2Fimages%2F37%2Fp1481985834-blok-upravleniya-kme-58876081551731_%2B44f23de5c2.jpg”
},
“comment”: null,
“properties”: ,
“product_status_id”: null,
“created_at”: “2025-05-01T21:02:44.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”,
“shipment_type”: “warehouse”,
“offer”: {
“id”: 441,
“product_id”: 406,
“sku”: “134000001”,
“barcode”: null,
“thumbnail_url”: null,
“price”: 2312.76,
“purchased_price”: 0,
“quantity”: 0,
“in_reserve”: 2,
“weight”: null,
“length”: null,
“height”: null,
“width”: null,
“properties”: ,
“is_default”: false,
“is_archived”: false,
“created_at”: “2025-01-31T16:42:31.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”
},
“warehouse”: {
“id”: 1,
“name”: “Головний”,
“description”: null,
“is_active”: true,
“is_default”: true,
“address_id”: null,
“created_at”: “2025-01-08T16:52:28.000000Z”,
“updated_at”: “2025-01-08T17:38:56.000000Z”,
“deleted_at”: null
},
“IMTINDEX”: 1,
“IMTLENGTH”: 3
},
{
“id”: 17868,
“sku”: “W1Y-07975_1”,
“variation_id”: null,
“publication_source_uuid”: null,
“name”: “Перемикач Stag GoFast LED-200”,
“upsale”: false,
“price”: 250,
“discount_amount”: 0,
“discount_percent”: 0,
“individual_discount”: 0,
“loyalty_discount”: 0,
“total_discount”: 0,
“purchased_price”: 250,
“price_sold”: 250,
“quantity”: 2,
“unit_type”: null,
“stock_status”: “reserved”,
“picture”: {
“thumbnail”: “https://gazmax.api.keycrm.app/file-storage/remote?url=https%3A%2F%2Fgazmax.com.ua%2Fcontent%2Fimages%2F2%2Fswitch_stag200-87578519034509_%2B5043d47718.png”
},
“comment”: null,
“properties”: ,
“product_status_id”: null,
“created_at”: “2025-05-01T21:02:44.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”,
“shipment_type”: “warehouse”,
“offer”: {
“id”: 446,
“product_id”: 411,
“sku”: “W1Y-07975_1”,
“barcode”: null,
“thumbnail_url”: null,
“price”: 250,
“purchased_price”: 250,
“quantity”: -40,
“in_reserve”: 4,
“weight”: null,
“length”: null,
“height”: null,
“width”: null,
“properties”: ,
“is_default”: false,
“is_archived”: false,
“created_at”: “2025-01-31T16:42:31.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”
},
“warehouse”: {
“id”: 1,
“name”: “Головний”,
“description”: null,
“is_active”: true,
“is_default”: true,
“address_id”: null,
“created_at”: “2025-01-08T16:52:28.000000Z”,
“updated_at”: “2025-01-08T17:38:56.000000Z”,
“deleted_at”: null
},
“IMTINDEX”: 2,
“IMTLENGTH”: 3
},
{
“id”: 17869,
“sku”: “GM-677”,
“variation_id”: null,
“publication_source_uuid”: null,
“name”: “Фітинг штуцер для трубки ПВХ тип FARO D6 прямий”,
“upsale”: false,
“price”: 48,
“discount_amount”: 0,
“discount_percent”: 0,
“individual_discount”: 0,
“loyalty_discount”: 0,
“total_discount”: 0,
“purchased_price”: 47.74,
“price_sold”: 48,
“quantity”: 3,
“unit_type”: null,
“stock_status”: “reserved”,
“picture”: {
“thumbnail”: “https://gazmax.api.keycrm.app/file-storage/remote?url=https%3A%2F%2Fgazmax.com.ua%2Fcontent%2Fimages%2F20%2F52329125527180_%2B0a57134fd5.png”
},
“comment”: null,
“properties”: ,
“product_status_id”: null,
“created_at”: “2025-05-01T21:02:44.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”,
“shipment_type”: “warehouse”,
“offer”: {
“id”: 449,
“product_id”: 414,
“sku”: “GM-677”,
“barcode”: null,
“thumbnail_url”: null,
“price”: 48,
“purchased_price”: 47.74,
“quantity”: -58,
“in_reserve”: 6,
“weight”: null,
“length”: null,
“height”: null,
“width”: null,
“properties”: ,
“is_default”: false,
“is_archived”: false,
“created_at”: “2025-01-31T16:42:31.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”
},
“warehouse”: {
“id”: 1,
“name”: “Головний”,
“description”: null,
“is_active”: true,
“is_default”: true,
“address_id”: null,
“created_at”: “2025-01-08T16:52:28.000000Z”,
“updated_at”: “2025-01-08T17:38:56.000000Z”,
“deleted_at”: null
},
“IMTINDEX”: 3,
“IMTLENGTH”: 3
}
]
Input modele Json
[
{
“quantity”: 1,
“product_code”: “134000001”
}
]