Namkai | Posts: 4

Add custom metadata fields to package.

0 votes

When 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.


Duo_Liang | Posts: 3776

Reply to: Add custom metadata fields to package.

0 votes

Hi 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


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off