# List recurring plans

Source: https://amanucci.com/nl/docs/developers/api/documents/listRecurringPlans

## GET /v1/entities/{entityId}/recurring-plans

List recurring plans

This entity's recurring plans in the walk `order` names, paged by cursor. `status` narrows to one view (active, paused, ended); `partyId` to one customer's plans; `mode` to what each run does; `q` to a customer's or a plan's name.

Operation ID: `listRecurringPlans`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "description": "An opaque position, taken verbatim from a previous response's `nextCursor`. Never construct one: its encoding is an implementation detail and may change within `/v1` (rule 6 governs FIELDS, not the contents of an opaque token)."
    },
    "required": false,
    "description": "An opaque position, taken verbatim from a previous response's `nextCursor`. Never construct one: its encoding is an implementation detail and may change within `/v1` (rule 6 governs FIELDS, not the contents of an opaque token).",
    "name": "cursor",
    "in": "query"
  },
  {
    "schema": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 200,
      "description": "How many rows at most. The hard ceiling is 200; a larger value is refused with 422, never silently reduced."
    },
    "required": false,
    "description": "How many rows at most. The hard ceiling is 200; a larger value is refused with 422, never silently reduced.",
    "name": "limit",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "draft",
        "send"
      ]
    },
    "required": false,
    "name": "mode",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "id",
        "next.asc",
        "next.desc",
        "party.asc",
        "party.desc",
        "amount.desc",
        "amount.asc"
      ],
      "default": "id",
      "description": "The walk. `id` (the default): oldest first, the order plans were made in, the walk it always had. `next.asc` / `.desc` the next run (`nextRunOn`), an ended plan, which has none, last both ways; `party.asc` / `.desc` the customer's name, case folded first; `amount.desc` / `.asc` the next invoice's total (`nextAmount`), the entity's functional currency first and every other after it by code, over at most 200 plans: past them the order is refused (422 naming `order`), so narrow the plans first. Rows that share the key come in the order they were made, in the walk's direction. A cursor resumes only the walk that minted it: change the order and start at the first page."
    },
    "required": false,
    "description": "The walk. `id` (the default): oldest first, the order plans were made in, the walk it always had. `next.asc` / `.desc` the next run (`nextRunOn`), an ended plan, which has none, last both ways; `party.asc` / `.desc` the customer's name, case folded first; `amount.desc` / `.asc` the next invoice's total (`nextAmount`), the entity's functional currency first and every other after it by code, over at most 200 plans: past them the order is refused (422 naming `order`), so narrow the plans first. Rows that share the key come in the order they were made, in the walk's direction. A cursor resumes only the walk that minted it: change the order and start at the first page.",
    "name": "order",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": false,
    "name": "partyId",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "A case-insensitive substring of the customer's name (followed through a merge) or the plan's name (1..100 characters)."
    },
    "required": false,
    "description": "A case-insensitive substring of the customer's name (followed through a merge) or the plan's name (1..100 characters).",
    "name": "q",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "ended"
      ]
    },
    "required": false,
    "name": "status",
    "in": "query"
  }
]
```

### Responses

#### 200 One page of plans.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/RecurringPlanList"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
