Bucket Zero EDRs

Purpose

Bucket zero EDRs are generated by the OCS “engine” subsystem when a bucket is used during debit processing in the engine and the end value of the bucket is zero.

An OCS bucket zero EDR is identified by the type equal bucket-zero. The slee-session-id field will link the zero event to the action that caused the bucket’s value to drop to zero.

Example

{
  "type": "bucket-zero",
  "node-name": "marc",
  "event-timestamp": "2023-03-25T23:50:11.642578200Z",
  "correlation-info": {
    "slee-session-id": "e3755d7e-2e3b-4790-8ec8-b2e89976933e",
    "slee-event-id": "1/1"
  },
  "source-info": {
    "source-service": "BasicEngineTest",
    "source-system": "unit.ocs.engine"
  },
  "status-message": "",
  "account-info": {
    "account-id": "BDTestAccount0cceae0f-6634-4790-8ddb-269a3abcd3bc"
  },
  "bucket-id": "rHWOrJ",
  "bucket-info-current": {
    "bucket-id": "rHWOrJ",
    "bucket-amount": 0,
    "bucket-unit": "microcents"
  }
}

Fields

Field Type Presence Description
account-info Object Always Information on the wallet the bucket was attached to.
account-info.account-id String Always The unique ID of the wallet that the bucket was attached to.
bucket-id String Always The ID of the bucket from the wallet. This will always be unique within the wallet itself.
bucket-info-initial Object Always Information of the bucket that was zeroed was removed from the wallet.

In the bucket-info-initial object the bucket’s details will be included. This includes all the information that would normally be retrieved about the bucket through the OCS API.