I am trying to access PokitDok's eligibility API, which wants the following:
client.eligibility({
member: {
birth_date: "1970-01-25",
first_name: "Jane",
last_name: "Doe",
id: "W000000000"
},
provider: {
first_name: "JEROME",
last_name: "AYA-AY",
npi: "1467560003"
},
trading_partner_id: "MOCKPAYER"
})
The ColdFusion I have written is the following:
<cfset SubmissionFields = {
"member": {
birth_date: "1970-01-25",
"first_name": "Jane",
"last_name": "Doe",
"id": "W000000000"
},
"provider": {
"first_name": "JEROME",
"last_name": "AYA-AY",
"npi": "1467560003"
},
"trading_partner_id": "MOCKPAYER"
} />
<cfhttp url="https://platform.pokitdok.com/oauth2/token/eligibility/" username="xxxx" password="xxxx" method="post" result="httpResponse" timeout="60">
<cfhttpparam type="header" name="Content-Type" value="application/json" />
<cfhttpparam type="body" value="#serializeJSON(SubmissionFields)#">
</cfhttp>
Where do I put the client.eligibility function call (if that is what it is)?
Thanks!