> ## 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 Invoice

> Documentation for the Create Invoice action for Healthie

![images/healthie.svg](https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/healthie.svg?fit=max\&auto=format\&n=EU2WCxuXGIUQcziR\&q=85\&s=d168a24dbae69f2202ca63dd7aa2e1f3)

# Parameters

**Action** `Parameters`

**parameters**

**Invoice Type** `string` *required*

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

**Recipient ID** `string`

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

**Sender ID** `string`

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

**Offering ID** `string`

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

**CMS1500 ID** `string`

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

**Price** `float64 (double)`

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

**Notes** `string`

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

**Service Date** `timing.v1.Timestamp`

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

**Services Provided** `string`

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

**Status** `string`

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

**Is Preview** `bool`

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

**User Package Selection ID** `string`

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

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "appointment_id": "12345",
    "cms1500_id": "12345",
    "details": "Follow-up Session",
    "id": "12345",
    "invoice_id": "12345",
    "invoice_type": "appointment",
    "is_preview": false,
    "notes": "Please see attached the invoice for your session.",
    "price": 123.456,
    "recipient_id": "12345",
    "sender_id": "12345",
    "service_date": "2024-04-22T09:00:00-04:00",
    "services_provided": "No-Show",
    "status": "Not Yet Paid"
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "appointment_id": "The ID of the appointment associated with this requested payment",
    "cms1500_id": "The ID of the CMS1500 to pay for",
    "details": "The details of the invoice (based off of associated item)",
    "id": "The unique identifier of the payment",
    "invoice_id": "The generated invoice ID",
    "invoice_type": "The type of invoice",
    "is_preview": "True if the invoice is still in preview mode",
    "notes": "Extra details on the invoice",
    "price": "Price of payment requested",
    "recipient_id": "The ID of the recipient (client)",
    "sender_id": "The ID of the sender (provider)",
    "service_date": "The service date",
    "services_provided": "The services provided",
    "status": "The status of the request"
  }
}
```

### 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`.

**RequestedPayment** `Fetch Action Response Object`

**fields**

**id** `string` *required*

The unique identifier of the payment

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

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

**appointment\_id** `string`

The ID of the appointment associated with this requested payment

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

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

**cms1500\_id** `string`

The ID of the CMS1500 to pay for

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

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

**invoice\_id** `string`

The generated invoice ID

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

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

**sender\_id** `string`

The ID of the sender (provider)

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

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

**recipient\_id** `string`

The ID of the recipient (client)

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

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

**details** `string`

The details of the invoice (based off of associated item)

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

```json Example theme={null}
"Follow-up Session"
```

**invoice\_type** `string`

The type of invoice

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

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

**notes** `string`

Extra details on the invoice

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

```json Example theme={null}
"Please see attached the invoice for your session."
```

**price** `float64 (double)`

Price of payment requested

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

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

**service\_date** `timing.v1.Timestamp`

The service date

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

```json Example theme={null}
"2024-04-22T09:00:00-04:00"
```

**services\_provided** `string`

The services provided

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

```json Example theme={null}
"No-Show"
```

**status** `string` *required*

The status of the request

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

```json Example theme={null}
"Not Yet Paid"
```

**is\_preview** `bool` *required*

True if the invoice is still in preview mode

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

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


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