# Credits

> Besday Credits API: read your brand’s credit balance. Orders are paid from credits; 1 credit = US$1.

Source: https://besday.com/docs/api/credits · Updated 2026-12-03 · OpenAPI: https://besday.com/api/v1/openapi.json

Orders are paid from your brand’s credits. 1 credit = US$1; credits never expire.

## The credit balance object

Your brand’s credits. Orders are paid from credits; 1 credit = US$1. Credits are bought on besday.com by the owner or an admin.

| Field | Type | Description |
|---|---|---|
| `object` | string | Always `credit_balance`. One of: `credit_balance`. |
| `balance_credits` | number | Credits available to spend. |
| `currency` | string | Always `credits`. One of: `credits`. |
| `credit_value_usd` | number | Always 1. |
| `spending_paused` | boolean | True when Besday paused spending (for example during a payment dispute). |
| `can_buy` | boolean | Whether the key’s team member may buy credits (owner and admins). |
| `buy_credits_url` | string | Where a person buys credits. |

Example:

```json
{
  "object": "credit_balance",
  "balance_credits": 500,
  "currency": "credits",
  "credit_value_usd": 1,
  "spending_paused": false,
  "can_buy": true,
  "buy_credits_url": "https://besday.com/app/brands/credits"
}
```

## Retrieve the credit balance

`GET /api/v1/credits`

Returns the brand’s credit balance. Orders are paid from it; 1 credit = US$1.

- Scope: `read`
- Returns: 200 `credit_balance`

cURL:

```bash
curl "https://besday.com/api/v1/credits" \
  -H "Authorization: Bearer $BESDAY_API_KEY"
```

Node.js:

```javascript
const res = await fetch("https://besday.com/api/v1/credits", {
  headers: {
    Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
```

Python:

```python
import os, uuid, requests

res = requests.get(
    "https://besday.com/api/v1/credits",
    headers={
        "Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())
```

Response (200):

```json
{
  "object": "credit_balance",
  "balance_credits": 500,
  "currency": "credits",
  "credit_value_usd": 1,
  "spending_paused": false,
  "can_buy": true,
  "buy_credits_url": "https://besday.com/app/brands/credits"
}
```

Errors: `api_key_invalid`.


## Buying credits

Credits are bought on besday.com by the brand’s owner or an admin: packs of 100, 250, 500, 1000, 2500 credits, or any amount from 25 to 10,000. Refunds of cancelled orders come back as credits.
