> ## 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 Or Update Customer

> Documentation for the Create Or Update Customer action for Stripe

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

# Parameters

**Action** `Parameters`

**parameters**

**ID** `string`

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

**Description** `string`

`HI` `ID` `PII`
This field maps to the destination API `description` field.

**Email** `string`

`PII`
This field maps to the destination API `email` field.

**Metadata** `Map\<string,string\>`

`HI` `ID` `PII`
This field maps to the destination API `metadata` field.

**Name** `string` *required*

`PII`
This field maps to the destination API `name` field.

**Phone** `string`

`PII`
This field maps to the destination API `phone` field.

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "address": {
      "city": "Springfield",
      "country": "US",
      "line1": "1234 Main St",
      "line2": "Apt. 1",
      "postal_code": "62704",
      "state": "IL"
    },
    "balance": 1000,
    "created": "2025-01-02T15:04:05Z",
    "currency": "usd",
    "description": "VIP Customer",
    "email": "customer@example.com",
    "id": "cus_J2m3K4L5N6O7P8Q9R0S",
    "metadata": {
      "key1": "value1",
      "key2": "value2"
    },
    "name": "John Doe",
    "phone": "+1234567890"
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "address": {
      "city": "City/District/Suburb/Town/Village",
      "country": "Two-letter country code (ISO 3166-1 alpha-2)",
      "line1": "Address line 1 (Street address/PO Box/Company name)",
      "line2": "Address line 2 (Apartment/Suite/Unit/Building)",
      "postal_code": "ZIP or postal code",
      "state": "State/County/Province/Region"
    },
    "balance": "The current balance, if any, that's stored on the customer",
    "created": "Time at which the object was created.",
    "currency": "Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes",
    "description": "An arbitrary string attached to the object. Often useful for displaying to users",
    "email": "The customer's email address",
    "id": "Unique identifier for the object",
    "metadata": {
      "key": null,
      "value": null
    },
    "name": "The customer's full name or business name",
    "phone": "The customer's phone number"
  }
}
```

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

**Customer** `Fetch Action Response Object`

**fields**

**address** `object`

The customer's address

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

```json Example theme={null}
{
"city": "Springfield",
"country": "US",
"line1": "1234 Main St",
"line2": "Apt. 1",
"postal_code": "62704",
"state": "IL"
}
```

**address.city** `string`

City/District/Suburb/Town/Village

```json CEL theme={null}
$result_object_key.address.city
```

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

**address.country** `string`

Two-letter country code (ISO 3166-1 alpha-2)

```json CEL theme={null}
$result_object_key.address.country
```

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

**address.line1** `string`

Address line 1 (Street address/PO Box/Company name)

```json CEL theme={null}
$result_object_key.address.line1
```

```json Example theme={null}
"1234 Main St"
```

**address.line2** `string`

Address line 2 (Apartment/Suite/Unit/Building)

```json CEL theme={null}
$result_object_key.address.line2
```

```json Example theme={null}
"Apt. 1"
```

**address.postal\_code** `string`

ZIP or postal code

```json CEL theme={null}
$result_object_key.address.postal_code
```

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

**address.state** `string`

State/County/Province/Region

```json CEL theme={null}
$result_object_key.address.state
```

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

**balance** `int64`

The current balance, if any, that's stored on the customer

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

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

**created** `timing.v1.Timestamp` *required*

Time at which the object was created.

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

```json Example theme={null}
"2025-01-02T15:04:05Z"
```

**currency** `string`

Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes

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

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

**description** `string`

An arbitrary string attached to the object. Often useful for displaying to users

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

```json Example theme={null}
"VIP Customer"
```

**email** `string`

The customer's email address

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

```json Example theme={null}
"customer@example.com"
```

**id** `string`

Unique identifier for the object

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

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

**metadata** `Map\<string,string\>` *required*

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format

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

```json Example theme={null}
{
"key1": "value1",
"key2": "value2"
}
```

**name** `string`

The customer's full name or business name

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

```json Example theme={null}
"John Doe"
```

**phone** `string`

The customer's phone number

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

```json Example theme={null}
"+1234567890"
```


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