# Add an extra or a fee; a mandatory fee is added to every stay

`POST /lodging/extras` · Rivier · bookings

Add an extra or a fee; a mandatory fee is added to every stay.

- Scope: bookings:admin
- Mcp: rivier_lodging_extra_create
- Sdk: bookings.extra.create
- Cli: bookings extra create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "propertyId": {
      "type": "string",
      "format": "uuid"
    },
    "code": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,24}$"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "kind": {
      "type": "string",
      "enum": [
        "extra",
        "fee"
      ],
      "default": "extra"
    },
    "priceMinor": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "per": {
      "type": "string",
      "enum": [
        "stay",
        "night",
        "person",
        "person_night"
      ],
      "default": "stay"
    },
    "tax": {
      "type": "string",
      "enum": [
        "accommodation",
        "ancillary",
        "none"
      ],
      "default": "ancillary"
    },
    "mandatory": {
      "type": "boolean",
      "default": false
    },
    "maxQuantity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 1
    },
    "roomTypeIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "maxItems": 100,
      "default": []
    },
    "content": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "string",
          "maxLength": 8000
        },
        "propertyNames": {
          "pattern": "^[A-Za-z]{1,32}$"
        }
      },
      "propertyNames": {
        "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
      },
      "default": {}
    },
    "position": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000,
      "default": 0
    },
    "published": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "propertyId",
    "code",
    "name",
    "priceMinor"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: 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/extras' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "propertyId": "string",
  "code": "string",
  "name": "string",
  "priceMinor": 0
}'
```
