Create Note
Attach a note to an entity.
An entity can hold at most one note, so creating a second note for the same
entity_id returns 409. Use the update endpoint to change existing content.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
account_id
Headers
Idempotency-Key
A unique key for this request. A retry with the same key returns the first response instead of running again, for 24 hours. Keys are per caller.
Request
This endpoint expects an object.
content
The note's text content. No length limit.
entity_id
ID of the entity to attach the note to. Any entity's ID is accepted. Maximum 255 characters.
Response
Successful Response
id
Unique identifier for the note, prefixed note_.
content
The note's text content.
entity_id
ID of the entity this note is attached to, such as a customer (cus_...), subscription (sub_...), or invoice (in_...).
created_at
When the note was created (UTC).
updated_at
When the note was last modified (UTC). Equals created_at until the first update.
Errors
409
Conflict Error
422
Unprocessable Entity Error