> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Charge

> Documentation for the Create Charge action for Hint Health

![images/hint\_health.svg](https://mintcdn.com/morfhealth/KAegzeO2rhNgE8aD/images/hint_health.svg?fit=max\&auto=format\&n=KAegzeO2rhNgE8aD\&q=85\&s=73ef426b5efecb68f325efcea1719198)

# Parameters

**Action** `Parameters`

**parameters**

**Charge Item** `string (Charge Item)` *required*

`ID`
This field maps to the destination API `charge_item_id` field.

**Patient** `string`

`ID`
This field maps to the destination API `patient` field.

**Quantity** `int64`

This field maps to the destination API `quantity` field.

**Price** `float64 (double)`

This field maps to the destination API `price` field.

**Description** `string`

This field maps to the destination API `description` field.

**Date** `string`

This field maps to the destination API `date` field.

**Category** `string`

`ID`
This field maps to the destination API `category` field.

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "category": {
      "id": "cat-ab12C345DeF6",
      "name": "Office Visits"
    },
    "charge_item": {
      "code": "G0439",
      "code_type": "CPT",
      "id": "ci-ab12C345DeF6",
      "name": "Annual Wellness Visit",
      "price_in_cents": 5000
    },
    "created_at": null,
    "description": "Annual wellness visit",
    "id": "chr-ab12C345DeF6",
    "invoice": {
      "id": "inv-ab12C345DeF6",
      "invoice_number": 1042,
      "status": "open",
      "url": "https://app.hint.com/invoices/inv-ab12C345DeF6"
    },
    "name": "Wellness Visit",
    "price_in_cents": 5000,
    "quantity": 1,
    "service_date": null,
    "status": "posted",
    "updated_at": null
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "category": {
      "id": "Unique identifier for the charge category",
      "name": "Name of the charge category"
    },
    "charge_item": {
      "code": "Code identifying the charge item",
      "code_type": "Type of code (e.g., CPT, ICD)",
      "id": "Unique identifier for the charge item",
      "name": "Name of the charge item",
      "price_in_cents": "Default price of the charge item in cents"
    },
    "created_at": "Timestamp when the charge was created",
    "description": "Description of the charge",
    "id": "Unique identifier for the charge",
    "invoice": {
      "id": "Unique identifier for the invoice",
      "invoice_number": "Invoice number",
      "status": "Status of the invoice",
      "url": "URL to view the invoice"
    },
    "name": "Name of the charge",
    "price_in_cents": "Price of the charge in cents",
    "quantity": "Quantity of the charge",
    "service_date": "Date when the service was provided",
    "status": "Status of the charge",
    "updated_at": "Timestamp when the charge was last updated"
  }
}
```

### Result Object Field Details

You can use the result of the action's data as inputs to downstream workflow actions.

Each fetch action requires an object name, which nests the action's result data inside the downstream data context in the workflow. See [Passing Data Between Actions](https://docs.morf.health/docs/knowledge_base/passing_data_between_actions.md) for how to set it and reference the result from downstream nodes.

Here we demonstrate how to refer to this data using the prefix `$result_object_key`.

**Charge** `Fetch Action Response Object`

**fields**

**id** `string` *required*

Unique identifier for the charge

```json CEL theme={null}
$result_object_key.id
```

```json Example theme={null}
"chr-ab12C345DeF6"
```

**price\_in\_cents** `int64`

Price of the charge in cents

```json CEL theme={null}
$result_object_key.price_in_cents
```

```json Example theme={null}
5000
```

**quantity** `int64`

Quantity of the charge

```json CEL theme={null}
$result_object_key.quantity
```

```json Example theme={null}
1
```

**description** `string`

Description of the charge

```json CEL theme={null}
$result_object_key.description
```

```json Example theme={null}
"Annual wellness visit"
```

**name** `string`

Name of the charge

```json CEL theme={null}
$result_object_key.name
```

```json Example theme={null}
"Wellness Visit"
```

**status** `string`

Status of the charge

```json CEL theme={null}
$result_object_key.status
```

```json Example theme={null}
"posted"
```

**service\_date** `values.v1.Date`

Date when the service was provided

```json CEL theme={null}
$result_object_key.service_date
```

```json Example theme={null}
null
```

**created\_at** `timing.v1.Timestamp`

Timestamp when the charge was created

```json CEL theme={null}
$result_object_key.created_at
```

```json Example theme={null}
null
```

**updated\_at** `timing.v1.Timestamp`

Timestamp when the charge was last updated

```json CEL theme={null}
$result_object_key.updated_at
```

```json Example theme={null}
null
```

**category** `object`

Category of the charge

```json CEL theme={null}
$result_object_key.category
```

```json Example theme={null}
{
"id": "cat-ab12C345DeF6",
"name": "Office Visits"
}
```

**category.id** `string`

Unique identifier for the charge category

```json CEL theme={null}
$result_object_key.category.id
```

```json Example theme={null}
"cat-ab12C345DeF6"
```

**category.name** `string`

Name of the charge category

```json CEL theme={null}
$result_object_key.category.name
```

```json Example theme={null}
"Office Visits"
```

**charge\_item** `object`

Charge item associated with this charge

```json CEL theme={null}
$result_object_key.charge_item
```

```json Example theme={null}
{
"code": "G0439",
"code_type": "CPT",
"id": "ci-ab12C345DeF6",
"name": "Annual Wellness Visit",
"price_in_cents": 5000
}
```

**charge\_item.id** `string`

Unique identifier for the charge item

```json CEL theme={null}
$result_object_key.charge_item.id
```

```json Example theme={null}
"ci-ab12C345DeF6"
```

**charge\_item.name** `string`

Name of the charge item

```json CEL theme={null}
$result_object_key.charge_item.name
```

```json Example theme={null}
"Annual Wellness Visit"
```

**charge\_item.code** `string`

Code identifying the charge item

```json CEL theme={null}
$result_object_key.charge_item.code
```

```json Example theme={null}
"G0439"
```

**charge\_item.code\_type** `string`

Type of code (e.g., CPT, ICD)

```json CEL theme={null}
$result_object_key.charge_item.code_type
```

```json Example theme={null}
"CPT"
```

**charge\_item.price\_in\_cents** `int64`

Default price of the charge item in cents

```json CEL theme={null}
$result_object_key.charge_item.price_in_cents
```

```json Example theme={null}
5000
```

**invoice** `object`

Invoice associated with this charge

```json CEL theme={null}
$result_object_key.invoice
```

```json Example theme={null}
{
"id": "inv-ab12C345DeF6",
"invoice_number": 1042,
"status": "open",
"url": "https://app.hint.com/invoices/inv-ab12C345DeF6"
}
```

**invoice.id** `string`

Unique identifier for the invoice

```json CEL theme={null}
$result_object_key.invoice.id
```

```json Example theme={null}
"inv-ab12C345DeF6"
```

**invoice.status** `string`

Status of the invoice

```json CEL theme={null}
$result_object_key.invoice.status
```

```json Example theme={null}
"open"
```

**invoice.url** `string`

URL to view the invoice

```json CEL theme={null}
$result_object_key.invoice.url
```

```json Example theme={null}
"https://app.hint.com/invoices/inv-ab12C345DeF6"
```

**invoice.invoice\_number** `int64`

Invoice number

```json CEL theme={null}
$result_object_key.invoice.invoice_number
```

```json Example theme={null}
1042
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.