# am.noz.at.spl.defaultSplit

> Published by [noz.am](https://lexicon.garden/identity/did:plc:lmkzmvv6sdxntwtyxpg7fqqq)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.at.spl.defaultSplit)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.at.spl.defaultSplit/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.at.spl.defaultSplit/examples)

## Definitions

### `am.noz.at.spl.defaultSplit#equalSplit`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `participants` | `array` | Yes |  |

### `am.noz.at.spl.defaultSplit`

**Type**: `record`

A reusable split rule for a group or recurring expense.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `name` | `string` | Yes |  |
| `rule` | `union` | Yes |  |
| `schemaVersion` | `integer` | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |

### `am.noz.at.spl.defaultSplit#percentAllocation`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `partsPerMillion` | `integer` | Yes |  |

### `am.noz.at.spl.defaultSplit#percentSplit`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `allocations` | `array` | Yes |  |

### `am.noz.at.spl.defaultSplit#shareAllocation`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `shares` | `integer` | Yes |  |

### `am.noz.at.spl.defaultSplit#sharesSplit`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `allocations` | `array` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "equalSplit": {
      "properties": {
        "participants": {
          "items": {
            "format": "did",
            "type": "string"
          },
          "maxLength": 250,
          "minLength": 1,
          "type": "array"
        }
      },
      "required": [
        "participants"
      ],
      "type": "object"
    },
    "main": {
      "description": "A reusable split rule for a group or recurring expense.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "maxGraphemes": 80,
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "rule": {
            "closed": true,
            "refs": [
              "lex:am.noz.at.spl.defaultSplit#equalSplit",
              "lex:am.noz.at.spl.defaultSplit#percentSplit",
              "lex:am.noz.at.spl.defaultSplit#sharesSplit"
            ],
            "type": "union"
          },
          "schemaVersion": {
            "const": 1,
            "type": "integer"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "schemaVersion",
          "name",
          "rule",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "percentAllocation": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "partsPerMillion": {
          "maximum": 1000000,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "did",
        "partsPerMillion"
      ],
      "type": "object"
    },
    "percentSplit": {
      "properties": {
        "allocations": {
          "items": {
            "ref": "lex:am.noz.at.spl.defaultSplit#percentAllocation",
            "type": "ref"
          },
          "maxLength": 250,
          "minLength": 1,
          "type": "array"
        }
      },
      "required": [
        "allocations"
      ],
      "type": "object"
    },
    "shareAllocation": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "shares": {
          "maximum": 1000000,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "did",
        "shares"
      ],
      "type": "object"
    },
    "sharesSplit": {
      "properties": {
        "allocations": {
          "items": {
            "ref": "lex:am.noz.at.spl.defaultSplit#shareAllocation",
            "type": "ref"
          },
          "maxLength": 250,
          "minLength": 1,
          "type": "array"
        }
      },
      "required": [
        "allocations"
      ],
      "type": "object"
    }
  },
  "id": "am.noz.at.spl.defaultSplit",
  "lexicon": 1
}
```
