Zum Inhalt

Reference

Notes

GET/api/v1/notesList notes

The notes kept on one record, newest first, with author and time, and whether the caller may change each one (only its author may).scope notes

Query

carrierrequiredone of company, person, lead, quote, order, invoice, contract, incomingInvoice, campaign, partnerWhat the note is kept on.
idrequiredstringThe record's id. A quote, order or invoice may also be named by its number, e.g. "AB-2026-0007".

Response 200

notes[]object[]
notes[].idstring
notes[].authorstring
notes[].created_atstring
notes[].edited_atstring | null
notes[].bodystring
notes[].via_agentstring | null
notes[].agentoptionalstring
notes[].yoursboolean
urlstring
Schema
{
  "type": "object",
  "properties": {
    "notes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "edited_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "type": "string"
          },
          "via_agent": {
            "type": [
              "string",
              "null"
            ]
          },
          "agent": {
            "type": "string"
          },
          "yours": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "author",
          "created_at",
          "edited_at",
          "body",
          "via_agent",
          "yours"
        ],
        "additionalProperties": false
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "notes",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/notesAdd note

Adds a note to a company, person, lead, quote, order, invoice, incoming invoice or contract, as the person this agent works for. Notes are internal: nobody outside reads them.scope notes

Body (JSON)

carrierrequiredone of company, person, lead, quote, order, invoice, contract, incomingInvoice, campaign, partnerWhat the note is kept on.
idrequiredstringThe record's id. A quote, order or invoice may also be named by its number, e.g. "AB-2026-0007".
bodyrequiredstring

Response 200

idstring
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

PATCH/api/v1/notes/{id}Update note

Replaces the text of a note the caller wrote. A note somebody else wrote stays as it is.scope notes

Path

idrequiredstringThe note's id, from list_notes.

Body (JSON)

bodyrequiredstring

Response 200

idstring
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

DELETE/api/v1/notes/{id}Delete note

Deletes a note the caller wrote. A note somebody else wrote stays.scope notes

Path

idrequiredstringThe note's id, from list_notes.

Response 200

deletedstring
Schema
{
  "type": "object",
  "properties": {
    "deleted": {
      "type": "string"
    }
  },
  "required": [
    "deleted"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.