Add Funds to Company Wallet
this api makes a request to deposit funds into the company pool balance.
REST
Headers
Fields | Type | Description | Example | O/M | Data Management |
---|---|---|---|---|---|
URL | string | /v1/company_transactions | M | ||
METHOD | string | POST | M | ||
content-type | string | JSON | application/json | M | |
x-access-token | string | Session token with validity | token | M | company 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": ""
}