Skip to content

Wadiah Rail

Safekeeping deposit contract endpoints for Islamic custody and savings accounts.

The Wadiah rail provides:

  • Safekeeping deposit contract creation and management
  • Wadiah Yad Amanah (pure safekeeping) support
  • Wadiah Yad Dhamanah (guaranteed custody with permission to use) support
  • Hibah (discretionary gift) distribution to depositors

Wadiah is a safekeeping contract where one party entrusts assets or funds to another for custody. In its basic form (Yad Amanah), the custodian holds the deposit as a trust and is not liable for loss except in cases of negligence. The custodian may not use the deposited funds.

In Wadiah Yad Dhamanah, the depositor grants the custodian permission to use the funds. The custodian guarantees the full return of the deposit and may, at their sole discretion, offer a gift (Hibah) to the depositor as a token of appreciation. This form is widely used for Islamic savings and current accounts.

The key distinction from conventional deposits is that no return is promised or contractually obligated. Any gift from the custodian is entirely voluntary and cannot be stipulated as a condition of the contract.

POST /v1/rails/wadiah/contracts
const contract = await iof.wadiah.create({
wadiah_type: "yad_dhamanah",
description: "Savings account deposit",
deposit_amount: 50000,
currency: "USD",
depositor_id: "cpty_customer",
custodian_id: "cpty_institution",
permissions: {
use_funds: true,
commingling: true,
},
});

Response:

{
"id": "wdh_xyz",
"type": "wadiah",
"subtype": "yad_dhamanah",
"status": "DRAFT",
"deposit_amount": 50000,
"currency": "USD",
"guaranteed_return": 50000,
"hibah_history": [],
"created_at": "2024-01-15T10:30:00Z"
}
GET /v1/rails/wadiah/contracts/:id
GET /v1/rails/wadiah/contracts
POST /v1/rails/wadiah/contracts/:id/execute
POST /v1/rails/wadiah/contracts/:id/distribute-hibah
POST /v1/rails/wadiah/contracts/:id/withdraw
TypeDescription
yad_amanahPure safekeeping, custodian may not use funds
yad_dhamanahGuaranteed custody, custodian permitted to use funds
StatusDescription
DRAFTContract created, pending review
PENDING_SHARIAH_REVIEWAwaiting Shariah board approval
SHARIAH_APPROVEDApproved by Shariah board
ACTIVEDeposit held in custody
COMPLETEDFull deposit returned to depositor
TERMINATEDContract terminated early
  • The custodian must guarantee the full return of the deposit in Yad Dhamanah
  • No return or profit may be promised or stipulated in the contract
  • Hibah (gift) is entirely at the custodian’s discretion and cannot be pre-agreed
  • Regular or patterned Hibah payments must not create an expectation of return
  • In Yad Amanah, the custodian is not liable for loss except due to negligence
  • The depositor may withdraw funds at any time without penalty
EventDescription
wadiah.contract.createdContract created
wadiah.contract.executedDeposit placed in custody
wadiah.hibah.distributedDiscretionary gift given
wadiah.withdrawal.processedWithdrawal processed
wadiah.contract.completedFull deposit returned