> For the complete documentation index, see [llms.txt](https://developer.gyfti.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.gyfti.fr/retrieve-data-from-campaigns/order-update.md).

# Order update

## Retrieve by webhook order update on you company account (thank you note)

<mark style="color:green;">`POST`</mark> `https://app.gyfti.fr/api/1.1/wf/new_hook_order_update/`

By using this call, you will send gyfti app your webhook url.

For each new thank you note on orders, your webhook will receive data

#### Headers

| Name                                            | Type   | Description             |
| ----------------------------------------------- | ------ | ----------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | 'Bearer \[YOUR\_TOKEN]' |

#### Request Body

| Name                                      | Type   | Description          |
| ----------------------------------------- | ------ | -------------------- |
| hookUrl<mark style="color:red;">\*</mark> | String | {YOUR\_WEBHOOK\_URL} |
| user<mark style="color:red;">\*</mark>    | String | <user@email.com>     |

{% tabs %}
{% tab title="200: OK " %}

```json
{
  "Recipient Email": "recipienttest@gyfti.fr",
  "Recipient First Name": "Recipient test FirstName",
  "Recipient Last Name": "Recipient test LastName",
  "Recipient Company": "Recipient test Company",
  "Product Name": "Product test",
  "Order Status": "Order status Commandé",
  "Charity": "Charity test",
  "Cost excl tax": "10",
  "Cost incl tax": "12",
  "Created date": "2023-01-05",
  "Sender Email": "sendertest@gyfti.fr",
  "Sender First Name": "Sender test FirstName",
  "Sender Last Name": "Sender test LastName",
  "Campaign Name": "Campaign Test Order",
  "Product Type": "Product Type"
}
```

{% endtab %}
{% endtabs %}
