# Balance

> The NinjaBuy balance your orders are paid from, and its transactions.

Source: https://www.ninjabuy.com/business/docs/api/balance

The money your orders are paid from, in CN¥. You add to it on ninjabuy.com; the API reads it and never charges a card.

- An order your balance cannot cover waits as awaiting\_payment and goes ahead by itself after a top-up. Reading the balance needs a key whose creator may see it: the team's owner or an admin.
- Refunds, for a cancelled order or a line we could not buy, go back to the balance. [Fees](https://www.ninjabuy.com/business/docs/fees.md) lists every charge.

Endpoints

- GET /v1/balance Retrieve the balance
- GET /v1/balance/transactions Coming soon List transactions

## The Balance object

- `available` money

  What new orders can spend, in CN¥: your team owner's NinjaBuy balance, which the team spends.

- `pending` money

  A top-up still clearing. It joins available once it clears.

- `top_up_url` string

  Where the team's owner adds money, signed in on ninjabuy.com.

- `updated_at` string|null

  When the balance last moved; null before it ever has.

balance

```json
{  "available": { "amount": "2140.00", "currency": "CNY" },  "pending": { "amount": "0.00", "currency": "CNY" },  "top_up_url": "https://www.ninjabuy.com/me/balance/top-up",  "updated_at": "2026-11-04T09:20:03Z"}
```

## Retrieve the balance

GET /v1/balance

Check it before you send a large batch of orders.

Scope balance:read

```bash
curl "https://www.ninjabuy.com/api/v1/balance" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11"
```

Response · 200

```
HTTP/2 200 OK​{  "available": { "amount": "2140.00", "currency": "CNY" },  "pending": { "amount": "0.00", "currency": "CNY" },  "top_up_url": "https://www.ninjabuy.com/me/balance/top-up",  "updated_at": "2026-11-04T09:20:03Z"}
```

## List transactions

GET /v1/balance/transactions Coming soon

Top-ups, order and shipping charges, and refunds, newest first. Amounts are signed: a charge is negative.

Scope balance:read

### Query parameters

- `type` string

  Optional. top\_up, order, shipping or refund.

- `order` string

  Optional. An order id: everything that order moved.

- `limit, cursor`

  [Pagination](https://www.ninjabuy.com/business/docs/api.md#pagination)

```bash
curl "https://www.ninjabuy.com/api/v1/balance/transactions?limit=3" \  -H "Authorization: Bearer " \  -H "NinjaBuy-Version: 2026-11"
```

Response · 200

```
HTTP/2 200 OK​{  "data": [    {      "id": "txn_k22a",      "type": "shipping",      "order": "ord_3n7q",      "amount": { "amount": "-133.38", "currency": "CNY" },      "created_at": "2026-11-03T05:58:00Z"    },    {      "id": "txn_k21d",      "type": "order",      "order": "ord_3n7q",      "amount": { "amount": "-57.00", "currency": "CNY" },      "created_at": "2026-11-01T09:14:02Z"    },    {      "id": "txn_k1zz",      "type": "top_up",      "order": null,      "amount": { "amount": "2000.00", "currency": "CNY" },      "created_at": "2026-10-31T16:40:12Z"    }  ],  "has_more": true,  "cursor": "c_k1zz"}
```

- The API is open on request. Our team sets up your Business account and issues its API keys.

  [Contact sales](https://www.ninjabuy.com/business#contact)
