{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "ContactInput.json",
  "title": "Billing contact (request)",
  "description": "A billing contact sent on create or update.",
  "type": "object",
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Label or person's name."
    },
    "email": {
      "type": "string",
      "description": "A valid email address."
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Phone number."
    },
    "isBillingPrimary": {
      "type": "boolean",
      "description": "Make this the primary contact. At most one contact can be primary. Default false."
    },
    "ccOnInvoices": {
      "type": "boolean",
      "description": "Copy this contact on invoice and receipt emails. Default true when omitted."
    }
  },
  "required": [
    "email"
  ]
}
