Add custom metadata fields to package.
Monday, April 26, 2021 at 04:18pmWhen creating a new package, is it possible to add custom metadata fields that we can get back in the webhook response? For instance, if I want to attach a custom ID to the package I just created, and then store specific data about that package in my own DB. When I receive the "package completed" webhook notification I would like to be able to grab that custom ID from the webhook body and search my own database.
Reply to: Add custom metadata fields to package.
Monday, April 26, 2021 at 06:39pmHi Namkai,
Unfortunately for the current implementation, the webhooks can't carry custom metadata. You'd have to store the custom data in the package JSON, either at the package level "data", or "documents" / "roles" level "data", and invoke an extra call (GET /api/packages/{packageId}) to grab the value(s).
Duo