Reject report
Sends a submitted report back to its submitter with a comment.
POST https://cotlet.dev/api/v1/expensify/reports/{report_id}/reject
write Confirm
Rejects the whole report and posts your comment, because Expensify requires one. The submitter can fix the report and resubmit. On a multi-level workflow, return_to chooses the submitter or an earlier approver. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| report_id string required | string | Report ID from list_reports. |
| comment string required | string | Reason shown to the submitter. |
| return_to string | string | Email of the submitter or an earlier approver. Default: the submitter. |
Request
curl -X POST https://cotlet.dev/api/v1/expensify/reports/report_8c41d2/reject \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"comment":"comment"}' result = client.call("expensify", "reject_report", {"report_id":"report_8c41d2","comment":"comment"}) const result = await cotlet.call('expensify', 'reject_report', {"report_id":"report_8c41d2","comment":"comment"}); cotlet call expensify reject_report --data '{"report_id":"report_8c41d2","comment":"comment"}' Example response
{
"report_id": "R10081",
"status": "rejected",
"returned_to": "Marcus Lee",
"comment": "Chipotle USD 38.00 has no receipt. Please attach it and resubmit."
}