# Send customer payloads to Shopify Flow

The Shopwaive Development team has released a powerful new advanced tool for customer profiles. Customer service teams, brand developers, and web development teams can use Shopwaive's new <mark style="color:blue;">**Send HTTP POST payload**</mark> tool on any customer profile page from within the Shopwaive app. Just setup an automation in Shopify Flow, and then trigger it from the customer's profile page. This feature is meant to mimic an API request to the Shopify Flow environment. Instead of setting up an HTTPS request on your own servers, you simply define your payload body and click <mark style="color:blue;">**Send payload**</mark> to send data inputs to your Shopify Flow automation. Then use Shopify Flow's <mark style="color:blue;">**Conditional blocks**</mark> to design logic and route the automation based on the inputs you sent. All this is made possible using Shopwaive's HTTP POST trigger, which receives the payload you send from the customer's profile page. Simply create any Flow using Shopwaive's <mark style="color:blue;">**HTTP POST trigger**</mark> and any payload you send will be sent to this Flow for processing.

This feature allows you to send discount or gift codes, make changes to Customer metafields, tag customers or orders, and perform any action from 1,000s of app actions available from the Shopify Flow environment. What's even more? Save your favorite automation payloads to send to your Shopify Flow to create quick actions that customer support teams can use to conveniently and efficiently service customers from their profile page in the Shopwaive app.&#x20;

{% hint style="info" %}
Need support for Shopify Plus integration? Reach out to our team at <support@shopwaive.com> and we'll be glad to support or consider new feature or available options with this release upon request.
{% endhint %}

<figure><img src="/files/szMdM4ueRWoDK9dD1Oz3" alt=""><figcaption><p>Create a Shopify Flow using Shopwaive's HTTP POST trigger</p></figcaption></figure>

Create payloads and payload templates using any of the variables defined by the HTTP POST trigger

<figure><img src="/files/GxxYwkqPliXJVZ7LBKqQ" alt=""><figcaption><p>For your customer payload, choose to include any of the variables available from the HTTP POST schema</p></figcaption></figure>

In this example, you can send a gift code by email to the customer if you use Shopwaive's <mark style="color:blue;">**Create gift code**</mark> action after Shopwaive's <mark style="color:blue;">**HTTP POST**</mark> trigger. In the <mark style="color:blue;">**Create gift code**</mark> action, you can display the customer's gift code in the email body using. You can use HTML markup to style the gift code, for example use the following to display the code in bold by copy and pasting it into the **Email Message body** inside the <mark style="color:blue;">**Create gift code**</mark> action

```
Congrats! Here is your gift code

<span style='font-weight:'bold'>{giftcardcode}</span>
```

<figure><img src="/files/66BSsygMkp9j6UcUUMQG" alt=""><figcaption><p>Display the gift code created by the flow in an email to the customer</p></figcaption></figure>

Search for a customer from the Shopwaive app, and click <mark style="color:blue;">**Send HTTP POST to Shopify Flow.**</mark> Then, define a JSON payload to send to your Shopify Flow environment. You can choose to use any fields defined by the HTTP POST trigger's schema

{% embed url="<https://storage.googleapis.com/steel-spark-359918.appspot.com/NewGiftCode.gif>" %}
Search for a customer from the Shopwaive app, and click <mark style="color:blue;">**Send HTTP POST to Shopify Flow**</mark>
{% endembed %}

Choose from any of Shopwaive's <mark style="color:blue;">**HTTP POST**</mark> trigger fields and data types listed below to send in the payload.  Choose fields that match your required data type needed in the Shopify Flow environment. `string`, `decimal`, and `boolean` data types are supported. For example, you may choose to use the generic <mark style="color:blue;">**`enabled`**</mark> key to send a type `boolean` to Shopify Flow for downstream processing of your logic. While the values of each key can be any you choose, the schema is strictly enforced and use of only the keys in the payload object below will result in successful delivery to your Shopify Flow environment.&#x20;

```json

{
    "customer_id": "",
    "order_id": "",
    "product_id": "",
    "reference": "offer",
    "email": "info@acme.com",
    "number": 0,
    "date": "2028-10-08T02:39:48.591Z",
    "previous": 0,
    "transaction": 85.23,
    "available": 0,
    "collectionid": "",
    "segment": "",
    "note": "",
    "expiration": "",
    "media": "",
    "lineitemid": "",
    "recipient": "customer@gmail.com",
    "template": "",
    "event": "",
    "enabled": true,
    "points": 0,
    "referral": "",
    "recipientname": "John Doe",
    "variant": "41862282936455",
    "type": "type",
    "limit": "limit",
    "version": "version",
    "style": "style",
    "title": "title",
    "group": "group",
    "gid": "gid"
}

```

<figure><img src="/files/H2n8kcls2DMitlvFXtMc" alt=""><figcaption><p>Design your own email template to pixel-perfect match your brand with HTML styling, call-to-action links, images, and more</p></figcaption></figure>

{% hint style="info" %}
To send email with Shopwaive, you'll first need to authenticate your brand's identity and domain by adding records to your DNS settings. [Learn more](https://docs.shopwaive.com/shopify/install/setup-branded-email)
{% endhint %}


---

# 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://changelog.shopwaive.com/posts/quickstart-8.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.
