Ledger balances
Update balance identity
Update the identity associated with a balance with the Java SDK.
PUT
/balances/{balance_id}/identityUse 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));
| Field | Type | Description |
|---|---|---|
balanceId | String | Balance ID to update. |
identity_id | String | Identity 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"
}
| Field | Type | Description |
|---|---|---|
message | String | Confirmation from Core. |