Ledger balances

Update balance identity

Update the identity associated with a balance with the Java SDK.

PUT/balances/{balance_id}/identity

Use blnk.ledgerBalances().updateIdentity for this operation.

Call the method

String balanceId = "bln_5ce86029-3c2e-4e2a-aae2-7fb931ca4c4f";
String identityId = "idt_073f7ffe-9dfd-42ce-aa50-d1dca1788adc";

ApiResponse<JsonNode> response = blnk.ledgerBalances().updateIdentity(
    balanceId,
    UpdateBalanceIdentity.create().identityId(identityId));
FieldTypeDescription
balanceIdStringBalance ID to update.
identity_idStringIdentity ID to link to the balance.

Confirm the link

On success, Core returns a confirmation message. Fetch the balance with get balance to verify identity_id is set.

Response

{
  "message": "Balance identity updated successfully"
}
FieldTypeDescription
messageStringConfirmation from Core.