Last updated

Send money

Money can be sent using differents transaction types :

Inter-ledger

To send money using inter-ledger transaction, use the "Create an inter-ledger transaction" endpoint.

You have to provide the Ledger which will be debited (ledgerFromId), the ledger which will be credited (ledgerToId) and the(amount).

You can also optionally provide a reference for this transaction.

NameTypeDescription
ledgerFromIdstring (uuid)The unique identifier of the source ledger.
ledgerToIdstring (uuid)The unique identifier of the destination ledger.
amountnumberThe amount to be transferred.
referencestring [0 .. 18] characters ^[.'a-zA-ZÀ-ÿ0-9,? ]*$A reference for the transfer. Can contain letters, numbers, spaces, and specific characters.

Payload Example :

{
  "ledgerFromId": "b595c981-8a0f-4604-a66c-209d65193394",
  "ledgerToId": "7280fced-5334-43dd-8913-9f06bb46b488",
  "amount": 15.21,
  "reference": "string"
}

For a transaction with a decimal, please use "." instead of ",".

Answer will contains only the id of the created transaction :

{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

You can then fetch this transaction to check the status. Additionaly, if you suscribed to webhhooks, you will be notified of any change in the transaction status. You can find the complete catalog of webhooks [here]. (./webhooks.mdx)

Transaction to a beneficiary

To send money to an extrernal beneficiary, use the "Create a transaction to a beneficiary" endpoint.

Pay attention to send the same currency as the beneficiary account currency.

You have to provide the Ledger which will be debited (ledgerFromId), the beneficiary which will be credited (beneficiaryId) and the (amount). If you want the transaction to be instant (using SEPA Instant for instance), you have to set allowFastPayment to true.

You can also optionally provide a reference for this transaction.

If the beneficiary account is a ledger held at LinkCy, an inter-ledger transaction will be made instead.

NameTypeDescription
amountnumberThe amount to be transferred.
beneficiaryIdstring (uuid)The unique identifier of the beneficiary.
ledgerFromIdstring (uuid)The unique identifier of the source ledger.
referencestring [0 .. 18] characters ^[.'a-zA-ZÀ-ÿ0-9,? ]*$A reference for the transfer. Can contain letters, numbers, spaces, and specific characters.
allowFastPaymentboolean
Default: true
If you want the transaction to be instant
allowInterLedgerboolean
Default: true
If Linkcy detects a possible inter-ledger operation, it will automatically perform it. Set this field to false if you do not want inter-ledger operations.

Answer will contains only the id of the created transaction :

{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

You can then fetch this transaction to check the status. Additionaly, if you sunscribed to webhhooks, you will be notified of all change in the transaction status. Please find the complete catalog of webhooks here.