Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

400 Bad Request- Financial Transaction for Credit Cards only

36 views
Skip to first unread message
Assigned to Fenil....@cerner.com by me

Bomi Kim

unread,
Oct 1, 2021, 10:20:19 PM10/1/21
to Cerner FHIR Developers
Hello,

Currently trying to test out the Financial Transaction call. I am able to successfully post payments for checks and cash using the sample body provided on the Cerner R4 page.

I am only able to get a 400 Bad Request when attempting to use the Financial Transaction call to post credit card payments. I've tried to change the "identifier" to a unique value, and I've also confirmed all the required fields are present.

Please let me know if there's something I may be missing.

X-Request-Id: f0fbc324-9428-45c1-8bb2-67e5795aa814

and this is the body: 

{
  "resourceType": "Basic",
  "code": {
    "coding": [
      {
        "code": "FinancialTransaction"
      }
    ]
  },
  "identifier": [
    {
      "value": "b8c8e37558b6409db0b45a5f607c2d02",
      "use": "usual"
    }
  ],
  "extension": [
    {
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "payment",
            "system": "http://terminology.hl7.org/CodeSystem/payment-type"
          }
        ]
      }
    },
    {
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "CCCA",
            "display": "Credit Card",
            "system": "http://terminology.hl7.org/CodeSystem/v2-0570",
            "isPrimary": true
          }
        ],
        "text": "Credit Card"
      }
    },
    {
      "valueMoney": {
        "value": 12.0,
        "currency": "USD"
      }
    },
    {
      "valueDate": "2022-01"
    },
    {
      "valueString": "4321"
    },
    {
      "valueString": "visa"
    },
    {
      "extension": [
        {
          "url": "target",
          "valueReference": {
            "reference": "Encounter/97953536"
          }
        },
        {
          "url": "amount",
          "valueMoney": {
            "value": 12.0,
            "currency": "USD"
          }
        }
      ]
    },
    {
      "valueString": "0111"
    },
  ]
}


Fenil Desani (Cerner)

unread,
Oct 4, 2021, 12:11:05 PM10/4/21
to Cerner FHIR Developers
Hello,

Your JSON body is not valid syntactically.

There should be no ',' here
{
      "valueString": "0111"
    },

Thanks,
Fenil

Reply all
Reply to author
Forward
0 new messages