Create deposits
POST {{baseUrl}}/ledgers/:ledgerId/funding/deposits
Creates new deposit transactions.
A deposit transaction is a transaction involving the System:Funding
account as the sender and the target deposit account as the recipient.
The transaction must have a on-chain corresponding transaction for the same amount. The on-chain transaction hash must be provided.
This endpoint supports bulk insert. All transactions are discarded in case of a problem with one transaction.
Allowed roles: EDITOR
Request Body
{"assetId"=>"BTC", "fiatCurrency"=>"USD", "fiatValue"=>"1000.57", "id"=>"36161d45-1389-44f6-9100-2c5dc483d18d", "toAccountId"=>"account-2", "txHash"=>"0xd319194b1c9a34254ec1f23e8196f97b9c9af4542bb93ad3c807db001bb8ba93", "value"=>"0.05", "bookingDate"=>"2022-07-25T15:00:00.000Z", "valueDate"=>"2022-07-25T15:00:00.000Z", "euroValue"=>"1000.57", "fiatTotalCost"=>"1000.57", "reference"=>"reference of the transaction"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
tangany-version | number | (Required) API version | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"id":"elit id proident"}