In the options, instead of [key], there should be an integration key (deleted so as not to show on the forum):
URL:
https://nosorog.net.ua//api/orders/37896cURL_options:
CURLOPT_HEADER=> 1
CURLOPT_RETURNTRANSFER => 1
CURLINFO_HEADER_OUT => 1
CURLOPT_HTTPAUTH=> 1
CURLOPT_USERPWD => [key]:
CURLOPT_HTTPHEADER=> Array
(
[0] => Expect:
)
CURLOPT_SSL_VERIFYPEER =>
CURLOPT_SSL_VERIFYHOST =>
CURLOPT_CUSTOMREQUEST=> PUT
CURLOPT_POSTFIELDS => <?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="
http://www.w3.org/1999/xlink"><order>
<id>37896</id>
<id_address_delivery xlink:href="
https://nosorog.net.ua/api/addresses/108563">108563</id_address_deliv...<id_address_invoice xlink:href="
https://nosorog.net.ua/api/addresses/108563">108563</id_address_invoi...<id_cart xlink:href="
https://nosorog.net.ua/api/carts/124998">124998</id_cart><id_currency xlink:href="
https://nosorog.net.ua/api/currencies/1">1</id_currency><id_lang xlink:href="
https://nosorog.net.ua/api/languages/1">1</id_lang><id_customer xlink:href="
https://nosorog.net.ua/api/customers/106463">106463</id_customer><id_carrier xlink:href="
https://nosorog.net.ua/api/carriers/11">11</id_carrier><current_state xlink:href="
https://nosorog.net.ua/api/order_states/1">1</current_state><current_state_name not_filterable="true">Awaiting receipt payment</current_state_name>
<module>check</module>
<invoice_number>19296</invoice_number>
<invoice_date>2021-11-09 14:36:31</invoice_date>
<delivery_number>19263</delivery_number>
<delivery_date>2021-11-09 14:39:15</delivery_date>
<valid>0</valid>
<date_add>2021-11-09 12:52:12</date_add>
<date_upd>2021-11-10 10:44:39</date_upd>
<shipping_number not_filterable="true"/>
<id_shop_group>1</id_shop_group>
<id_shop>2</id_shop>
<secure_key>58ea47ff74565f03a5720ed46e009005</secure_key>
<payment>Cash on delivery</payment>
<recyclable>0</recyclable>
<gift>0</gift>
<gift_message/>
<mobile_theme>0</mobile_theme>
<total_discounts>0.00</total_discounts>
<total_discounts_tax_incl>0.00</total_discounts_tax_incl>
<total_discounts_tax_excl>0.00</total_discounts_tax_excl>
<total_paid>758.00</total_paid>
<total_paid_tax_incl>758.00</total_paid_tax_incl>
<total_paid_tax_excl>758.00</total_paid_tax_excl>
<total_paid_real>758.00</total_paid_real>
<total_products>698.00</total_products>
<total_products_wt>698.00</total_products_wt>
<total_shipping>60.00</total_shipping>
<total_shipping_tax_incl>60.00</total_shipping_tax_incl>
<total_shipping_tax_excl>60.00</total_shipping_tax_excl>
<carrier_tax_rate>0.000</carrier_tax_rate>
<total_wrapping>0.00</total_wrapping>
<total_wrapping_tax_incl>0.00</total_wrapping_tax_incl>
<total_wrapping_tax_excl>0.00</total_wrapping_tax_excl>
<conversion_rate>1.000000</conversion_rate>
<reference>546333744</reference>
<payment_id/>
<payment_order_id/>
<gtm_sent>1</gtm_sent>
<associations>
<order_rows virtual_entity="true" node_type="order_rows">
<order_rows>
<id>210830</id>
<product_id>101478</product_id>
<product_attribute_id>0</product_attribute_id>
<product_quantity>1</product_quantity>
<product_name>70314 Beastmaster's Chaos Chaos</product_name>
<product_reference>OKR020367</product_reference>
<product_ean13>557339</product_ean13>
<product_upc/>
<product_price>698.000000</product_price>
<unit_price_tax_incl>698.000000</unit_price_tax_incl>
<unit_price_tax_excl>698.000000</unit_price_tax_excl>
</order_rows>
</order_rows>
</associations>
</order>
</prestashop>
Answer:
HTTP/1.1 400 Bad Request
Server: nginx
Date: Thu, 11 Nov 2021 15:42:26 GMT
Content-Type: text/xml;charset=utf-8
Content Length: 241
Connection: keep-alive
Vary: Host
Access Time: 1636645346
X-Powered-By: PrestaShop Webservice
PSWS Version: 1.6.0.9
Execution-Time: 0.004
Set-Cookie: PrestaShop-2d6857381ae0c75dab71195c3806f340=uafIl0G48HaqeEhBnV4rrlSz8fCzvewzxgZAiVXPJ2S4w1RpKObrodODB7KP4ZOnQzoETy%2FCx3yGALh12SoU2uJkzrtDQMoP8Q09i%2FCx3yGALh12SoU2uJkzrtDQMoP8Q09i%09i12SoU2uJkDQBMoP8Q09i%09i3YP8X%09i3Y; expires=Wed, 01-Dec-2021 15:42:26 GMT; Max Age=1728000; path=/; domain=nosorog.net.ua; httponly
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="
http://www.w3.org/1999/xlink"><errors>
<error>
<message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message>
</error>
</errors>
</prestashop>