N
N
Nikita2021-05-14 09:58:24
Bitrix24
Nikita, 2021-05-14 09:58:24

How to update order properties via rest api?

I try as in the example but does not work. It does not give any error, but it does not update the value either.
/rest/sale.order.update

{
    "id": 1,
    "fields": {
        "comments": "Test Comment",
        "statusId": "N",
        "properties": [
            {
                "id": "1",
                "orderPropsId": "1",
                "value": "test"
            }
        ]
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IgorVader, 2021-05-14
@pipaha

/rest/sale.propertyvalue.modify

{
    "fields": {
        "order": {
            "id":"1",
            "propertyValues": [
                {
                    "orderPropsId": "1",
                    "value": "test"
                }
            ]
        }
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question