Get Bucket Balances
/bucket
Request
-
@type: string
The type of object to return. Use @type=Bucket for a base object or @type=BucketOracle for an extended object.
-
fields: string
The list of comma-separated fields to return in the response.Examples
-
limit: integer
The maximum number of results to return.Examples
-
offset: integer
The number of results to offset the response by.Examples
-
partyAccount.id: string
Retrieves buckets with the associated party account ID or External ID.Examples
-
product.id: string
Retrieves the buckets for the product with the specified ID, Login ID or Alias Name.Examples
-
status: string
Retrieves buckets with the specified status: ACTIVE, INACTIVE, or CLOSED.Examples
-
usageType: string
Retrieves buckets with the specified usage type: monetary or other.Examples
There's no request body for this operation.
Back to TopResponse
- application/json;charset=utf-8
200 Response
-
X-Result-Count:
The number of items returned in the response body.
-
X-Total-Count:
The total number of items that matched the criteria.
array-
Array of:
object Bucket
Title:
BucketA bucket that tracks a quantity of usage (remaining or consumed) for currency or noncurrency resources (such as messages, minutes, data).
objectBucket-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. (BRM does not use this property). -
@type: string
Title:
TypeThe object's subclass. -
description: string
The bucket's description. (BRM does not use this property).
-
href(required): string
Title:
Bucket HrefThe bucket's href. (BRM does not use this property). -
id(required): string
Title:
Bucket IDThe bucket's ID. - isShared: boolean
-
logicalResource: array
logicalResource
The logical resources are associated with the bucket.
-
name: string
Title:
Bucket NameThe bucket's name. -
partyAccount: object
Party Account Ref
Title:
Party Account RefA reference to a party account. -
product: array
product
The products are associated with the bucket.
- relatedParty: array relatedParty
-
remainingValue: object
Quantity
Represents an amount in a specified unit.
-
remainingValueName: string
Title:
Remaining ValueA string, including value and unit, representing the remaining amount in the bucket, used for display purposes. For example, 1.9 GB. -
reservedValue: object
Quantity
Represents an amount in a specified unit.
-
status(required): string
The bucket's status. For example: active, expired, or suspended.
-
usageType: string
The bucket's usage type.
-
validFor(required): object
TimePeriod
Represents a time period with a start date, an end date, or both.
array-
Array of:
object Logical Resource Ref
Title:
Logical Resource RefA reference to a logical resource.
objectParty Account Ref-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType: string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
description: string
Title:
DescriptionThe party account's description. -
href: string
Title:
HrefThe party account's href. -
id(required): string
Title:
Account IDThe party account's ID. -
name: string
Title:
NameThe party account's name. -
status: string
Title:
StatusThe overall status of the account. For example: due, paid, or in arrears.
array-
Array of:
object ProductRef
A product reference.
object-
amount: number
(double)
Default Value:
1The numeric value in the specified unit. -
units: string
The unit.
object-
endDateTime: string
(date-time)
The end of the time period in IETF RFC 3339 format.Example:
1985-04-12T23:20:50.52Z -
startDateTime: string
(date-time)
The start of the time period in IETF RFC 3339 format.Example:
1985-04-12T23:20:50.52Z
objectLogical Resource Ref-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType: string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
href: string
Title:
HrefThe resource's href. -
id(required): string
Title:
IDThe resource's ID. -
name: string
Title:
NameThe resource's name. -
value: string
The device number(PIN_FLD_ALIAS_LIST) or the login (PIN_FLD_LOGIN).
object-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
allOf
EntityRef
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Addressable
Defines a base schema for addressable entities.
-
object
EntityRef-allOf[2]
Represents an entity reference schema for EntityRef classes.
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
href: string
The hyperlink reference.
-
id: string
The ID.
object-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
href: string
The URI of the referred entity.
-
id(required): string
The identifier of the referred entity.
-
name: string
The referred entity's name.
objectRelated Party-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType(required): string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
href: string
(uri)
Title:
HrefThe party's href. -
id(required): string
Title:
Party IDThe party's ID. -
name: string
Title:
Party NameThe party's name. -
role: string
Title:
Party RoleThe party's role.
400 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
401 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
403 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
404 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
405 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
409 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
500 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
Examples
Example 1: Get Bucket Balances Using Product ID Query Parameter
The following example shows how to get bucket balances by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
The request uses the product.id query parameter to restrict the results.
curl -X GET 'http://host:port/brm/prepayBalanceManagement/version/bucket?product.id=0.0.0.1+-service-telco-gsm-sms+102975'
Response Body
The following example shows the contents of the response body in JSON format.
[
{
"id": "0.0.0.1+-balance_group+106463",
"href": "http://host:port/brm/prepayBalanceManagement/version/bucket/0.0.0.1+-balance_group+106463",
"confirmationDate": null,
"description": null,
"isShared": null,
"name": "Account Balance Group",
"remainingValueName": null,
"requestedDate": null,
"logicalResource": null,
"partyAccount": {
"id": "0.0.0.1+-account+102879",
"href": null,
"description": null,
"name": "Adam Baker",
"status": "active",
"@baseType": null,
"@schemaLocation": null,
"@type": "PartyAccountRef",
"@referredType": null
},
"product": [
{
"id": "0.0.0.1+-service-telco-gsm-sms+102975",
"href": null,
"name": "ServiceTelcoGsmSms",
"@baseType": null,
"@schemaLocation": null,
"@type": "ProductRef",
"@referredType": null
},
{
"id": "0.0.0.1+-service-telco-gsm-telephony+104255",
"href": null,
"name": "ServiceTelcoGsmTelephony",
"@baseType": null,
"@schemaLocation": null,
"@type": "ProductRef",
"@referredType": null
}
],
"relatedParty": null,
"remainingValue": {
"amount": 45.0,
"units": "EUR",
"@baseType": null,
"@schemaLocation": null,
"@type": "Quantity"
},
"reservedValue": {
"amount": 0.0,
"units": "EUR",
"@baseType": null,
"@schemaLocation": null,
"@type": "Quantity"
},
"status": "ACTIVE",
"usageType": null,
"validFor": {
"endDateTime": null,
"startDateTime": "2025-05-02T00:00:00-07:00"
},
"@baseType": "Bucket",
"@schemaLocation": null,
"@type": "Bucket"
}
]
Example 2: Get Bucket Balances Using Status Query Parameter
The following example shows how to get bucket balances by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
The request uses the status query parameter to restrict the results.
curl -X GET 'http://host:port/brm/prepayBalanceManagement/version/bucket?status=ACTIVE'
Response Body
The following example shows the contents of the response body in JSON format.
[
{
"id": "0.0.0.1+-balance_group+12345",
"href": "http://host:port/brm/prepayBalanceManagement/version/bucket/0.0.0.1+-balance_group+12345",
"confirmationDate": null,
"description": null,
"isShared": null,
"name": "Account Balance Group",
"remainingValueName": null,
"requestedDate": null,
"logicalResource": null,
"partyAccount": {
"id": "0.0.0.1+-account+98765",
"href": null,
"description": null,
"name": "Sunita Patel",
"status": "active",
"@baseType": null,
"@schemaLocation": null,
"@type": "PartyAccountRef",
"@referredType": null
},
"product": [
{
"id": "0.0.0.1+-service-telco-gsm-sms+475867",
"href": null,
"name": "ServiceTelcoGsmSms",
"@baseType": null,
"@schemaLocation": null,
"@type": "ProductRef",
"@referredType": null
},
{
"id": "0.0.0.1+-service-telco-gsm-telephony+104255",
"href": null,
"name": "ServiceTelcoGsmTelephony",
"@baseType": null,
"@schemaLocation": null,
"@type": "ProductRef",
"@referredType": null
}
],
"relatedParty": null,
"remainingValue": {
"amount": 10.0,
"units": "USD",
"@baseType": null,
"@schemaLocation": null,
"@type": "Quantity"
},
"reservedValue": {
"amount": 15.0,
"units": "USD",
"@baseType": null,
"@schemaLocation": null,
"@type": "Quantity"
},
"status": "ACTIVE",
"usageType": null,
"validFor": {
"endDateTime": null,
"startDateTime": "2025-01-02T00:00:00-07:00"
},
"@baseType": "Bucket",
"@schemaLocation": null,
"@type": "Bucket"
}
]
Get bucket balances using an account external ID
The following example retrieves bucket balances using the account external ID in the partyAccount.id query parameter.
curl -X GET 'http://host:port/brm/prepayBalanceManagement/v4/bucket?@type=BucketOracle&partyAccount.id=test_account_140598'
where:
- host is the URL for the REST server.
- port is the port for the REST server.
Example of Response Body
[
{
"id": "0.0.0.1+-balance_group+141494+840+0",
"href": "https://localhost:8080/brm/prepayBalanceManagement/v4/bucket/0.0.0.1+-balance_group+141494+840+0",
"confirmationDate": "0",
"description": "",
"isShared": false,
"name": "Balance Group<Account>",
"remainingValueName": "",
"requestedDate": "0",
"logicalResource": [
{
"@baseType": "LogicalResourceRef",
"@referredType": null,
"@schemaLocation": null,
"@type": "LogicalResourceRef",
"href": null,
"id": null,
"name": null,
"value": "472-20260410-072856-0-245742-906351744-cagbu-phx-1038"
}
],
"partyAccount": {
"id": "test_account_140598",
"href": null,
"description": null,
"name": "Venkateswari Moorthy",
"status": "active",
"@baseType": "PartyAccountRef",
"@schemaLocation": null,
"@type": "PartyAccountRef",
"@referredType": null
},
"product": [
{
"id": "0.0.0.1+-service-telco-gsm-telephony+143030",
"href": null,
"name": "ServiceTelcoGsmTelephony",
"@baseType": "ProductRef",
"@schemaLocation": null,
"@type": "ProductRef",
"@referredType": null
}
],
"relatedParty": [],
"remainingValue": {
"amount": 176.21,
"units": "USD",
"@baseType": "Quantity",
"@schemaLocation": null,
"@type": "Quantity"
},
"reservedValue": {
"amount": 0.0,
"units": "USD",
"@baseType": "Quantity",
"@schemaLocation": null,
"@type": "Quantity"
},
"status": "ACTIVE",
"usageType": "MONETARY",
"validFor": {
"endDateTime": null,
"startDateTime": "2026-04-10T12:30:00+05:30",
"@baseType": "TimePeriod",
"@schemaLocation": null,
"@type": "TimePeriod"
},
"@baseType": "Bucket",
"@schemaLocation": "",
"@type": "Bucket"
}
]
Get bucket balances using a service alias
The following example retrieves bucket balances using a service alias in the product.id query parameter.
curl -X GET 'http://host:port/brm/prepayBalanceManagement/v4/bucket?@type=BucketOracle&product.id=aliasIMEIBase_0010'
where:
- host is the URL for the REST server.
- port is the port for the REST server.
Example of Response Body
[
{
"id": "0.0.0.1+-balance_group+175837+840+0",
"href": "https://localhost:8080/brm/prepayBalanceManagement/v4/bucket/0.0.0.1+-balance_group+175837+840+0",
"confirmationDate": "0",
"description": "",
"isShared": false,
"name": "",
"remainingValueName": "",
"requestedDate": "0",
"logicalResource": [
{
"@baseType": "LogicalResourceRef",
"@referredType": null,
"@schemaLocation": null,
"@type": "LogicalResourceRef",
"href": null,
"id": null,
"name": null,
"value": ""
}
],
"partyAccount": {
"id": "0.0.0.1+-account+173981",
"href": null,
"description": null,
"name": "Rachel Douglas",
"status": "active",
"@baseType": "PartyAccountRef",
"@schemaLocation": null,
"@type": "PartyAccountRef",
"@referredType": null
},
"product": [
{
"id": "aliasIMEIBase_0010",
"href": null,
"name": "ServiceTelcoGsmTelephony",
"@baseType": "ProductRef",
"@schemaLocation": null,
"@type": "ProductRef",
"@referredType": null
}
],
"relatedParty": [],
"remainingValue": {
"amount": 260.0,
"units": "USD",
"@baseType": "Quantity",
"@schemaLocation": null,
"@type": "Quantity"
},
"reservedValue": {
"amount": 0.0,
"units": "USD",
"@baseType": "Quantity",
"@schemaLocation": null,
"@type": "Quantity"
},
"status": "ACTIVE",
"usageType": "MONETARY",
"validFor": {
"endDateTime": null,
"startDateTime": "2026-04-27T12:30:00+05:30",
"@baseType": "TimePeriod",
"@schemaLocation": null,
"@type": "TimePeriod"
},
"@baseType": "Bucket",
"@schemaLocation": "",
"@type": "Bucket"
}
]