Retrieve the balance of an organization
Fetch the current balance of an organization by providing its unique ID. This endpoint returns the total balance available for the organization.
GET
Parameters
Path Parameters
OrganizationId
REQUIRED
Unique identifier of the organization
| Status code | Description |
|---|---|
| 200 | Successfully retrieved the organization details. |
| 400 | Bad request error - the request contains invalid parameters or malformed data |
| 500 | Internal server error - an unexpected error occurred on the server |
cURL
curl -L \"https://blockv-labs.io/organizations/{organizationId}/balance" \-H 'Accept: application/json'
Response
{"amount": "string"}
json
{"type": "object","required": ["amount"],"properties": {"amount": {"type": "string","x-go-type": "decimal.Decimal","x-go-type-import": {"path": "github.com/vlabsio/smarttoken/pkg/types/decimal"},"x-oapi-codegen-extra-tags": {"bson": "balance,omitempty"},"description": "The current balance of the organization in the smallest currency unit (e.g., cents)"}}}