# Read what a line may be composed with

Source: https://amanucci.com/docs/developers/api/documents/getOriginationOptions

## GET /v1/entities/{entityId}/origination-options

Read what a line may be composed with

What a line may be composed with at this entity on `on`: the sale rates its pack set lists, in force that day, each a category and a rate in percent, in the order the pack lists them. Read from the rule packs this release ships, the edition finalize treats a sale under, where a sale rule books each listed rate to a grid: a rate the pack does not list is never offered, 0 % included.

Operation ID: `getOriginationOptions`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "format": "date",
      "description": "The day the line is composed for: the rates in force then."
    },
    "required": true,
    "description": "The day the line is composed for: the rates in force then.",
    "name": "on",
    "in": "query"
  }
]
```

### Responses

#### 200 The entity's choices on that day.

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

#### 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"
    }
  }
}
```
