CRM360° CustomerApi Documentation

Customer - LoyaltyPoint

LoyaltyPoint entities

Required HTTP Headers

  • X-Crm360Api-Token
  • X-Crm360Api-CustomerName
  • X-Crm360Api-DatabaseAlias

Functions

Entity Properties

Name Type Is Mandatory
LoyaltyPointId Int32
PurchaseHeaderId Int32
VoucherId Int32
ContactId Int32
LoyaltyCardId Int32
PointTypeId Int16
PointAmount Decimal
PointOriginalAmount Decimal
PointUsedAmount Decimal
PointExpiredAmount Decimal
DatePoint DateTime
ExpiredDatePoint DateTime
FreeField1 String
FreeField2 String
FreeField3 String
FreeField4 String
FreeField5 String
FreeFieldDateTime1 DateTime
FreeFieldDateTime2 DateTime
FreeFieldDateTime3 DateTime
FreeFieldDateTime4 DateTime
FreeFieldDateTime5 DateTime
FreeFieldNumber1 Decimal
FreeFieldNumber2 Decimal
FreeFieldNumber3 Decimal
FreeFieldNumber4 Decimal
FreeFieldNumber5 Decimal
FreeFieldBoolean1 Boolean
FreeFieldBoolean2 Boolean
FreeFieldBoolean3 Boolean
FreeFieldBoolean4 Boolean
FreeFieldBoolean5 Boolean
DeletionFlag Boolean
PointIdentifier String
SourceId Int16
PurchaseHeader PurchaseHeader
Contact Contact
LoyaltyCard LoyaltyCard
LoyaltyPointType LoyaltyPointType
Source Source
Voucher Voucher

Examples

Select all LoyaltyPoints

https://customerapi.fts-crm360.com/data/LoyaltyPoints()
HttpMethod : GET
Json Result :
[ { "LoyaltyPointId" : "28", "PurchaseHeaderId" : "38", "VoucherId" : "54", "ContactId" : "42", "LoyaltyCardId" : "17", "PointTypeId" : "2", "PointAmount" : "4849193.751", "PointOriginalAmount" : "4944344.921", "PointUsedAmount" : "9458693.727", "PointExpiredAmount" : "9798784.282", "DatePoint" : "2012-08-05T00:00:00", "ExpiredDatePoint" : "2022-09-20T00:00:00", "FreeField1" : "H0rqqZ2 iSHM4", "FreeField2" : "nVLkjfyGn", "FreeField3" : "frhAQK7cC3 74NpWVt", "FreeField4" : "a0n fvxnl", "FreeField5" : "wAMwK920tXW", "FreeFieldDateTime1" : "2015-04-02T00:00:00", "FreeFieldDateTime2" : "1999-12-03T00:00:00", "FreeFieldDateTime3" : "1995-08-18T00:00:00", "FreeFieldDateTime4" : "2021-05-19T00:00:00", "FreeFieldDateTime5" : "2015-09-14T00:00:00", "FreeFieldNumber1" : "5992217.218", "FreeFieldNumber2" : "8135545.614", "FreeFieldNumber3" : "7217559.112", "FreeFieldNumber4" : "5861377.837", "FreeFieldNumber5" : "3973286.381", "FreeFieldBoolean1" : "False", "FreeFieldBoolean2" : "True", "FreeFieldBoolean3" : "True", "FreeFieldBoolean4" : "True", "FreeFieldBoolean5" : "False", "DeletionFlag" : "False", "PointIdentifier" : "PtqDsH5ZBYMJ2pp ZG", "SourceId" : "7" }, { "LoyaltyPointId" : "47", "PurchaseHeaderId" : "74", "VoucherId" : "55", "ContactId" : "66", "LoyaltyCardId" : "92", "PointTypeId" : "7", "PointAmount" : "2199922.174", "PointOriginalAmount" : "1666879.144", "PointUsedAmount" : "1945154.282", "PointExpiredAmount" : "7173519.422", "DatePoint" : "1996-12-30T00:00:00", "ExpiredDatePoint" : "1999-03-16T00:00:00", "FreeField1" : "Ol1wh2", "FreeField2" : "0cNjqMt 1Y06Kkt", "FreeField3" : "zUCzz", "FreeField4" : "6OS71H7PuzVH", "FreeField5" : "O0LnTWgkvW", "FreeFieldDateTime1" : "1998-12-24T00:00:00", "FreeFieldDateTime2" : "2024-04-04T00:00:00", "FreeFieldDateTime3" : "2011-04-25T00:00:00", "FreeFieldDateTime4" : "2010-05-29T00:00:00", "FreeFieldDateTime5" : "2012-11-10T00:00:00", "FreeFieldNumber1" : "1451945.937", "FreeFieldNumber2" : "4656616.135", "FreeFieldNumber3" : "2677538.282", "FreeFieldNumber4" : "9364233.329", "FreeFieldNumber5" : "7898971.913", "FreeFieldBoolean1" : "True", "FreeFieldBoolean2" : "False", "FreeFieldBoolean3" : "True", "FreeFieldBoolean4" : "True", "FreeFieldBoolean5" : "False", "DeletionFlag" : "False", "PointIdentifier" : "ulndWHFvB9F VsU", "SourceId" : "8" }, ... ]

Select LoyaltyPoint by Id

https://customerapi.fts-crm360.com/data/LoyaltyPoints(28)
HttpMethod : GET
Json Result :
{ "LoyaltyPointId" : "27", "PurchaseHeaderId" : "78", "VoucherId" : "33", "ContactId" : "69", "LoyaltyCardId" : "82", "PointTypeId" : "8", "PointAmount" : "7391561.169", "PointOriginalAmount" : "7667654.782", "PointUsedAmount" : "9896762.113", "PointExpiredAmount" : "1799946.365", "DatePoint" : "2015-06-11T00:00:00", "ExpiredDatePoint" : "1995-06-15T00:00:00", "FreeField1" : "IovHoQxam1", "FreeField2" : "15RWT6aB X2Bqny", "FreeField3" : "5EIXc4", "FreeField4" : "4 ejxPyd2NF9GN8o", "FreeField5" : "oA Rm", "FreeFieldDateTime1" : "1997-04-14T00:00:00", "FreeFieldDateTime2" : "2010-03-09T00:00:00", "FreeFieldDateTime3" : "2021-01-26T00:00:00", "FreeFieldDateTime4" : "1997-07-22T00:00:00", "FreeFieldDateTime5" : "2021-05-11T00:00:00", "FreeFieldNumber1" : "4553955.535", "FreeFieldNumber2" : "8376425.581", "FreeFieldNumber3" : "7254884.539", "FreeFieldNumber4" : "9774514.925", "FreeFieldNumber5" : "6762243.485", "FreeFieldBoolean1" : "False", "FreeFieldBoolean2" : "False", "FreeFieldBoolean3" : "True", "FreeFieldBoolean4" : "True", "FreeFieldBoolean5" : "False", "DeletionFlag" : "True", "PointIdentifier" : "HZDE9JXcJhXHZwdYVc6", "SourceId" : "5" }

Create a LoyaltyPoint

https://customerapi.fts-crm360.com/data/LoyaltyPoints()
HttpMethod : POST
Json Post :
{
"PurchaseHeaderId" : "31",
"VoucherId" : "22",
"ContactId" : "43",
"LoyaltyCardId" : "62",
"PointTypeId" : "9",
"PointAmount" : "6831772.213",
"PointOriginalAmount" : "6146637.989",
"PointUsedAmount" : "3572675.376",
"PointExpiredAmount" : "9951441.458",
"DatePoint" : "1999-06-10T00:00:00",
"ExpiredDatePoint" : "2022-10-04T00:00:00",
"FreeField1" : "f3T8 UJkOk",
"FreeField2" : "rHHLa9I9bWWnnRR",
"FreeField3" : "PSe vYHLP",
"FreeField4" : "uu5mEqYuZ",
"FreeField5" : "M1 gsJc",
"FreeFieldDateTime1" : "1999-08-11T00:00:00",
"FreeFieldDateTime2" : "2002-10-15T00:00:00",
"FreeFieldDateTime3" : "2015-11-25T00:00:00",
"FreeFieldDateTime4" : "2015-08-10T00:00:00",
"FreeFieldDateTime5" : "2011-08-05T00:00:00",
"FreeFieldNumber1" : "1937693.199",
"FreeFieldNumber2" : "2341837.398",
"FreeFieldNumber3" : "1143936.921",
"FreeFieldNumber4" : "9612878.987",
"FreeFieldNumber5" : "1339833.167",
"FreeFieldBoolean1" : "True",
"FreeFieldBoolean2" : "False",
"FreeFieldBoolean3" : "True",
"FreeFieldBoolean4" : "True",
"FreeFieldBoolean5" : "False",
"DeletionFlag" : "True",
"PointIdentifier" : "xSXY346hKNM",
"SourceId" : "2"
}
            
Informations :
- Non mandatory fields are optional for Json Post

Update a LoyaltyPoint

https://customerapi.fts-crm360.com/data/LoyaltyPoints(28)
HttpMethod : PUT
Json Post :
{
"LoyaltyPointId" : "47",
"PurchaseHeaderId" : "74",
"VoucherId" : "44",
"ContactId" : "12",
"LoyaltyCardId" : "78",
"PointTypeId" : "8",
"PointAmount" : "8547953.469",
"PointOriginalAmount" : "8378282.547",
"PointUsedAmount" : "4493219.537",
"PointExpiredAmount" : "6717216.138",
"DatePoint" : "1998-02-22T00:00:00",
"ExpiredDatePoint" : "2010-03-19T00:00:00",
"FreeField1" : "7u4gV6rk5t",
"FreeField2" : "eaeDi4",
"FreeField3" : "wH ZHQAqKKCMhm",
"FreeField4" : "ABlNjiljJp87Kwhhh",
"FreeField5" : "QVXghloepwf",
"FreeFieldDateTime1" : "2010-12-29T00:00:00",
"FreeFieldDateTime2" : "2016-12-08T00:00:00",
"FreeFieldDateTime3" : "2000-09-04T00:00:00",
"FreeFieldDateTime4" : "2008-11-25T00:00:00",
"FreeFieldDateTime5" : "2014-11-05T00:00:00",
"FreeFieldNumber1" : "4554412.667",
"FreeFieldNumber2" : "2389665.833",
"FreeFieldNumber3" : "5559619.816",
"FreeFieldNumber4" : "9755411.213",
"FreeFieldNumber5" : "2888436.728",
"FreeFieldBoolean1" : "True",
"FreeFieldBoolean2" : "False",
"FreeFieldBoolean3" : "False",
"FreeFieldBoolean4" : "True",
"FreeFieldBoolean5" : "True",
"DeletionFlag" : "True",
"PointIdentifier" : "dwQIVeA Z0UijjTtBFp",
"SourceId" : "6"
}
            
Informations :
- Non mandatory fields are optional for Json Post

Patch a LoyaltyPoint

https://customerapi.fts-crm360.com/data/LoyaltyPoints(28)
HttpMethod : PATCH
Json Post :
{
"FreeField2" : "jQaHsMn 0SWbFka",
"FreeFieldDateTime3" : "2019-10-15T00:00:00",
"FreeField4" : "U 8Ad",
"PointAmount" : "3263729.153",
"PointOriginalAmount" : "3958163.486",
"FreeField1" : "9Fc 358QU vhx"
}
            
Informations :
- Non mandatory fields are optional for Json Post

Delete a LoyaltyPoint

https://customerapi.fts-crm360.com/data/LoyaltyPoints(28)
HttpMethod : DELETE