Las siguientes variables aparecerán de forma automática en todos tus flujos de Shopify:
Variable | Utilidad |
Confirmation Number | Número del pedido |
Order Number | Número del pedido |
Order Status Url | URL de seguimiento |
Total Price | Precio del pedido |
Customer First Name | Nombre Propio |
Customer Last Name | Apellido |
Customer Email | Correo del cliente |
Customer Phone | Teléfono del cliente |
Reorder Cart URL | Link al carrito para comprar de nuevo lo mismo |
Además, puedes manualmente usar cualquiera de las siguientes variables, insertándola en el texto de tus mensajes con el formato {{ variable }}
Lista de variables completa de Shopify
Lista de variables completa de Shopify
export interface ShopifyOrderWebhook {
id: number,
admin_graphql_api_id: string,
app_id: null,
browser_ip: null,
buyer_accepts_marketing: true,
cancel_reason: 'customer',
cancelled_at: Date,
cart_token: null,
checkout_id: null,
checkout_token: null,
client_details: null,
closed_at: null,
confirmation_number: null,
confirmed: false,
contact_email: string,
created_at: Date,
currency: 'USD' | 'EUR',
current_subtotal_price: string,
current_subtotal_price_set: ShopifyPriceSet,
current_total_additional_fees_set: null,
current_total_discounts: string,
current_total_discounts_set: ShopifyPriceSet,
current_total_duties_set: null,
current_total_price: string,
current_total_price_set: ShopifyPriceSet,
current_total_tax: string,
current_total_tax_set: ShopifyPriceSet,
customer_locale: 'en',
device_id: null,
discount_codes: [],
email: string,
estimated_taxes: false,
financial_status: 'voided',
fulfillment_status: 'pending',
landing_site: null,
landing_site_ref: null,
location_id: null,
merchant_of_record_app_id: null,
name: string,
note: null,
note_attributes: [],
number: Number,
order_number: number,
order_status_url: string,
original_total_additional_fees_set: null,
original_total_duties_set: null,
payment_gateway_names: [
'visa',
'bogus'
],
phone: string | null,
po_number: null,
presentment_currency: 'USD' | 'EUR',
processed_at: null,
reference: null,
referring_site: null,
source_identifier: null,
source_name: 'web',
source_url: null,
subtotal_price: string,
subtotal_price_set: ShopifyPriceSet,
tags: "",
tax_exempt: false,
tax_lines: [],
taxes_included: false,
test: true,
token: string,
total_discounts: string,
total_discounts_set: ShopifyPriceSet,
total_line_items_price: string,
total_line_items_price_set: ShopifyPriceSet,
total_outstanding: string,
total_price: string,
total_price_set: ShopifyPriceSet,
total_shipping_price_set: ShopifyPriceSet,
total_tax: string,
total_tax_set: ShopifyPriceSet,
total_tip_received: string,
total_weight: number,
updated_at: Date,
user_id: null,
billing_address: ShopifyOrderShippingAddress,
customer: ShopifyCustomer,
discount_applications: [],
fulfillments: [],
line_items: ShopifyOrderLineItem[],
payment_terms: null,
refunds: [],
shipping_address: ShopifyOrderShippingAddress,
shipping_lines: ShopifyShippingLine[]
}