POST/entity/defund

Defund an account

Send money out of an account (a withdrawal). Posted against the program's external account.

Required Attributes

amountintegerrequired

Amount in minor units

Example: 100000

entity_idstringrequired

Account to debit

Example: "ent_treasury"

descriptionstring

Statement description

Example: "Payout"

Request
POST/entity/defund
curl --location 'https://api.ledgr.dev/v1/entity/defund' \
--header 'Authorization: {api_key}' \
--header 'Content-Type: application/json' \
--data '{
  "amount": 100000,
  "entity_id": "ent_treasury",
  "description": "Payout"
}'
Response

The resulting posted debit

{
  "status": "success"
}
Defund an account - Ledgr | Padle