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

# Shopify: Create Customer

Create a new customer in your Shopify store. Supports email, phone, addresses, tags, notes, and marketing consent. Ideal for: customer onboarding, CRM sync, lead capture, account creation. Required scope: write_customers.

![Shopify: Create Customer logo](https://ai-icon.b3.fun/logo/shopify)
Catalog action Integrations shopify

Create a new customer in your Shopify store. Supports email, phone, addresses, tags, notes, and marketing consent. Ideal for: customer onboarding, CRM sync, lead capture, account creation. Required scope: write_customers.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `shopify-create-customer` |
| Category | Integrations |
| Connector | `shopify` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `shopify`, `ecommerce`, `write` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | `string` | No | Customer email address \(required if phone not provided\) |
| `phone` | `string` | No | Customer phone number in E.164 format \(required if email not provided\) |
| `firstName` | `string` | No | Customer first name |
| `lastName` | `string` | No | Customer last name |
| `addresses` | `array` | No | Customer addresses |
| `tags` | `array` | No | Tags to add to the customer |
| `note` | `string` | No | Note about the customer |
| `emailMarketingConsent` | `object` | No | Email marketing consent settings |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | Yes | Whether the customer was created successfully |
| `data` | `object` | No | Created customer data |
| `exports` | `object` | No | Exported values from the action |

## Examples

**Workflow node**

```json
{
  "type": "shopify-create-customer",
  "payload": {
    "email": "alerts@example.com",
    "firstName": "example-firstName",
    "lastName": "example-lastName",
    "addresses": [],
    "tags": []
  },
  "children": [],
  "connector": {
    "type": "shopify",
    "id": "conn_shopify"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/shopify-create-customer/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "email": "alerts@example.com",
    "firstName": "example-firstName",
    "lastName": "example-lastName",
    "addresses": [],
    "tags": []
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.