# Save the MOVEIN settings

`PUT /businesses/{bid}/exports/movein/settings`

Requires the `export` scope.

Any part of the settings, and `partyKeys` to set a customer's or a supplier's own card number (`{ partyId: "30500" }`, null to clear it). A card number is up to 15 letters or digits.

## Path parameters

| Name | Type | | Description |
|---|---|---|---|
| `bid` | string | **required** | Business id, from `POST /businesses`. |

## Body

| Field | Type | | Description |
|---|---|---|---|
| `settings` | object |  |  |
| `partyKeys` | object |  |  |

## Response

`200`: `{ "ok": true, … }`

| Field | Type | | Description |
|---|---|---|---|
| `ok` | boolean | **required** |  |
| `settings` | object | **required** |  |

Errors: `400`, `401`, `403`, `404`, `429`. Every failure answers `{ "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }`: branch on `reason`, and read `hint` for what to change (https://docs.billos.co.il/errors.md).

## Examples

### cURL

```bash
curl -X PUT "$BASE/businesses/$BID/exports/movein/settings" \
  -H "X-Api-Key: $KEY"
```
### Node

```node
const res = await fetch(`${BASE}/businesses/${BID}/exports/movein/settings`, {
  method: 'PUT',
  headers: {
    'X-Api-Key': KEY,
  },
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
```
### Python

```python
import requests
res = requests.put(
    f"{BASE}/businesses/{BID}/exports/movein/settings",
    headers={"X-Api-Key": KEY},
)
data = res.json()
```