addLoyaltyMemberships
Adds new loyalty memberships to the Mews hospitality platform, enabling integration of customer accounts with loyalty programs, including points, tiers, and expiration details.
Instructions
Adds new loyalty memberships to the system
Input Schema
Name | Required | Description | Default |
---|---|---|---|
ChainId | No | Unique identifier of the chain. Required when using Portfolio Access Tokens, ignored otherwise. | |
LoyaltyMemberships | Yes | Array of loyalty membership objects to create |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"ChainId": {
"description": "Unique identifier of the chain. Required when using Portfolio Access Tokens, ignored otherwise.",
"type": "string"
},
"LoyaltyMemberships": {
"description": "Array of loyalty membership objects to create",
"items": {
"additionalProperties": false,
"properties": {
"AccountId": {
"description": "Unique identifier of the account (Customer or Company)",
"type": "string"
},
"Code": {
"description": "Code of the loyalty membership",
"type": "string"
},
"ExpirationDate": {
"description": "Expiration date of the loyalty membership in UTC timezone in ISO 8601 format",
"type": "string"
},
"IsPrimary": {
"description": "Whether this is the primary loyalty membership for the account",
"type": "boolean"
},
"LoyaltyProgramId": {
"description": "Unique identifier of the loyalty program",
"type": "string"
},
"LoyaltyTierId": {
"description": "Unique identifier of the loyalty tier",
"type": "string"
},
"Points": {
"description": "The loyalty points the account has in this membership",
"type": "number"
},
"ProviderMembershipId": {
"description": "Loyalty membership identifier assigned by external provider",
"maxLength": 100,
"type": "string"
},
"State": {
"description": "State of the loyalty membership",
"type": "string"
},
"Url": {
"description": "URL of the loyalty membership",
"type": "string"
}
},
"required": [
"AccountId",
"LoyaltyProgramId"
],
"type": "object"
},
"maxItems": 1000,
"type": "array"
}
},
"required": [
"LoyaltyMemberships"
],
"type": "object"
}