# Set the seller's details, default VAT, payment days and footer

`PUT /invoices/settings` · Rivier · shop

Set the seller's details, default VAT, payment days and footer.

- Scope: shop:admin
- Sdk: shop.invoiceSettings.set
- Cli: shop invoice settings set

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "seller": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "email": {
          "type": "string",
          "format": "email",
          "maxLength": 254
        },
        "addressLines": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 6,
          "default": []
        },
        "country": {
          "type": "string",
          "pattern": "^[A-Z]{2}$"
        },
        "vatId": {
          "type": "string",
          "maxLength": 30
        },
        "registration": {
          "type": "string",
          "maxLength": 60
        },
        "city": {
          "type": "string",
          "maxLength": 100
        },
        "postalCode": {
          "type": "string",
          "maxLength": 20
        },
        "endpointScheme": {
          "type": "string",
          "pattern": "^[0-9A-Z]{4}$"
        },
        "endpointId": {
          "type": "string",
          "pattern": "^\\S(.{0,48}\\S)?$"
        },
        "paymentAccount": {
          "type": "string",
          "pattern": "^[A-Za-z0-9 ]{4,42}$"
        },
        "paymentBic": {
          "type": "string",
          "pattern": "^[A-Za-z0-9]{8,11}$"
        },
        "language": {
          "type": "string",
          "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
          "maxLength": 20
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    },
    "defaultTaxBp": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    },
    "paymentDays": {
      "type": "integer",
      "minimum": 0,
      "maximum": 365
    },
    "paymentText": {
      "type": "string",
      "maxLength": 1000
    },
    "footer": {
      "type": "string",
      "maxLength": 600
    },
    "reminders": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "before",
              "on",
              "after"
            ]
          },
          "days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 120
          }
        },
        "required": [
          "kind",
          "days"
        ],
        "additionalProperties": false
      },
      "maxItems": 8
    }
  },
  "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 PUT 'https://api.rivier.ai/invoices/settings' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "seller": {
    "name": "string"
  },
  "defaultTaxBp": 0,
  "paymentDays": 0,
  "paymentText": "string",
  "footer": "string",
  "reminders": [
    {
      "kind": "before",
      "days": 0
    }
  ]
}'
```
