Skip to main content
Add metadata to link a credit note to records in your other systems, such as an ERP document ID. Each entry has a key and a value.

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.
  1. Open the credit note detail page.
  2. Click Add metadata or Edit metadata.
  3. Enter your key-value pairs.
  4. 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.
  1. Open the credit note detail page.
  2. Click Edit metadata.
  3. Click the trash icon next to the key.
  4. Click Save.

Retrieve metadata

Retrieve the credit note with expands[]=metadata to include its metadata.
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.