# Confirm a proposed expense, with corrections

`POST /accounting/expenses/{id}/confirm` · Rivier · accounting

Confirm a proposed expense, with corrections.

- Scope: accounting:write
- Sdk: accounting.expense.confirm
- Cli: accounting expense confirm

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "account": {
      "type": "string",
      "maxLength": 40
    },
    "paidFrom": {
      "type": "string",
      "maxLength": 40
    },
    "grossMinor": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 99999999999
    },
    "taxRateBp": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    },
    "spentOn": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "merchant": {
      "type": "string",
      "maxLength": 200
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/accounting/expenses/{id}/confirm' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "account": "string",
  "paidFrom": "string",
  "grossMinor": 0,
  "taxRateBp": 0,
  "spentOn": "string",
  "merchant": "string"
}'
```
