Load Funds to Card assigned to User

This api Load Funds to Card assigned to User


REST


Headers

FieldsTypeDescriptionExampleO/MData Management
URLstring/v1/comp_emp_txns/M
METHODstringPOSTM
content-typestringJSONapplication/jsonM
x-access-tokenstringSession token with validitytokenM

Request

{
        "amount": 45,
        "amount_type": "expense",
        "employee": "5936b287ef91b201008c559f"

}


Success

{
  "tags": [],
  "_id": "5ff834fb1f9ffe8f107fecfe",
  "company": "5cb59c503283cf58e011a700",
  "amount": 10,
  "amount_type": "expense",
  "employee": "5cb59c503283cf5b8911a704",
  "txn_type": "topup",
  "approval_status": "internally_approved",
  "initiated_ts": 1610102011,
  "comments": [],
  "__v": 0
}

Error

{
    "error": "Not enough funds"
}

amount_type can be 'expense','food','fuel'