Create Transfer
Moves balance between two members of the same owner. asset, amount, sender_id and recipient_id are all required.
POST
/api/transfersAuth: RequiredRequest Body
assetstringRequiredAsset code.
amountstring | numberRequiredPositive decimal amount. Accepted as a string or a number.
sender_idnumberRequiredThe member the funds come from.
recipient_idnumberRequiredThe member the funds go to.
Response
The transfer. Both balances are already updated when this returns.
idnumberRequiredThe transfer id.
amountstringRequiredThe amount moved.
asset_idstringRequiredAsset code.
sender_idnumberRequiredThe member debited.
recipient_idnumberRequiredThe member credited.
updated_atstringRequiredWhen the record last changed.
created_atstringRequiredWhen the record was created.
Errors
Beyond the shared errors:
| Code | Meaning |
|---|---|
1001 | sender_id, recipient_id or asset is invalid or not yours |
1002 | The sender does not have enough money |
2058 | The amount is not positive, or one of the two members has no account in that asset |