Ledger balances

Update balance identity

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

PUT/balances/{balance_id}/identity

Use blnk.ledger_balances.update_identity to link a balance to an identity.

Call the method

response = blnk.ledger_balances.update_identity(
  "bln_5ce86029-3c2e-4e2a-aae2-7fb931ca4c4f",
  {
    "identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
  },
)
FieldTypeDescription
balanceIdstrBalance ID to update.
identity_idstrIdentity 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
messagestrConfirmation from Core.