Raw schema
{
"type": "object",
"properties": {
"customer_id": {
"anyOf": [
{
"type": "string",
"pattern": "^[0-9]{1,18}$"
},
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
],
"description": "Numeric Smaregi id (string or number)."
},
"customerCode": {
"description": "Customer code (unique per contract).",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"customerNo": {
"description": "Customer / member number.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"rank": {
"description": "Member rank.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"firstName": {
"description": "First name.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"lastName": {
"description": "Last name.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"firstKana": {
"description": "First name, kana.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"lastKana": {
"description": "Last name, kana.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"postCode": {
"description": "Postal code.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"address": {
"description": "Address.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"phoneNumber": {
"description": "Phone number.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"mobileNumber": {
"description": "Mobile number.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"faxNumber": {
"description": "Fax number.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"mailAddress": {
"description": "E-mail address.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"companyName": {
"description": "Company name.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"departmentName": {
"description": "Department name.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"sex": {
"description": "Sex: 0 = unknown, 1 = male, 2 = female.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"birthDate": {
"description": "Birth date, yyyy-mm-dd.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"entryDate": {
"description": "Enrollment (membership start) date, yyyy-mm-dd; some contracts require it when creating a customer.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"pointExpireDate": {
"description": "Point expiry date, yyyy-mm-dd; some contracts require it when creating a customer.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"mailReceiveFlag": {
"description": "Whether the customer accepts guidance mail: 0 = refuse, 1 = allow (default).",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"note": {
"description": "Note.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"note2": {
"description": "Second note.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"storeId": {
"description": "Store id the customer belongs to.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
},
"status": {
"description": "Member status: 0 = active, 1 = suspended, 2 = card lost, 3 = withdrawn, 4 = merged.",
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
}
]
}
},
"required": [
"customer_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}