Notes

Add, change and delete what your team knows about a customer.

A note is what your team writes about a customer, such as "Called her: wants size 42 in black." Notes aren't activity: they count in no segment or analytics. They show in the customer's timeline.

Requirements

  • An API key with the notes.write permission to add, change and delete notes, and notes.read to read them.

Requests

POST /v1/customers/{id}/notes

Request syntax

{ "text": "<TEXT>" }
PlaceholderDescriptionSample value
<TEXT>String. Plain text, up to 5,000 characters.Called her: wants size 42 in black.

Example request

curl https://api.goomzo.africa/v1/customers/cus_4hq2v9n1c8x0t6pk/notes \
  -H "Authorization: Bearer $GOOMZO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Called her: wants size 42 in black." }'

Responses

The answer is 201 with the note: its id, text, whether it was edited, whether the key can change it (canEdit), and when it was written.

Notes

  • Reading: GET /v1/customers/{id}/notes lists them, newest first, a page at a time.
  • Changing: PATCH /v1/customers/{id}/notes/{noteId} with a new text, and DELETE to remove one. Only whoever wrote a note can change or delete it: a key only its own, a person only theirs. Others are 403 not_your_note.
  • With the customer: notes are deleted with their customer, and move to the customer they're merged into.

Next steps

Last updated