Skip to content

Commit

Permalink
Merge pull request #7619 from braze-inc/BD-3220
Browse files Browse the repository at this point in the history
BD-3220: Update shopify_created_order payload and add Liquid example payload
  • Loading branch information
rachel-feinberg authored Jul 2, 2024
2 parents 1387eed + e70104f commit fddb725
Showing 1 changed file with 78 additions and 60 deletions.
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

0 comments on commit fddb725

Please sign in to comment.