Add Funds to Company Wallet

this api makes a request to deposit funds into the company pool balance.


REST


Headers

FieldsTypeDescriptionExampleO/MData Management
URLstring/v1/company_transactionsM
METHODstringPOSTM
content-typestringJSONapplication/jsonM
x-access-tokenstringSession token with validitytokenMcompany admin token

Request

{
    "company": "5cb46b73340695fef4200011",
    "amount": "1",
    "details": {
      "transaction_id": "60ffb8be0b99792d5ab30c32",
      "type": "OTHERS"
    }
}

Success

{
  "_id": "60ffb8c1930fd198e7fe5f56",
  "company": "5cb46b73340695fef4200011",
  "amount": 1,
  "details": {
    "transaction_id": "60ffb8be0b99792d5ab30c32",
    "type": "OTHERS"
  },
  "paysack": "default",
  "approval_status": "pending_approval",
  "initiated_ts": 1627371713,
  "__v": 0
}

Error

{
    "error": ""
}