# Whether a new sale fits the customer's credit limit

`GET /accounting/customers/{key}/credit-check` · Rivier · accounting

Whether a new sale fits the customer's credit limit.

- Scope: accounting:read
- Mcp: rivier_accounting_credit_check
- Graphql: Query.accountingCreditCheck
- Sdk: accounting.customer.creditCheck
- Cli: accounting customer credit check

## Parameters

- `key` (path, required), string
- `amountMinor` (query, required), integer
- `currency` (query), 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 GET 'https://api.rivier.ai/accounting/customers/{key}/credit-check' \
  -H 'Authorization: Bearer $KEY'
```
