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

Parameters: reject_report
NameTypeDescription
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
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"}'
Python
result = client.call("expensify", "reject_report", {"report_id":"report_8c41d2","comment":"comment"})
Node.js
const result = await cotlet.call('expensify', 'reject_report', {"report_id":"report_8c41d2","comment":"comment"});
CLI
cotlet call expensify reject_report --data '{"report_id":"report_8c41d2","comment":"comment"}'

Example response

JSON

{
  "report_id": "R10081",
  "status": "rejected",
  "returned_to": "Marcus Lee",
  "comment": "Chipotle USD 38.00 has no receipt. Please attach it and resubmit."
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.