To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /json/reply/CommissionTestCaseRequest HTTP/1.1
Host: api2.exactmedicare.com
Content-Type: application/json
Content-Length: length
{"Id":0,"CommissionTestCase":[{"Id":0,"Name":"String","PolicyProductId":0,"SourceTypeId":0,"PlanType":"String","P2PTypeId":0,"GrossCommission":0,"WritingIndex":0,"ProcessDate":"0001-01-01T00:00:00.0000000","AppSubmitDate":"0001-01-01T00:00:00.0000000","EffectiveDate":"0001-01-01T00:00:00.0000000","InsuredAnnuitant":"String","CommissionPolicyId":0,"ControlledBusiness":false,"GrossSign":"String","Signature":"String","Status":"String","SourceCommissionRecordId":0,"ApprovedBy":"String","ApprovedDate":"0001-01-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","DateModified":"0001-01-01T00:00:00.0000000","Levels":[{"Id":0,"CommissionTestCaseId":0,"Position":0,"AgentLevelId":0,"ExpectedAmount":0}]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String"}]},"CommissionTestCase":[{"Id":0,"Name":"String","PolicyProductId":0,"SourceTypeId":0,"PlanType":"String","P2PTypeId":0,"GrossCommission":0,"WritingIndex":0,"ProcessDate":"0001-01-01T00:00:00.0000000","AppSubmitDate":"0001-01-01T00:00:00.0000000","EffectiveDate":"0001-01-01T00:00:00.0000000","InsuredAnnuitant":"String","CommissionPolicyId":0,"ControlledBusiness":false,"GrossSign":"String","Signature":"String","Status":"String","SourceCommissionRecordId":0,"ApprovedBy":"String","ApprovedDate":"0001-01-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","DateModified":"0001-01-01T00:00:00.0000000","Levels":[{"Id":0,"CommissionTestCaseId":0,"Position":0,"AgentLevelId":0,"ExpectedAmount":0}]}]}