Send an expense report
Sends a single expense report to its recipient. Validation problems do not refuse the send, they come back as warnings with a 200, which is how this endpoint has always behaved.
This is its own path rather than an action on the report resource because it carries its own permission: it is available to roles that may send a report without being allowed to edit it.
curl --request PUT \
--url https://stage-api.findity.com/api/v1/admin/organizations/{organizationId}/reports/{reportId}/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"skipAttestation": false
}
'{
"result": "success",
"warnings": []
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the organization. String, UUID format (32-character hexadecimal). Required. UUID without dashes (32-character hex string)
^[0-9a-fA-F]{32}$"05b8daba9ba14a49846fe77883248cf0"
The id of the expense report to retrieve UUID without dashes (32-character hex string)
^[0-9a-fA-F]{32}$Query Parameters
Locale the warnings in the response are translated to. String, language variant such as sv_SE. Optional, the request locale is used when omitted.
Body
Request body for sending a single expense report.
Set to true to send the report without attestation. Boolean. Optional, defaults to false.
Which flavour of send this is. String, enum. Accepted values: resend, resend-with-approval, resend-without-approval, return-report-to-user, forward-without-approval. Optional, omit it for a plain send.
resend, resend-with-approval, resend-without-approval, return-report-to-user, forward-without-approval Message to include with the report, used by the resend and return flavours. String, no maximum length is enforced. Optional.
Response
The report was sent, possibly with validation warnings
Result of sending a single expense report. Validation problems are reported as warnings rather than refusing the send, which is how the endpoint has always behaved.
curl --request PUT \
--url https://stage-api.findity.com/api/v1/admin/organizations/{organizationId}/reports/{reportId}/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"skipAttestation": false
}
'{
"result": "success",
"warnings": []
}
