Skip to main content
PUT
/
balances
/
{balance_id}
/
identity
Update balance identity
curl --request PUT \
  --url http://localhost:5001/balances/{balance_id}/identity \
  --header 'X-blnk-key: <api-key>'
Use client.LedgerBalance.UpdateIdentity to link a balance to an identity.
1

Call the method

client.LedgerBalance.UpdateIdentity
result, resp, err := client.LedgerBalance.UpdateIdentity(
	"bln_5ce86029-3c2e-4e2a",
	blnkgo.UpdateBalanceIdentityRequest{
		IdentityID: "idt_3b63c8da-af29-4cc3",
	},
)
FieldTypeDescription
balanceIDstringBalance ID to update.
IdentityIDstringIdentity ID to link to the balance.
2

Confirm the link

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

Response

200 OK
{
  "message": "Balance identity updated successfully"
}
FieldTypeDescription
messagestringConfirmation from Core.

Link balances

Linking identities to balances.

Update balance identity

HTTP request and response schema.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.