# Send a Survey through Fullwhere

This use case shows how to send a satisfaction survey through Fullwhere.\
A survey must be sent for a specific customer and purchase.

#### 1. Import the customer

Start by importing a **customer** in Fullwhere.\
This entity contains the customer’s basic information (name, email, etc.) and will be used to link future purchases and surveys to the right customer.

> API Reference: [`POST partners/customers`](/developer/api-references/customer.md#post-partners-customer)

***

#### 2. Import the purchase

Next, import a **purchase** linked to this customer.\
The purchase includes transaction details (amount, date, etc.) and must by linked to the customer you just imported with the `customerId` field.

> API Reference : [`POST partners/purchases`](/developer/api-references/purchase.md#post-partners-purchase)

When creating the purchase, set the Query parameter `allowSurvey` to `true`.

```json
"allowSurvey": true
```

This flag tells Fullwhere that this transaction should trigger the satisfaction survey to be sent to the customer **by Fullwhere**. In this case, Fullwhere handles the entire process of sending the survey to your customer, according to your survey configuration (delay, channels, etc.).\
No further action is required on the partner side.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fullwhere.com/developer/use-cases/send-a-survey-through-fullwhere.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
