{

    "type": "object",
    "properties": {
        "customers": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "total_spend_cents": {
                        "type": ["integer","null"]
                    },
                    "total_purchases": {
                        "type": ["integer","null"]
                    },
                    "perks_redeemed": {
                        "type": ["integer","null"]
                    },
                    "last_purchase_at": {
                        "type": ["string","null"]
                    },
                    "first_name": {
                        "type": ["string","null"]
                    },
                    "last_name": {
                        "type": ["string","null"]
                    },
                    "phone_number": {
                        "type": ["string","null"]
                    },
                    "email": {
                        "type": ["string","null"]
                    },
                    "points_balance": {
                        "type": ["integer","null"]
                    },
                    "points_earned": {
                        "type": ["integer","null"]
                    },
                    "last_seen_at": {
                        "type": ["string","null"]
                    },
                    "thirty_party_id": {
                        "type": ["string","null"]
                    },
                    "third_party_id": {
                        "type": ["string","null"]
                    },
                    "pos_account_id": {
                        "type": ["string","null"]
                    },
                    "has_store_account": {
                        "type": ["boolean","null"]
                    },
                    "credit_balance": {
                        "type": ["string","null"]
                    },
                    "credit_balance_in_customer_currency": {
                        "type": ["string","null"]
                    },
                    "opt_in": {
                        "type": ["boolean","null"]
                    },
                    "opted_in_at": {
                        "type": ["string","null"]
                    },
                    "points_expire_at": {
                        "type": ["string","null"]
                    },
                    "vip_tier_actions_completed": {
                        "type": "object",
                        "properties": {
                            "points_earned": {
                                "type": ["integer","null"]
                            },
                            "amount_spent_cents": {
                                "type": ["integer","null"]
                            },
                            "amount_spent_cents_in_customer_currency": {
                                "type": ["integer","null"]
                            },
                            "purchases_made": {
                                "type": ["integer","null"]
                            },
                            "referrals_completed": {
                                "type": ["integer","null"]
                            },
                            "campaigns_completed": {
                                "type": "array"
                            }
                        }
                    },
                    "vip_tier_upgrade_requirements": {
                        "type": "object",
                        "properties": {
                            "points_needed": {
                                "type": ["integer","null"]
                            },
                            "amount_cents_needed": {
                                "type": ["integer","null"]
                            },
                            "amount_cents_needed_in_customer_currency": {
                                "type": ["integer","null"]
                            },
                            "purchases_needed": {
                                "type": ["integer","null"]
                            },
                            "referrals_needed": {
                                "type": ["integer","null"]
                            },
                            "campaigns_needed": {
                                "type": "array"
                            }
                        }
                    }
                }
            }
        }
    }
}