1089f03ee3
- Update GraphQL fragments to include languageCode and all necessary fields - Modify order-fulfilled.ts to forward to N8N instead of sending directly - Modify order-cancelled.ts to forward to N8N instead of sending directly - Regenerate GraphQL types with full order data - Enable multi-language emails for shipped and cancelled orders
90 lines
1.2 KiB
GraphQL
90 lines
1.2 KiB
GraphQL
fragment OrderCreatedWebhookPayload on OrderCreated {
|
|
order {
|
|
id
|
|
number
|
|
created
|
|
status
|
|
userEmail
|
|
languageCode
|
|
channel {
|
|
slug
|
|
}
|
|
user {
|
|
email
|
|
firstName
|
|
lastName
|
|
}
|
|
shippingAddress {
|
|
firstName
|
|
lastName
|
|
streetAddress1
|
|
streetAddress2
|
|
city
|
|
postalCode
|
|
country {
|
|
country
|
|
}
|
|
phone
|
|
}
|
|
billingAddress {
|
|
firstName
|
|
lastName
|
|
streetAddress1
|
|
streetAddress2
|
|
city
|
|
postalCode
|
|
country {
|
|
country
|
|
}
|
|
phone
|
|
}
|
|
lines {
|
|
id
|
|
quantity
|
|
unitPrice {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
totalPrice {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
variant {
|
|
name
|
|
sku
|
|
product {
|
|
name
|
|
media {
|
|
url
|
|
}
|
|
}
|
|
}
|
|
}
|
|
subtotal {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
shippingPrice {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
total {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
metadata {
|
|
key
|
|
value
|
|
}
|
|
}
|
|
} |