{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BillingPolicy",
  "title": "BillingPolicy",
  "type": "object",
  "description": "A billing policy that defines the association between an Azure subscription and Power Platform environments for pay-as-you-go billing.",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the billing policy.",
      "example": "abc123"
    },
    "name": {
      "type": "string",
      "description": "The display name of the billing policy.",
      "example": "Example Title"
    },
    "location": {
      "type": "string",
      "description": "The geographic location of the billing policy.",
      "example": "example_value"
    },
    "status": {
      "type": "string",
      "description": "The status of the billing policy.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "example": "Enabled"
    },
    "billingInstrument": {
      "$ref": "#/components/schemas/BillingInstrument"
    },
    "createdBy": {
      "$ref": "#/components/schemas/Principal"
    },
    "createdOn": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the billing policy was created.",
      "example": "2026-01-15T10:30:00Z"
    },
    "lastModifiedBy": {
      "$ref": "#/components/schemas/Principal"
    },
    "lastModifiedOn": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of the last modification.",
      "example": "2026-01-15T10:30:00Z"
    }
  }
}