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.
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
json{ "type": "shopify-create-customer", "payload": { "email": "alerts@example.com", "phone": "example-phone", "firstName": "example-firstName", "lastName": "example-lastName", "addresses": [] }, "children": [], "connector": { "type": "shopify", "id": "conn_shopify" }}
bashcurl -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", "phone": "example-phone", "firstName": "example-firstName", "lastName": "example-lastName", "addresses": [] }}'
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.
