> 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/using-gyfti-store/retrieve-new-orders-and-pool-update.md).

# Retrieve new orders and pool update

## How to retrieve a new order from your Store from gyfti to Hubspot using Zapier

### Trigger method : adding order information in Notes on you Hubspot Contact

{% embed url="<https://www.loom.com/share/cadab978db5040b6adad7a7e6650342a?sid=de01be1f-04aa-4cb3-9fa3-0f67cb050cb9>" %}

## Retrieve by webhook new orders on you company account

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

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

For each new order in the store, your webhook will receive data

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Authorization | '`Bearer <token>'` |

**Body**

| Name      | Type   | Description          |
| --------- | ------ | -------------------- |
| `hookUrl` | string | {YOUR\_WEBHOOK\_URL} |
| `user`    | string | <user@email.com>     |

**Response**

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

```json
{
  "Recipient Email": "recipienttest@gyfti.fr",
  "Recipient First Name": "Recipient test FirstName",
  "Recipient Last Name": "Recipient test LastName",
  "Product Name": "Product name",
  "Charity": "Charity name",
  "Pool_update": 10
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}
