Skip to main content
POST
/
billing
/
embed-payment
/
{patient_id}
Create Embed Payment Config
curl --request POST \
  --url https://api.decodahealth.com/billing/embed-payment/{patient_id} \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
{
  "sessionKey": "<string>",
  "payinConfigId": "<string>",
  "sandbox": true,
  "patient": {
    "id": "<string>",
    "firstName": "<string>",
    "lastName": "<string>"
  },
  "fee": 0
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

patient_id
string
required

Query Parameters

amount_cents
integer
required
is_surcharged
boolean
default:true

Response

Successful Response

Response schema for embed payment configuration.

sessionKey
string
required
payinConfigId
string
required
sandbox
boolean
required
patient
PublicPatient · object
required
fee
integer
default:0