commit_customer_import
ActiveTool of FavCRM
declared in 1.0.0
Commit a previewed customer import. Pass the same rows and sessionId returned by preview_customer_import. Creates/updates accounts and applies points, stamps, and credit deltas.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"sessionId",
"rows"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"rowNumber"
],
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Display name"
},
"tags": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Comma-separated tag names"
},
"type": {
"anyOf": [
{
"enum": [
"individual",
"business",
"household"
],
"type": "string"
},
{
"type": "null"
}
]
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"notes": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Internal notes"
},
"phone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"credit": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Target wallet stored value / 儲值 (HKD)"
},
"gender": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"points": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Target loyalty points (分數)"
},
"source": {
"anyOf": [
{
"enum": [
"walk_in",
"online",
"pos",
"whatsapp",
"referral",
"import",
"api",
"shopify",
"woocommerce",
"email"
],
"type": "string"
},
{
"type": "null"
}
]
},
"stamps": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"lastName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"firstName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"lifeStage": {
"anyOf": [
{
"enum": [
"lead",
"active",
"churned",
"vip"
],
"type": "string"
},
{
"type": "null"
}
]
},
"rowNumber": {
"type": "integer",
"maximum": 9007199254740991,
"description": "1-based row number from the source file (for error reporting)",
"exclusiveMinimum": 0
},
"expiryDate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Membership expiry YYYY-MM-DD"
},
"memberCode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Merchant member code (e.g. LIZLAB-00144)"
},
"referredBy": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Referrer account UUID, member code, phone, or email"
},
"dateOfBirth": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "YYYY-MM-DD"
},
"customFields": {
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
{
"type": "null"
}
],
"description": "Account custom fields keyed by fieldName"
},
"membershipTier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Tier name or ID"
}
}
},
"maxItems": 2000,
"minItems": 1
},
"sessionId": {
"type": "string",
"minLength": 1,
"description": "sessionId from preview_customer_import"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
FavCRM
https://github.com/favcrm/mcp
1/7 registries