Confirmation of the credit transfer from one account to another

Description

Confirms the credit transfer from one account to another

Request code

OC_CONFIRMSENDCREDITS

Request errors

Request code Code meaning Explanation
QE_LOW_BALANCE Low balance
QE_INVALID_RECIPIENT Invalid recipient
QE_INVALID_CODE Invalid code

Request body

"Action":<OC_GETWHOLEFOLDER>,
{
 "Action":<OC_CONFIRMSENDCREDITS>,
  "Data":{
    "Token":<MyToken>,
   "Confirm code":<MyAmount>
  }
}

Response body

{
 "Status":"Success",
 "Data":{
  "Operation ID":<MyOperationID>,
  "Balance":<MyBalance>
  "Transfer amount":<MyTransferAmount>
 }
}

,where:

  • <MyOperationID> - operation identifier
  • <MyBalance> - the sender balance after transaction
  • <MyTransferAmount>- the number of credits accrued to the recipient by transaction

Additionally

  • When transferring credits system debits from the account of the sender <MyAmount>*(1+TransferPercent/100) credits amount.
  • TransferPercent - variable, descripted in system constants
  • The transfer of credits from sender's balance could be confirmed by both sender and recepient.
  • Field «Balance» is displayed in the response only if the operation is confirmed by the sender.