# List something the business offers, as a draft

`POST /payments/offerings` · Rivier · shop

List something the business offers, as a draft: its shape (nights, session, ticket, hire), title, one price in one currency, capacity, whether it is paid online or on arrival, and how much comes back on a cancellation (free until some hours before the start, then a percentage). Nobody can reserve a draft.

- Scope: shop:write
- Mcp: rivier_payments_offering_save
- Graphql: Mutation.shopOfferingCreate
- Sdk: shop.offering.create
- Cli: shop offering create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "shape": {
      "type": "string",
      "enum": [
        "nights",
        "session",
        "ticket",
        "hire"
      ]
    },
    "title": {
      "type": "string",
      "minLength": 3,
      "maxLength": 160
    },
    "description": {
      "type": "string",
      "maxLength": 2000
    },
    "placeName": {
      "type": "string",
      "maxLength": 160
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Za-z]{3}$"
    },
    "priceMinor": {
      "type": "integer",
      "minimum": 0,
      "maximum": 99999999
    },
    "capacity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000,
      "default": 1
    },
    "durationMinutes": {
      "type": "integer",
      "minimum": 5,
      "maximum": 43200
    },
    "pay": {
      "type": "string",
      "enum": [
        "online",
        "on_arrival"
      ],
      "default": "online"
    },
    "freeCancelHours": {
      "type": "integer",
      "minimum": 0,
      "maximum": 8760,
      "default": 48
    },
    "lateRefundPercent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "default": 0
    },
    "visibility": {
      "type": "string",
      "enum": [
        "apps",
        "public"
      ],
      "default": "apps"
    }
  },
  "required": [
    "shape",
    "title",
    "currency",
    "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/payments/offerings' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "shape": "nights",
  "title": "string",
  "currency": "string",
  "priceMinor": 0
}'
```
