# Make an account the default for its mode

`PUT /payments/accounts/{id}/default` · Rivier · shop

Make an account the default for its mode.

- Scope: shop:admin
- Sdk: shop.paymentAccount.setDefault
- Cli: shop payment account set default

## Parameters

- `id` (path, required), string

## 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/payments/accounts/{id}/default' \
  -H 'Authorization: Bearer $KEY'
```
