# The SubscriptionTemplate object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |
| `name` | string | yes | Name of the template |
| `description` | string | no | Description the subscriptions made from the template get |
| `currency` | string | yes |  |
| `group_id` | string | no | The subscription group the template is in |
| `plan_name` | string | no | Name shown in the customer portal when switching |
| `plan_description` | string | no | Text shown in the customer portal when switching |
| `rules` | array of SubscriptionRules | yes |  |
| `rules[].id` | string | yes |  |
| `rules[].amount` | string | yes |  |
| `rules[].currency` | string | yes | One of: `AED`, `AUD`, `BGN`, `BRL`, `CAD`, `CHF`, `CZK`, `DKK`, `EUR`, `GBP`, `HKD`, `HUF`, `ILS`, `ISK`, `JPY`, `MXN`, `MYR`, `NOK`, `NZD`, `PHP`, `PLN`, `RON`, `SEK`, `SGD`, `THB`, `TWD`, `USD`, `ZAR`. |
| `rules[].interval` | string | yes | One of: `day`, `week`, `month`, `year`. |
| `rules[].interval_amount` | integer | yes |  |
| `rules[].day` | integer | yes |  |
| `rules[].times` | integer | no |  |
| `rules[].times_done` | integer | yes |  |

```json
{
    "id": "aB3dE5fG7h",
    "name": "Groentebox klein",
    "description": "Groentebox klein, wekelijks",
    "currency": "EUR",
    "group_id": "xY1zA2bC3d",
    "plan_name": "Klein",
    "plan_description": null,
    "rules": [
        {
            "id": "rule_abc123",
            "amount": "29.99",
            "currency": "EUR",
            "interval": "month",
            "interval_amount": 1,
            "day": 1,
            "times": 12,
            "times_done": 3
        }
    ]
}
```
