Skip to content
campaiDeveloper
campai.com

Finance

GET/{organizationId}/finance/receiptInboxReads only

Get receipt inbox

Returns the organization's receipt inbox: the email address whose PDF, JPEG and PNG attachments land in a Files folder, from where they become receipts, the senders allowed to use it and the latest emails it left out. The inbox is null while it is off

Permissions

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

Permission checks in detail
Required permissions
  • financesSettings.read

Request

Path parameters

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

Response

200 Successful response

Content-Type: application/json

  • availableboolean
  • inboxobjectnullable
    4 properties
    • allowedSendersstring[]

      at most 100 items · each 3–254 characters

    • rejectionsobject[]

      at most 20 items

      5 properties
      • receivedAtstring · date-time
      • fromstring

        at most 320 characters

      • subjectstring

        at most 200 characters

      • reasonstring
        spam sender noFiles tooLarge tooManyFiles dailyLimit storageLimit
      • fileNamestringnullable

        at most 128 characters

    • addressstring
    • folderobjectnullable
      2 properties
      • _idid
      • namestring

        1–128 characters

Response200
{
  "available": true,
  "inbox": {
    "allowedSenders": [
      "string"
    ],
    "rejections": [
      {
        "receivedAt": "2026-06-15T22:30:00Z",
        "from": "string",
        "subject": "string",
        "reason": "spam",
        "fileName": "string"
      }
    ],
    "address": "string",
    "folder": {
      "_id": "000000000000000000000001",
      "name": "string"
    }
  }
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.