Skip to content
campaiDeveloper
campai.com

Finance

POST/{organizationId}/finance/receiptInbox/captureFile

Mark receipt inbox file as captured

Moves a file of the receipt inbox's folder into its subfolder for captured files once a receipt was made of it, so the folder only holds what is still to do. The subfolder is made when missing. A file anywhere else stays where it is

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • receipt.insert or posting.insert

Request

Path parameters

  • organizationIdidrequired

Body

Content-Type: application/json

  • fileIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/finance/receiptInbox/captureFile' \
  --header 'X-API-Key: YOUR_API_KEY'

No request that worked has been recorded yet, so the body is not shown.

Response

200 Successful response

Content-Type: application/json

  • movedboolean
Response200
{
  "moved": true
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.