How can i update value in Free Text Fields for shopware while creating a order

Hello,

I am using 1 third-party API to import orders into my shopware and I am using below method.

$client_shopware->post('orders', ["customerId" => $customer_id,
                    "paymentId" => $paymentId,
                    "dispatchId" => $dispatchId,
                    "partnerId" => "",
                    "shopId" => $shopId,
                    "invoiceAmount" => 0,
                    "invoiceAmountNet" => 0,
                    "invoiceShipping" => 0,
                    "invoiceShippingNet" => 0,
                    "orderTime" => $order_time,
                    "net" => $TotalOrderAmount,
                    "taxFree" => 0,
                    "languageIso" => "1",
                    "currency" => "EUR",
                    "currencyFactor" => 1,
                    "referer" => "Channel advisor",
                    "remoteAddress" => "155.155.155.155",
                    "details" => $JsonArray,
                    "documents" => $documents,
                    "billing" => $billing,
                    "shipping" => $shipping,
                    "paymentStatusId" => $paymentStatusId,
                    "orderStatusId" => $orderStatusId,
                ]);

But My concern is that after creating order I want to update values of “Free Text Fields” for that Order. So can anyone help me regarding this?​​

 

orders.attributes.attribute1 maybe?

You mean that I need to use?

$client_shopware->post('orders', ["orders.attributes.attribute1"=> value1]);

 

@sonali123 schrieb:

You mean that I need to use?

$client_shopware->post(‚orders‘, [„orders.attributes.attribute1“=> value1]);

We tried, but it’s not working 

‚attribute‘ => [
‚attribute1‘ => ‚some value‘
]

You need a key attribute which is a array with the containing attribute data

2 „Gefällt mir“

@Shyim schrieb:

‚attribute‘ => [
‚attribute1‘ => ‚some value‘
]

You need a key attribute which is a array with the containing attribute data

 

What do you mean by „key attribute“? Can you please provide by example ?
As i want to edit attribute of order

It works.
Thanks a ton