Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BD-3220: Update shopify_created_order payload and add Liquid example payload #7619

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,69 +112,69 @@ After the app installation is complete, Braze automatically creates your webhook
{% raw %}
```json
{
"name": "shopify_created_order",
"time": "2024-03-26T11:03:55-04:00",
"properties": {
"order_id": 5603014377622,
"line_items": [
{
"fulfillment_status": null,
"name": "Blue Silk Tuxedo - xs",
"price": 78,
"product_id": 5847345004694,
"properties": [],
"quantity": 1,
"sku": "",
"title": "Blue Silk Tuxedo",
"variant_id": 36790647521430,
"variant_title": "xs",
"vendor": "Liam Fashions"
}
],
"fulfillments": [],
"shipping": [
{
"title": "First Class Package International",
"price": 33.85
}
],
"shopify_storefront": "example-store.myshopify.com",
"total_price": 111.85,
"confirmed": true,
"total_discounts": 0,
"discount_codes": [],
"order_number": 1005,
"order_status_url": "https://example-store.myshopify.com/50699042966/orders/6e43c91d84b8e7832990502aca637a13/authenticate?key=d8184818cd06f09ac680ea82da78ce3e",
"cancelled_at": null,
"tags": "",
"closed_at": null,
"fulfillment_status": null,
"referring_site": "",
"payment_gateway_names": [
"bogus"
],
"shipping_address": {
"address1": "1111 street",
"address2": null,
"city": "New York",
"country": "United States",
"first_name": "John",
"last_name": "Doe",
"province": "New York",
"zip": "11111"
},
"billing_address": {
"address1": "1111 street",
"address2": null,
"city": "New York",
"country": "United States",
"first_name": "John",
"last_name": "Doe",
"province": "New York",
"zip": "11111"
"name": "shopify_created_order",
"time": "2024-03-26T11:03:55-04:00",
"properties": {
"order_id": 5603014377622,
"line_items": [
{
"fulfillment_status": null,
"name": "Blue Silk Tuxedo - xs",
"price": 78,
"product_id": 5847345004694,
"properties": [],
"quantity": 1,
"sku": "",
"title": "Blue Silk Tuxedo",
"variant_id": 36790647521430,
"variant_title": "xs",
"vendor": "Liam Fashions"
}
],
"fulfillments": [],
"shipping": [
{
"title": "First Class Package International",
"price": 33.85
}
],
"shopify_storefront": "example-store.myshopify.com",
"total_price": 111.85,
"confirmed": true,
"total_discounts": 0,
"discount_codes": [],
"order_number": 1005,
"order_status_url": "https://example-store.myshopify.com/50699042966/orders/6e43c91d84b8e7832990502aca637a13/authenticate?key=d8184818cd06f09ac680ea82da78ce3e",
"cancelled_at": null,
"tags": "",
"closed_at": null,
"fulfillment_status": null,
"referring_site": "",
"payment_gateway_names": [
"bogus"
],
"shipping_address": {
"address1": "1111 street",
"address2": null,
"city": "New York",
"country": "United States",
"first_name": "John",
"last_name": "Doe",
"province": "New York",
"zip": "11111"
},
"billing_address": {
"address1": "1111 street",
"address2": null,
"city": "New York",
"country": "United States",
"first_name": "John",
"last_name": "Doe",
"province": "New York",
"zip": "11111"
}
}
}
```
{% endraw %}

Expand Down Expand Up @@ -883,6 +883,24 @@ After selecting your custom attribute, input a default value and copy the Liquid

![Pasting a Liquid snippet into a message.]({% image_buster /assets/img/Shopify/copy_liquid_snippet.png %})

#### Example payload

```json
{
"attributes": [
{
"shopify_tags": "VIP_customer",
"shopify_total_spent": "60.00",
"shopify_order_count": "3",
"shopify_last_order_id": "1234567",
"shopify_last_order_name": "test_order",
"shopify_zipcode": "10001",
"shopify_province": "null"
}
]
}
```

{% endtab %}
{% tab Example Payload %}
{% subtabs %}
Expand Down