> For the complete documentation index, see [llms.txt](https://docs.ai.neevcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ai.neevcloud.com/api-reference/billing/wallets.md).

# Wallets

## Get organization wallet

> Retrieves the wallet balance and details for an organization

```json
{"openapi":"3.0.3","info":{"title":"Billing Service API","version":"0.1.0"},"servers":[{"url":"https://api.ai.neevcloud.com/billing","description":"Consolidated public API gateway"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token for authentication"}},"schemas":{"WalletResponse":{"type":"object","description":"Organization wallet details","required":["org_id","balance_micro_dollars","payment_balance_micro_dollars","grants_balance_micro_dollars","earn_balance_micro_dollars","created_at","updated_at"],"properties":{"org_id":{"type":"string","description":"Organization identifier"},"balance_micro_dollars":{"type":"integer","format":"int64","description":"Total wallet balance in micro_dollars (1/1000000 of a dollar)"},"payment_balance_micro_dollars":{"type":"integer","format":"int64","description":"Balance from payments in micro_dollars"},"grants_balance_micro_dollars":{"type":"integer","format":"int64","description":"Balance from grants in micro_dollars"},"earn_balance_micro_dollars":{"type":"integer","format":"int64","description":"Balance from referrals/earnings in micro_dollars"},"created_at":{"type":"string","format":"date-time","description":"Wallet creation timestamp"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp"}}},"ErrorResponse":{"type":"object","description":"A standard format for error responses.","properties":{"code":{"type":"string","description":"A machine-readable error code."},"message":{"type":"string","description":"A human-readable message providing details about the error."}},"required":["code","message"]}}},"paths":{"/api/v1/orgs/{org_id}/wallets":{"get":{"tags":["Wallets"],"summary":"Get organization wallet","description":"Retrieves the wallet balance and details for an organization","operationId":"getWallet","parameters":[{"name":"org_id","in":"path","description":"Organization ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Wallet retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Wallet not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## List wallet transactions

> Retrieves a paginated list of wallet transactions for an organization

```json
{"openapi":"3.0.3","info":{"title":"Billing Service API","version":"0.1.0"},"servers":[{"url":"https://api.ai.neevcloud.com/billing","description":"Consolidated public API gateway"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token for authentication"}},"schemas":{"WalletTransactionsListResponse":{"type":"object","description":"Paginated list of wallet transactions","required":["transactions","pagination"],"properties":{"transactions":{"type":"array","items":{"$ref":"#/components/schemas/WalletTransaction"}},"pagination":{"$ref":"#/components/schemas/PaginationResponse"}}},"WalletTransaction":{"type":"object","description":"Wallet transaction details","required":["id","organization_id","amount_micro_dollars","transaction_type","transaction_source","transaction_description","created_at"],"properties":{"id":{"type":"string","format":"uuid","description":"Transaction ID"},"organization_id":{"type":"string","description":"Organization identifier"},"amount_micro_dollars":{"type":"integer","format":"int64","description":"Transaction amount in micro_dollars (1/1000000 of a dollar)"},"transaction_type":{"type":"string","enum":["CREDIT","DEBIT"],"description":"Type of transaction"},"transaction_source":{"type":"string","enum":["grant","payment","system","coupon","refer_and_earn"],"description":"Source of the transaction"},"transaction_description":{"type":"string","description":"Description of the transaction"},"type":{"type":"string","nullable":true,"description":"Transaction type identifier (resource_id, payment_id, admin_id, coupon_id, system_id, etc.)"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp"},"hour_start":{"type":"string","format":"date-time","description":"Hour start timestamp"}}},"PaginationResponse":{"type":"object","description":"Pagination metadata","required":["total_items","total_pages","current_page","items_per_page"],"properties":{"total_items":{"type":"integer","description":"Total number of items across all pages","minimum":0},"total_pages":{"type":"integer","description":"Total number of pages","minimum":0},"current_page":{"type":"integer","description":"Current page number","minimum":1},"items_per_page":{"type":"integer","description":"Number of items per page","minimum":1,"maximum":100}}},"ErrorResponse":{"type":"object","description":"A standard format for error responses.","properties":{"code":{"type":"string","description":"A machine-readable error code."},"message":{"type":"string","description":"A human-readable message providing details about the error."}},"required":["code","message"]}}},"paths":{"/api/v1/orgs/{org_id}/wallets/transactions":{"get":{"tags":["Wallets"],"summary":"List wallet transactions","description":"Retrieves a paginated list of wallet transactions for an organization","operationId":"listWalletTransactions","parameters":[{"name":"org_id","in":"path","description":"Organization ID","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number for pagination (1-based)","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"items_per_page","in":"query","description":"Number of items per page","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"Transactions retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransactionsListResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ai.neevcloud.com/api-reference/billing/wallets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
