# The partner balance

> The partner's ACCOUNT credits for the current monthly window: the same credits its own requests use.

Source: https://docs.spicrawl.com/api-reference/partner/partner-wallet

## GET /v1/partner/wallet

Operation ID: `partnerWallet`. API key scope: `partner`.

The partner's ACCOUNT credits for the current monthly window: the same credits its own requests use. `funded`
is the monthly allowance plus the extra credits available, `spent` is what the month has drawn (its own requests,
its users' draws and the credits it gave), and `balance` and `available` are what is left. `credit_line` is always
0. `resets_at` is when the window ends. `unlimited` is true for a partner with no ceiling; its figures then read 0.
The `*_credits` fields are the same values in whole credits.

### Example

```bash
curl "https://api.spicrawl.com/v1/partner/wallet" \
  -H "Authorization: Bearer $SPICRAWL_API_KEY"
```

### Responses

#### 200

The balance.

`application/json`.

| Field | Type | Required | Description |
|---|---|---|---|
| `funded_micro` | integer (int64) | yes |  |
| `credit_line_micro` | integer (int64) | yes | Always 0. |
| `spent_micro` | integer (int64) | yes |  |
| `balance_micro` | integer (int64) | yes |  |
| `available_micro` | integer (int64) | yes | The same as balance_micro. Kept for existing clients. |
| `funded_credits` | integer (int64) | no |  |
| `credit_line_credits` | integer (int64) | no |  |
| `spent_credits` | integer (int64) | no |  |
| `balance_credits` | integer (int64) | no |  |
| `available_credits` | integer (int64) | no |  |
| `resets_at` | string (date-time) | yes | When the monthly window ends and the account's credits reset (UTC). |
| `unlimited` | boolean | yes | True for a partner with no monthly ceiling. The figures read 0. |

#### 401

Missing, invalid, revoked or expired key. Not retryable with the same key.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 403

The key lacks the scope this route requires (`ERR::AUTH::INSUFFICIENT_SCOPE`), or the action is not permitted.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 500

Internal error. Retryable when `retryable` is true.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

Full OpenAPI spec: https://docs.spicrawl.com/openapi.yaml
