Create Customer
Create Customer Mutation
Arguments
Name
Type
Description
Return Type
Input Fields
Field
Type
Description
Usage Example
mutation {
createCustomer(
input: {
dataTypeSlug: "retail_customer",
data: {
"name": "John Smith",
"email": "[email protected]",
"phone": "+1-555-0123",
"address": {
"street": "123 Main Street",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "USA"
},
"customerType": "individual",
"preferredLanguage": "en",
"marketingOptIn": true,
"loyaltyNumber": "CUST-12345",
"creditLimit": 5000.00,
"paymentTerms": "NET15"
}
}
) {
id
dataTypeSlug
data
createdAt
}
}Common Data Fields
Notes
Last updated
Was this helpful?
