# A supplier invoice's payment QR

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

## GET /v1/entities/{entityId}/documents/{documentId}/payment-qr

A supplier invoice's payment QR

One supplier invoice's EPC QR, which a banking app scans to fill the transfer: whom, the account the invoice printed, the amount (what is owed unless lowered) and its structured reference, else the number the supplier printed, whole or not at all; the warnings a file's transfer carries; refused as a payment file's transfer is.

Operation ID: `getPaymentQr`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "documentId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "pattern": "^\\d+(?:\\.\\d{1,2})?$",
      "description": "A euro amount as a STRING, at most two places; never a JSON number. Lowers the transfer; never above what is owed."
    },
    "required": false,
    "description": "A euro amount as a STRING, at most two places; never a JSON number. Lowers the transfer; never above what is owed.",
    "name": "amount",
    "in": "query"
  }
]
```

### Responses

#### 200 The QR and what it pays.

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

#### 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 Pay refused the request (`PayProblem`), or the schema did (`invalid-input`).

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

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