Modèle de courriel de commande reçue

Ce modèle est envoyé après qu'un client a passé une commande nécessitant une confirmation de paiement.

Cela ne se produit que lorsque la commande est passée par une méthode de paiement asynchrone (par exemple, Paypal Express Checkout).

Données du modèle

{
    "Order": {
        "AccountId": 0,
        "IpAddress": null,
        "UserAgent": null,
        "Lang": null,
        "Email": "john.doe@example.com",
        "Status": 2,
        "ShipToBillingAddress": false,
        "BillingAddress": {
            "FullName": "John Doe",
            "FirstName": null,
            "Name": "John Doe",
            "Company": "Snipcart",
            "Address1": "226 rue St-Joseph Est",
            "Address2": null,
            "FullAddress": "226 rue St-Joseph Est",
            "City": "Québec",
            "Country": "CA",
            "PostalCode": "G1K 3A9",
            "Province": "QC",
            "Phone": null,
            "VatNumber": null
        },
        "RecoveryCampaignStatus": {
            "ActionsNeeded": false,
            "Unsubscribed": false,
            "PreProcessed": false,
            "CampaignId": null,
            "FutureCampaignsSteps": [],
            "StepsExecuted": []
        },
        "ShippingAddress": {
            "FullName": "John Doe",
            "FirstName": null,
            "Name": "John Doe",
            "Company": "Snipcart",
            "Address1": "226 rue St-Joseph Est",
            "Address2": null,
            "FullAddress": "226 rue St-Joseph Est",
            "City": "Québec",
            "Country": "CA",
            "PostalCode": "G1K 3A9",
            "Province": "QC",
            "Phone": null,
            "VatNumber": null
        },
        "CompletionDate": 1592837057,
        "InvoiceNumber": "SNIP-1001",
        "ShippingInformation": {
            "Fees": 20.0,
            "Method": "Standard shipping"
        },
        "HasItemsShippable": true,
        "PaymentMethod": 1,
        "Card": {
            "Last4Digits": "4242",
            "OwnerName": null,
            "Type": 1
        },
        "PaymentDetails": {
            "IconUrl": null,
            "Display": null,
            "Instructions": null
        },
        "Summary": {
            "Subtotal": 80.00,
            "TaxableTotal": 130.0,
            "Total": 100.00,
            "PayableNow": 100.00,
            "PaymentMethod": 1,
            "Taxes": [],
            "DiscountInducedTaxesVariation": 0.0,
            "AdjustedTotal": 80.00,
            "Shipping": null
        },
        "Metadata": {
            "key": "value1",
            "tree": {
                "branch": "valu2",
                "nest": {
                    "field": "value3"
                }
            }
        },
        "Plans": [],
        "CustomFields": [
            {
                "Name": "Comment",
                "DisplayValue": "This is a comment on this order",
                "Operation": null,
                "Type": null,
                "Options": null,
                "Required": false,
                "Value": "This is a comment on this order",
                "OptionsArray": null
            },
            {
                "Name": "Accept terms",
                "DisplayValue": "true",
                "Operation": null,
                "Type": "checkbox",
                "Options": null,
                "Required": false,
                "Value": "true",
                "OptionsArray": [
                    "true",
                    "false"
                ]
            },
            {
                "Name": "Hidden custom field",
                "DisplayValue": "hidden value",
                "Operation": null,
                "Type": "hidden",
                "Options": null,
                "Required": false,
                "Value": "hidden value",
                "OptionsArray": null
            }
        ],
        "Refunds": [
            {
                "Amount": 20.0,
                "Comment": "Refunded after speaking with customer.",
                "NotifyCustomer": false,
                "RefundedByPaymentGateway": false,
                "CreationDate": 1592923457
            }
        ],
        "Notifications": [],
        "Taxes": [],
        "DefaultTaxes": null,
        "Currency": "usd",
        "TotalWeight": 0.0,
        "BaseTotal": 150.0,
        "Total": 80.00,
        "DiscountsTotal": 50.00,
        "ItemsTotalWithoutTaxes": 80.00,
        "TaxesTotal": 0.0,
        "TaxProvider": 0,
        "PaymentGatewayUsed": 0,
        "User": {
            "Id": "eb6f010f-f49d-46c0-9f53-0d22b6ec0f87",
            "Email": "john.doe@example.com",
            "Mode": 0,
            "Statistics": {
                "OrdersCount": 0,
                "OrdersAmount": null,
                "SubscriptionsCount": 0
            },
            "CreationDate": "2020-06-23T14:44:17.1648682Z",
            "BillingAddressFirstName": null,
            "BillingAddressName": null,
            "BillingAddressCompanyName": null,
            "BillingAddressAddress1": null,
            "BillingAddressAddress2": null,
            "BillingAddressCity": null,
            "BillingAddressCountry": null,
            "BillingAddressProvince": null,
            "BillingAddressPostalCode": null,
            "BillingAddressPhone": null,
            "ShippingAddressFirstName": null,
            "ShippingAddressName": null,
            "ShippingAddressCompanyName": null,
            "ShippingAddressAddress1": null,
            "ShippingAddressAddress2": null,
            "ShippingAddressCity": null,
            "ShippingAddressCountry": null,
            "ShippingAddressProvince": null,
            "ShippingAddressPostalCode": null,
            "ShippingAddressPhone": null,
            "ShippingAddressSameAsBilling": false,
            "Status": 1,
            "SessionToken": null,
            "GravatarUrl": "https://www.gravatar.com/avatar/b4d822719962698cc5af9c19cf9c90e2?s=70&d=https%3a%2f%2fcdn.snipcart.com%2fassets%2fimages%2favatar.jpg",
            "BillingAddress": {
                "FullName": null,
                "FirstName": null,
                "Name": null,
                "Company": null,
                "Address1": null,
                "Address2": null,
                "FullAddress": "",
                "City": null,
                "Country": null,
                "PostalCode": null,
                "Province": null,
                "Phone": null,
                "VatNumber": null
            },
            "ShippingAddress": {
                "FullName": null,
                "FirstName": null,
                "Name": null,
                "Company": null,
                "Address1": null,
                "Address2": null,
                "FullAddress": "",
                "City": null,
                "Country": null,
                "PostalCode": null,
                "Province": null,
                "Phone": null,
                "VatNumber": null
            }
        },
        "GatewayResponseData": null,
        "PaymentGatewayTransactionId": null,
        "IsRecurringInvoice": false,
        "Guest": false,
        "ShippingCharged": false,
        "Mode": 1,
        "Discounts": [
            {
                "Id": "80aaa656-1288-42da-b29e-0e7bce551e54",
                "DiscountId": "893b3892-0177-4c6c-b531-01223b4fa4e0",
                "AmountSaved": 50.00,
                "Name": "50$ off",
                "Value": -50.00,
                "Type": 3,
                "Trigger": 1,
                "MaxAmountToReach": null,
                "MaxDiscountsPerItem": null,
                "Code": "50_OFF",
                "AffectedItems": [],
                "Amount": 50.0,
                "Products": [],
                "CategoryNames": [],
                "AppliesOnAllRecurringOrders": false,
                "IsForARecoveryCampaign": false,
                "NormalizedRate": 0.0,
                "OnlyOnSameProducts": false,
                "NumberOfItemsRequired": null,
                "NumberOfFreeItems": null,
                "QuantityOfProducts": []
            }
        ],
        "Items": [
            {
                "UniqueId": "98034f89-dc7e-46b0-89fb-77ad27deeb32",
                "Token": "f5a5cc5c-32c5-4e10-a459-246c2fcc6e25",
                "PaymentSchedule": {
                    "Interval": 0,
                    "IntervalCount": 1,
                    "TrialPeriodInDays": null,
                    "StartsOn": "2020-06-23T00:00:00Z"
                },
                "PausingAction": 0,
                "CancellationAction": 0,
                "Id": "poster",
                "Name": "Awesome poster",
                "Price": 10.0,
                "Description": null,
                "HasTaxesIncluded": false,
                "Categories": [],
                "Url": "/",
                "FileGuid": null,
                "Image": "https://placeholdit.imgix.net/~text?txtsize=14&txt=150%C3%97150&w=150&h=150",
                "Quantity": 3,
                "QuantityStep": 1,
                "MinQuantity": null,
                "MaxQuantity": null,
                "Stackable": false,
                "Shippable": true,
                "Taxable": true,
                "Taxes": [],
                "CustomFields": [],
                "Duplicatable": false,
                "DownloadLink": null,
                "Metadata": null,
                "AlternatePrices": {},
                "Dimensions": {
                    "Width": null,
                    "Height": null,
                    "Length": null,
                    "Weight": null
                },
                "UnitPrice": 10.0,
                "TotalPrice": 30.0,
                "TotalPriceWithoutTaxes": 30.0,
                "TotalPriceWithoutDiscountsAndTaxes": 18.46,
                "TotalPriceWithoutDiscountsAndTaxesLegacy": 18.46,
                "AddedOn": 1592833457,
                "ModificationDate": 1592923457,
                "IsRecurring": false
            },
            {
                "UniqueId": "817c72c4-a663-448b-a927-52b66ee38fa1",
                "Token": "f5a5cc5c-32c5-4e10-a459-246c2fcc6e25",
                "PaymentSchedule": {
                    "Interval": 0,
                    "IntervalCount": 1,
                    "TrialPeriodInDays": null,
                    "StartsOn": "2020-06-23T00:00:00Z"
                },
                "PausingAction": 0,
                "CancellationAction": 0,
                "Id": "tshirt",
                "Name": "Geek T-Shirt",
                "Price": 50.0,
                "Description": null,
                "HasTaxesIncluded": false,
                "Categories": [
                    "Cat1",
                    "Cat2"
                ],
                "Url": "/",
                "FileGuid": null,
                "Image": "https://placeholdit.imgix.net/~text?txtsize=14&txt=150%C3%97150&w=150&h=150",
                "Quantity": 2,
                "QuantityStep": 1,
                "MinQuantity": null,
                "MaxQuantity": null,
                "Stackable": false,
                "Shippable": true,
                "Taxable": true,
                "Taxes": [],
                "CustomFields": [
                    {
                        "Name": "Size",
                        "DisplayValue": "Medium",
                        "Operation": null,
                        "Type": null,
                        "Options": null,
                        "Required": false,
                        "Value": "Medium",
                        "OptionsArray": null
                    },
                    {
                        "Name": "Color",
                        "DisplayValue": "Red",
                        "Operation": null,
                        "Type": "dropdown",
                        "Options": null,
                        "Required": false,
                        "Value": "Red",
                        "OptionsArray": []
                    },
                    {
                        "Name": "Gift",
                        "DisplayValue": "true",
                        "Operation": null,
                        "Type": "checkbox",
                        "Options": null,
                        "Required": false,
                        "Value": "true",
                        "OptionsArray": [
                            "true",
                            "false"
                        ]
                    },
                    {
                        "Name": "Hidden custom field",
                        "DisplayValue": "Hidden value",
                        "Operation": null,
                        "Type": "hidden",
                        "Options": null,
                        "Required": false,
                        "Value": "Hidden value",
                        "OptionsArray": null
                    }
                ],
                "Duplicatable": false,
                "DownloadLink": null,
                "Metadata": null,
                "AlternatePrices": {},
                "Dimensions": {
                    "Width": null,
                    "Height": null,
                    "Length": null,
                    "Weight": null
                },
                "UnitPrice": 50.0,
                "TotalPrice": 100.0,
                "TotalPriceWithoutTaxes": 100.0,
                "TotalPriceWithoutDiscountsAndTaxes": 61.54,
                "TotalPriceWithoutDiscountsAndTaxesLegacy": 61.54,
                "AddedOn": 1592833457,
                "ModificationDate": 1592923457,
                "IsRecurring": false
            }
        ],
        "CompatibilitySwitches": {
            "JsonString": null
        },
        "ItemsTotal": 130.0,
        "TotalPriceWithoutDiscountsAndTaxes": 80.00,
        "Token": "f5a5cc5c-32c5-4e10-a459-246c2fcc6e25",
        "Version": null,
        "Exported": false,
        "id": "f5a5cc5c-32c5-4e10-a459-246c2fcc6e25",
        "PartitionKey": "000",
        "ModificationDate": 1592923457,
        "CreationDate": 1592923457,
        "_etag": null
    },
    "Settings": {
        "LogoUrl": "",
        "BusinessAddress": {
            "FullName": null,
            "FirstName": null,
            "Name": null,
            "Company": "Snipcart",
            "Address1": "226 rue St-Joseph Est",
            "Address2": "",
            "FullAddress": "226 rue St-Joseph Est",
            "City": "Québec",
            "Country": "CA",
            "PostalCode": "G1K3A9",
            "Province": "QC",
            "Phone": null,
            "VatNumber": ""
        }
    }
}