Expenses API
Expenses API
API to get and update expense reports
curl -i -X GET \
'https://developer.boyahq.com/_mock/expenses/expenses?fromdate=2019-08-24&limit=50&page=1&todate=2019-08-24' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "docs": [ { … } ], "total": 0, "limit": 0, "page": 0, "pages": 0 }
curl -i -X GET \
'https://developer.boyahq.com/_mock/expenses/expenses/review?fromdate=2019-08-24&limit=50&page=1&todate=2019-08-24' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "docs": [ { … } ], "total": 0, "limit": 0, "page": 0, "pages": 0 }
curl -i -X GET \
'https://developer.boyahq.com/_mock/expenses/expenses/accepted?fromdate=2019-08-24&limit=50&page=1&todate=2019-08-24' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "docs": [ { … } ], "total": 0, "limit": 0, "page": 0, "pages": 0 }
curl -i -X GET \
'https://developer.boyahq.com/_mock/expenses/expenses/rejected?fromdate=2019-08-24&limit=50&page=1&todate=2019-08-24' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "docs": [ { … } ], "total": 0, "limit": 0, "page": 0, "pages": 0 }
curl -i -X GET \
'https://developer.boyahq.com/_mock/expenses/expenses/recovered?fromdate=2019-08-24&limit=50&page=1&todate=2019-08-24' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "docs": [ { … } ], "total": 0, "limit": 0, "page": 0, "pages": 0 }
curl -i -X GET \
'https://developer.boyahq.com/_mock/expenses/expenses/refunded?fromdate=2019-08-24&limit=50&page=1&todate=2019-08-24' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "docs": [ { … } ], "total": 0, "limit": 0, "page": 0, "pages": 0 }
curl -i -X PATCH \
https://developer.boyahq.com/_mock/expenses/expenses/sync_status \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '[
{
"transaction_ref": "string"
}
]'