Load Funds to Card assigned to User
This api Load Funds to Card assigned to User
REST
Headers
Fields | Type | Description | Example | O/M | Data Management |
---|---|---|---|---|---|
URL | string | /v1/comp_emp_txns/ | M | ||
METHOD | string | POST | M | ||
content-type | string | JSON | application/json | M | |
x-access-token | string | Session token with validity | token | M |
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'