Adding metadata to an invoice
object can provide additional structured information and context. For example, after finalizing the invoice, you can define a key-value pair in the invoice
object to store your local invoice ID from your government invoicing system. To do so:
- Navigate to the Invoice detail page to target a specific invoice;
- Click on “Add metadata”;
- Add the information (kindly note, a key cannot exist without its corresponding value, and vice versa); and
- Save to confirm.
The invoice metadata will be included in the invoice
object but will not be displayed on the PDF file.
To edit metadata from the user interface:
- Navigate to the Invoice detail page to target a specific invoice;
- Click on “Edit metadata”;
- Add, edit, remove information (kindly note, a key cannot exist without its corresponding value, and vice versa); and
- Save to confirm.
To edit metadata using the API:
- In your payload, locate the key-value pair with the metadata ID you want to edit; and
- Modify the key and/or value as needed.
When editing invoice metadata through the API, please make sure to include the existing metadata in your payload to avoid removing it.
To delete a metadata key-value pair from the user interface:
- Navigate to the Invoice detail page for the specific invoice;
- Click on “Edit metadata”;
- Click on the trash icon next to the metadata you want to remove; and
- Save to confirm.
To delete a metadata key-value pair from the API:
- Do not include the metadata ID you want to delete in your payload.
- You can add up to 5 metadata key-value pairs;
- Keys must be strings of 20 characters maximum; and
- Values must be strings of 255 characters maximum.
Responses are generated using AI and may contain mistakes.