# Add and change products from a spreadsheet (same columns as the export)

`POST /shop/import` · Rivier · shop

Add and change products from a spreadsheet (same columns as the export). Dry run by default: says what would be created or changed. Pictures are fetched from https addresses by the safe reader.

- Scope: shop:admin
- Mcp: rivier_shop_catalogue_import
- Sdk: shop.catalogue.import
- Cli: shop catalogue import

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "csv": {
      "type": "string",
      "minLength": 1
    },
    "currency": {
      "type": "string",
      "pattern": "^[a-z]{3}$",
      "default": "eur"
    },
    "dryRun": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "csv"
  ],
  "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/shop/import' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "csv": "string"
}'
```
