---
title: "Save the sending setting"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Save the sending setting

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="put">PUT</span>
<code class="cvo-op-path-code">/v1/sending</code>
</div>
</div>

`automatic` emails an invoice by itself once its check is filed, when it is made for a customer delivered by email (`deliveryPlan.delivery.channel` is `email`) and its verdict is one of `verdicts`. A rejected invoice is never sent. `duplicates` says what happens to a likely duplicate: `hold` (the default) keeps it until a person keeps or dismisses it, and `send` lets it go, its warning kept on the invoice. The same applies to an invoice mailed to the send address. A customer's own `delivery.sending` overrides `mode` for that customer. The setting is copied into each invoice's plan when it is filed, so a change applies from the next invoice and never to one already filed. A signed-in person or an API key may save it.

## Request body

`application/json`, required

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The saved version. |
| `400` | An unknown mode or duplicates choice, verdicts other than the two choices, or another key (`invalid_sending`). Nothing was saved. |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `503` | No database is configured (`store_unavailable`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/save-the-sending-setting/index.mdx
