# DAML Json API using postmann

**URL:** <https://forum.canton.network/t/daml-json-api-using-postmann/3039>\
**Category:** App Development\
**Created:** [August 27, 2021, 6:27am UTC](https://forum.canton.network/t/daml-json-api-using-postmann/3039 "2021-08-27T06:27:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bilal\_Ahmad](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bilal_ahmad/32/2420_2.png) [@Bilal\_Ahmad](https://forum.canton.network/u/Bilal_Ahmad)\
**Post date:** [August 27, 2021, 6:27am UTC](https://forum.canton.network/t/daml-json-api-using-postmann/3039/1 "2021-08-27T06:27:02Z")

</div>

i have an embedded structure for my data model like in the screenshot. ![Screenshot from 2021-08-27 11-22-49](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/b/b26f4f71f97ec286784ee3946c3d85f7db0c256c.png)

When i use the JSON api to create record for this data model i get an error for the embedded fields.

“JsonError: spray.json.DeserializationException: Can’t read as DamlLfRecord 6d43b4207afb31499b1f40d235576a921fef77ec2f17c361f42ba78ce3e2ec51:Certificate:TestCenter, missing field ‘organizationID’”

Postmann screenshot:

 ![Screenshot from 2021-08-27 11-26-39](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/a/ac12613f6dc83e37dabfdd63cd21c2b2733b9d7e.png)

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [August 27, 2021, 7:22am UTC](https://forum.canton.network/t/daml-json-api-using-postmann/3039/2 "2021-08-27T07:22:46Z")

</div>

Can you show us the definition of the types you referenced in particular `TestCenter`, `ServiceResult` and `Supply`?

---

<div class="post-metadata">

**Author:** ![Bilal\_Ahmad](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bilal_ahmad/32/2420_2.png) [@Bilal\_Ahmad](https://forum.canton.network/u/Bilal_Ahmad)\
**Post date:** [August 27, 2021, 7:31am UTC](https://forum.canton.network/t/daml-json-api-using-postmann/3039/3 "2021-08-27T07:31:53Z")

</div>

![Screenshot from 2021-08-27 12-30-56](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/4/4f46397eb56f9b91743b13200cf4b4afbf7bf195.png)

Yes you can view that in above screenshot. @cocreature

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [August 27, 2021, 9:19am UTC](https://forum.canton.network/t/daml-json-api-using-postmann/3039/4 "2021-08-27T09:19:42Z")

</div>

You have a typo in your JSON :`organiztionID` should be `organizationID`.
