# Add a service, fee or discount to the folio

`POST /lodging/reservations/{id}/charges` · Rivier · bookings

Add a service, fee or discount to the folio. Above the property's cap a person with approval rights is needed.

- Scope: bookings:write
- Mcp: rivier_lodging_charge_post
- Graphql: Mutation.postFolioCharge
- Sdk: bookings.folio.postCharge
- Cli: bookings folio post charge

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "category": {
      "type": "string",
      "enum": [
        "service",
        "fee",
        "discount"
      ]
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "quantity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 1
    },
    "unitAmountMinor": {
      "type": "integer",
      "minimum": -1000000000,
      "maximum": 1000000000
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    }
  },
  "required": [
    "category",
    "description",
    "unitAmountMinor",
    "idempotencyKey"
  ],
  "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/lodging/reservations/{id}/charges' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "category": "service",
  "description": "string",
  "unitAmountMinor": 0,
  "idempotencyKey": "string"
}'
```
