order.created

Anytime a new e-commerce order record is created and added to an end user's record, the order.created event is triggered confirming that the new order has been created/added to their account.

{
    "type": "order.created",
    "id": "evt_RUlhz4Acti1lMBv2Lz35eZhn",
    "created": 1629797207,
    "data": {
        "object": {
            "object": "order",
            "id": 97,
            "address": {
                "object": "address",
                "id": 36,
                "city": "3",
                "company": "7",
                "country": "CA",
                "country_name": "Canada",
                "created_at": "2021-07-16T10:42:45.000000Z",
                "department": "department",
                "first_name": "first_name",
                "is_default": true,
                "last_name": "last_name",
                "line1": "line11",
                "line2": "line12",
                "postal_code": "postal_code4",
                "salutation": null,
                "state": "QC",
                "state_name": "Quebec",
                "title": "10",
                "type": "shipping",
                "updated_at": "2021-07-16T10:42:45.000000Z"
            },
            "amount": 28000,
            "charge": null,
            "coupon": {
                "amount_off": null,
                "code": "Pel20",
                "created": "2021-07-16T09:56:54.000000Z",
                "currency": null,
                "duration": "once",
                "duration_in_months": null,
                "livemode": false,
                "name": "Pel20",
                "max_redemptions": null,
                "percent_off": 20,
                "redeem_by": null,
                "times_redeemed": 0,
                "valid": true,
                "object": "coupon"
            },
            "created": "2021-08-24T09:26:47.000000Z",
            "currency": "cad",
            "customer": {
                "object": "customer",
                "id": 24,
                "balance": 0,
                "created": "2021-07-07T10:20:32.000000Z",
                "currency": "cad",
                "default_source": {
                    "object": "source",
                    "id": 125,
                    "address_line1_check": null,
                    "address_zip_check": null,
                    "brand": "Visa",
                    "country": "US",
                    "cvc_check": null,
                    "dynamic_last4": null,
                    "exp_month": 8,
                    "exp_year": 2022,
                    "fingerprint": "wOqrZw1q5nLaeI6N",
                    "funding": "credit",
                    "last4": "4242",
                    "name": null,
                    "tokenization_method": null
                },
                "delinquent": false,
                "display_name": null,
                "email": "[email protected]",
                "email_confirm": null,
                "first_name": "first_name",
                "has_password": 1,
                "language": "en",
                "last_name": "W",
                "metadata": {
                    "pelcro_account_id": "1",
                    "pelcro_customer_id": "24"
                },
                "phone": null,
                "phone_confirm": null,
                "salutation": null,
                "title": null
            },
            "items": [
                {
                    "id": 341,
                    "index": 1,
                    "order_id": 97,
                    "product_sku_id": 2,
                    "product_sku_object_id": "sku_JoF1GsGPhFLR4P",
                    "amount": 30000,
                    "quantity": 3,
                    "type": "sku",
                    "created_at": "2021-08-24T09:26:46.000000Z",
                    "updated_at": "2021-08-24T09:26:47.000000Z",
                    "deleted_at": null,
                    "product_sku": {
                        "id": 2,
                        "name": "sku 2",
                        "product_id": 4
                    }
                },
                {
                    "id": 342,
                    "index": 0,
                    "order_id": 97,
                    "product_sku_id": 1,
                    "product_sku_object_id": "sku_JoABlkWAL1PqI3",
                    "amount": 5000,
                    "quantity": 1,
                    "type": "sku",
                    "created_at": "2021-08-24T09:26:46.000000Z",
                    "updated_at": "2021-08-24T09:26:46.000000Z",
                    "deleted_at": null,
                    "product_sku": {
                        "id": 1,
                        "name": "sku 1",
                        "product_id": 4
                    }
                }
            ],
            "metadata": {
                "pelcro_order_id": "97"
            },
            "site_id": 1,
            "status": "created"
        }
    }
}