Notes
Attach freeform text notes to any entity in PaymentKit — customers, subscriptions, invoices, and more.
Overview
Notes let you store a single free-text annotation on any PaymentKit entity. Unlike custom fields, notes are unstructured and unconstrained — a plain string you can use for internal comments, support context, or anything your team needs.
Each entity can have at most one note per account. Attempting to create a second note for the same entity within the same account returns 409 Conflict.
You can retrieve a note either by its own ID (GET /api/{account_id}/notes/{note_id}) or directly by the entity it is attached to (GET /api/{account_id}/notes/by-entity/{entity_id}).
Supported entities
Notes can be attached to any entity using its external ID. The table below shows common examples; because entity_id is a free-form string field, any entity’s external ID is accepted.
Pass the entity’s external ID as entity_id when creating or looking up a note.
Create a note
POST /api/{account_id}/notes/
Creates a new note linked to an entity. Returns 200 OK with the created note on success.
The response includes the note’s id, content, entity_id, created_at, and updated_at fields.
If a note already exists for the entity, the request returns 409 Conflict.
See Create Note for the full API reference.
Get a note
By entity
GET /api/{account_id}/notes/by-entity/{entity_id}
Retrieves the note attached to the given entity. Returns 404 if no note exists.
See Get Note by Entity for the full API reference.
By note ID
GET /api/{account_id}/notes/{note_id}
Retrieves a note directly by its ID. Returns 404 if the note does not exist.
See Get Note for the full API reference.
Update a note
PUT /api/{account_id}/notes/{note_id}
Replaces the note’s content. The entire content field is replaced — there is no partial update.
Returns 404 if the note does not exist.
See Update Note for the full API reference.
Delete a note
DELETE /api/{account_id}/notes/{note_id}
Deletes the note. Returns 204 No Content on success, 404 if not found.
After deletion, you can create a new note on the same entity.
See Delete Note for the full API reference.