How to create array "items" for the request shop.order.add?

I make a request like this (python):

item = [{'type': 'product', 'sku_code':'ТР154', 'price': '199.0000', 'product_id': '594', 'sku_id': '594', 'quantity': '1'}]

items.append({'item': item})

data_post = {'contact_id': '109', 'items': items, 'comment': 'WOW2'}

An order is created with contacts, a comment is added, but there are no products! What am I doing wrong?

No answers yet. Be the first to answer this question!

    Add answer

    To add a comment please sign up or login