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

**URL:** <https://forum.shopware.com/t/how-can-i-update-value-in-free-text-fields-for-shopware-while-creating-a-order/55075>\
**Category:** Programmierung\
**Created:** [10. September 2018 um 09:24 UTC](https://forum.shopware.com/t/how-can-i-update-value-in-free-text-fields-for-shopware-while-creating-a-order/55075 "2018-09-10T09:24:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonali123](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@sonali123](https://forum.shopware.com/u/sonali123)\
**Post date:** [10. September 2018 um 09:24 UTC](https://forum.shopware.com/t/how-can-i-update-value-in-free-text-fields-for-shopware-while-creating-a-order/55075/1 "2018-09-10T09:24:27Z")

</div>

Hello,

I am using 1 third-party API to import orders into my shopware and I am using&nbsp;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,
                ]);

```

![](data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==) ![](data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw== "Click and drag to move")

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?​​

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/7/7909c8d10fa88913c72aadfdc8c1d2f0e3403d74.png)

&nbsp;

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/1/1cfcffbafddc00336a7e3ce85fcdd7f8cedf6cb1.png)

---

<div class="post-metadata">

**Author:** ![pascalvg](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pascalvg](https://forum.shopware.com/u/pascalvg)\
**Post date:** [10. September 2018 um 10:39 UTC](https://forum.shopware.com/t/how-can-i-update-value-in-free-text-fields-for-shopware-while-creating-a-order/55075/2 "2018-09-10T10:39:34Z")

</div>

orders.attributes.attribute1 maybe?

---

<div class="post-metadata">

**Author:** ![sonali123](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@sonali123](https://forum.shopware.com/u/sonali123)\
**Post date:** [10. September 2018 um 10:50 UTC](https://forum.shopware.com/t/how-can-i-update-value-in-free-text-fields-for-shopware-while-creating-a-order/55075/3 "2018-09-10T10:50:48Z")

</div>

You mean that I need to use?

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

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![sonali123](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@sonali123](https://forum.shopware.com/u/sonali123)\
**Post date:** [10. September 2018 um 11:01 UTC](https://forum.shopware.com/t/how-can-i-update-value-in-free-text-fields-for-shopware-while-creating-a-order/55075/4 "2018-09-10T11:01:58Z")

</div>

> [@sonali123 schrieb:](https://forum.shopware.com/profile/26867/sonali123 "sonali123")
> 
> You mean that I need to use?
> 
> $client\_shopware-\>post(‚orders‘, [„orders.attributes.attribute1“=\> value1]);
> 
> We tried, but it’s not working&nbsp;

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [10. September 2018 um 11:12 UTC](https://forum.shopware.com/t/how-can-i-update-value-in-free-text-fields-for-shopware-while-creating-a-order/55075/5 "2018-09-10T11:12:18Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![sonali123](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@sonali123](https://forum.shopware.com/u/sonali123)\
**Post date:** [10. September 2018 um 11:21 UTC](https://forum.shopware.com/t/how-can-i-update-value-in-free-text-fields-for-shopware-while-creating-a-order/55075/6 "2018-09-10T11:21:11Z")

</div>

> [@Shyim schrieb:](https://forum.shopware.com/profile/20792/Shyim "Shyim")
> 
> ‚attribute‘ =\> [  
> ‚attribute1‘ =\> ‚some value‘  
> ]
> 
> You need a key attribute which is a array with the containing attribute data
> 
> &nbsp;
> 
> What do you mean by „key attribute“? Can you please provide by example ?  
> As i want to edit attribute of order

---

<div class="post-metadata">

**Author:** ![sonali123](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@sonali123](https://forum.shopware.com/u/sonali123)\
**Post date:** [11. September 2018 um 06:00 UTC](https://forum.shopware.com/t/how-can-i-update-value-in-free-text-fields-for-shopware-while-creating-a-order/55075/7 "2018-09-11T06:00:55Z")

</div>

It works.  
Thanks a ton
