Limits
- At most 50 keys per credit note.
- Keys up to 100 characters.
- Values up to 255 characters. Values must be strings or
null. - The credit note must be finalized.
Add or update metadata
Add new keys or update existing values. Keys you do not include stay unchanged. In the example below,synced_to_erp stores the string "true", not a boolean.
- Dashboard
- API
- Open the credit note detail page.
- Click Add metadata or Edit metadata.
- Enter your key-value pairs.
- Click Save.
Replace all metadata
Replacing metadata removes keys you do not include.POST replaces the whole set. Sending an empty object or omitting metadata clears all existing keys. With PUT, either leaves the existing metadata unchanged. The top-level metadata value cannot be null; individual values can be.
Delete metadata
Delete one key to remove a single reference, or delete all metadata to clear the credit note’s metadata.- Dashboard
- API
- Open the credit note detail page.
- Click Edit metadata.
- Click the trash icon next to the key.
- Click Save.
Retrieve metadata
Retrieve the credit note withexpands[]=metadata to include its metadata.
Metadata API operations
Metadata API operations
The metadata endpoints return only the metadata object, or
null. To read metadata with the credit note, retrieve it with expands[]=metadata.Next steps
Credit notes
Issue, estimate and void credit notes.
Merge metadata (API)
Request and response schema.
Replace metadata (API)
Request and response schema.
Delete a metadata key (API)
Request and response schema.