Deposits
Create deposit
Changed onCreate deposit
post/deposits
Request
- Base URLhttp://localhost/app4legal/api/v2/money
- AuthOAuth 2PasswordToken URLhttp://localhost/app4legal/api/v2/core/login
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
unknown required
Response
Create Deposit
Example response
{
"message": "deposit has been created.",
"deposit": {
"id": 15,
"deposit_id": "DP15",
"organization_id": 1,
"voucher_header_id": 19,
"deposited_on": "2024-08-29",
"client_id": 1,
"client_name": "Jane Doe",
"currency_id": 234,
"exchange_rate": 1,
"foreign_amount": 250,
"trust_deposited": 250,
"payment_method": "Cash",
"ref_num": "0000015",
"description": "new deposit added",
"liability_account_id": 29,
"liability_account": "Jane Doe Trust Liability Account - LBP (9)",
"liability_account_fl1": "Jane Doe Trust Liability Account - LBP (9)",
"liability_account_fl2": "Jane Doe Trust Liability Account - LBP (9)",
"asset_account_id": 20,
"asset_account": "Trust Asset Account - USD (1)",
"asset_account_fl1": "Compte d'actifs fiduciaires - USD (1)",
"asset_account_fl2": "حساب ائتماني للعملاء - USD (1)",
"trust_fund": "1,120.00 USD"
}
}Changes
- info
endpoint added
- info