POST Allocate Funds

Call this API to allocate funds to a contract.

Request URL #

https://api-sandbox.smartcurrencyexchange.com/v4/Fund/AllocateFunds

Field In Format Description Required
Authorization header string Authentication token Mandatory
fxId body integer The fxId of the contract you to allocate funds to Mandatory
currency Body string Three-digit currency code Mandatory
amountToAllocate body decimal The amount to allocate to the contract Mandatory

Request Sample #

{
  "fxId": 1417666,
  "currency": "gbp",
  "amountToAllocate":100
}

Response Sample #

{
  "status": "OK",
  "message": "",
  "singleObject": "Funds has been allocated successfully",
  "objectCollection": []
}

Response Codes #

HTTP Status Description Message
200 Success
401 Token Expired or invalid token Token is no longer valid, please login again.
401 Missing token Please add ‘Authorization’ to your request header.
400 Fx Contract Id Couldn’t find an Fx Contract that matches to the Id that you entered
400 Amount to allocate format is incorrect The amount is not in a valid format
400 Fx Contract doesn’t belong to your account The Fxcontract Id you entered is not for this account. Please double check
400 Allocation failed Funds allocation failed! Please make sure that your fx contract is ready to do the allocation, and you have enough funds available in your account to do the allocation
400 No unallocated funds No funds available

Submit a Comment

Your email address will not be published. Required fields are marked *

Smart Currency Fintech
1 Lyric Square,
Hammersmith,
London,
W6 0NB

[email protected]
020 7898 0500