{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/graphiant/main/json-schema/graphiant-v1-extranets-b2b-peering-match-service-to-customer-id-get-response-schema.json",
  "title": "v1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/graphiant-extranets-b2b-peering-api-openapi.yml#/components/schemas/v1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse",
  "type": "object",
  "properties": {
    "customerName": {
      "type": "string"
    },
    "matchDetails": {
      "$ref": "#/$defs/manaV2B2bExtranetMatchServiceToCustomer"
    },
    "matchId": {
      "type": "integer",
      "format": "int64"
    },
    "serviceName": {
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "manaV2B2bExtranetMatchServiceToCustomer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "description": "ID of the service being subscribed by the customer (required)"
        },
        "lanSegment": {
          "type": "integer",
          "format": "int64"
        },
        "nat": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/manaV2B2bNat"
          }
        },
        "numCustomers": {
          "type": "integer",
          "format": "int32",
          "minimum": 0,
          "description": "Number of customers subscribed to the service"
        },
        "servicePrefixes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/manaV2B2bExtranetPrefixTag"
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "nat",
        "servicePrefixes"
      ]
    },
    "manaV2B2bExtranetPrefixTag": {
      "type": "object",
      "properties": {
        "prefix": {
          "type": "string",
          "description": "Prefix advertised by the service (required)"
        },
        "tag": {
          "type": "string",
          "description": "Tag for the prefix"
        }
      },
      "additionalProperties": false,
      "required": [
        "prefix"
      ]
    },
    "manaV2B2bNat": {
      "type": "object",
      "properties": {
        "outsideNatPrefix": {
          "type": "string",
          "description": "Outside NAT prefix for the customer prefix"
        },
        "prefix": {
          "type": "string",
          "description": "Prefix imported into the service (required)"
        }
      },
      "additionalProperties": false,
      "required": [
        "prefix"
      ]
    }
  }
}