Key containing Decimal not returning contract

RyanMedlen
Tue, 21 Mar 2023 15:50:28 +0000
App Development

We are using the fetch endpoint in the json api to pull a contract by the key. It seems like when the key contains a record it doesn’t work . Below is the relevant parts. Is there a different way to pass a record in the query?

This works

    "_4": {
                    "gender": "Female",
                    "riskClass": "EliteNonTobacco",
                    "state": null,
                    "coverageBand": null
                }

This doesn’t

 "_4": {
    "gender": "Female",
    "riskClass": "SubstandardTobacco",
    "state": null,
    "coverageBand": {
         "min": "900000.0",
         "max": null
    }
  }

Both match a key exactly as it shows in DAML hub on the contract. Thanks.

3 posts - 2 participants