{"id":8897,"date":"2020-08-21T17:44:22","date_gmt":"2020-08-21T12:14:22","guid":{"rendered":"https:\/\/magecomp.com\/support\/?post_type=manual_documentation&#038;p=8897"},"modified":"2023-04-17T12:52:04","modified_gmt":"2023-04-17T07:22:04","slug":"chat-message-variables-objects-list","status":"publish","type":"manual_documentation","link":"https:\/\/magecomp.com\/support\/docs\/magento-2-whatsapp-order-notification-extension\/chat-message-variables-objects-list\/","title":{"rendered":"Chat Message Variables &#038; Objects List"},"content":{"rendered":"<p>Order Objects (sales_order)<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\n{{var order.id}},<br \/>\n{{var order.state}},<br \/>\n{{var order.status}},<br \/>\n{{var order.coupon_code}},<br \/>\n{{var order.shipping_description}},<br \/>\n{{var order.base_grand_total}},<br \/>\n{{var order.base_shipping_amount}},<br \/>\n{{var order.base_subtotal}},<br \/>\n{{var order.base_tax_amount}},<br \/>\n{{var order.discount_amount}},<br \/>\n{{var order.grand_total}},<br \/>\n{{var order.shipping_amount}},<br \/>\n{{var order.shipping_tax_amount}},<br \/>\n{{var order.subtotal}},<br \/>\n{{var order.tax_amount}},<br \/>\n{{var order.total_qty_ordered}},<br \/>\n{{var order.increment_id}},<br \/>\n{{var order.customer_email}},<br \/>\n{{var order.customer_firstname}},<br \/>\n{{var order.customer_lastname}},<br \/>\n{{var order.order_currency_code}},<br \/>\n{{var order.store_name}},<br \/>\n{{var order.created_at}},<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\nINVOICE Objects (sales_invoice)<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\n{{var invoice.id}},<br \/>\n{{var invoice.tax_amount}},<br \/>\n{{var invoice.base_grand_total}},<br \/>\n{{var invoice.subtotal}},<br \/>\n{{var invoice.grand_total}},<br \/>\n{{var invoice.shipping_amount}},<br \/>\n{{var invoice.shipping_tax_amount}},<br \/>\n{{var invoice.total_qty}},<br \/>\n{{var invoice.order_id}},<br \/>\n{{var invoice.increment_id}},<br \/>\n{{var invoice.created_at}}<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\nSHIPMENT Objects (sales_shipment)<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\n{{var shipment.id}},<br \/>\n{{var shipment.increment_id}},<br \/>\n{{var shipment.total_qty}},<br \/>\n{{var shipment.order_id}},<br \/>\n{{var shipment.customer_note}},<br \/>\n{{var shipment.created_at}},<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\nCredit Memo Objects (sales_creditmemo)<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\n{{var creditmemo.id}},<br \/>\n{{var creditmemo.increment_id}},<br \/>\n{{var creditmemo.grand_total}},<br \/>\n{{var creditmemo.shipping_amount}},<br \/>\n{{var creditmemo.base_subtotal}},<br \/>\n{{var creditmemo.subtotal}},<br \/>\n{{var creditmemo.tax_amount}},<br \/>\n{{var creditmemo.order_id}},<br \/>\n{{var creditmemo.created_at}},<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\nCUSTOMER Objects (customer_entity)<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\n{{var customer.id}}<br \/>\n{{var customer.firstname}}<br \/>\n{{var customer.lastname}}<br \/>\n{{var customer.email}}<br \/>\n{{var customer.created_in}}<br \/>\n{{var customer.created_at}}<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2100,"menu_order":7,"template":"","manualdocumentationcategory":[584],"manual_doc_tag":[],"class_list":["post-8897","manual_documentation","type-manual_documentation","status-publish","hentry","manualdocumentationcategory-m2-whatsapp-order-notification-ultimate"],"_links":{"self":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/8897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/8897\/revisions"}],"predecessor-version":[{"id":8898,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/8897\/revisions\/8898"}],"up":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/2100"}],"wp:attachment":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/media?parent=8897"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manualdocumentationcategory?post=8897"},{"taxonomy":"manual_doc_tag","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_doc_tag?post=8897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}