POST api/loyalty/config/add

Request Information

URI Parameters

None.

Body Parameters

Collection of LoyaltyConfigEntity
NameDescriptionTypeAdditional information
LoyaltyConfigId

integer

None.

ConfigName

string

None.

TargetBillValue

decimal number

None.

AmountConvertable

decimal number

None.

PointsToBeAdded

decimal number

None.

Active

boolean

None.

CreatedTime

date

None.

UpdatedTime

date

None.

VendorId

integer

None.

LocationId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "LoyaltyConfigId": 1,
    "ConfigName": "sample string 2",
    "TargetBillValue": 3.0,
    "AmountConvertable": 4.0,
    "PointsToBeAdded": 5.0,
    "Active": true,
    "CreatedTime": "2025-12-31T16:38:06.0811708+05:30",
    "UpdatedTime": "2025-12-31T16:38:06.0811708+05:30",
    "VendorId": 8,
    "LocationId": 9
  },
  {
    "LoyaltyConfigId": 1,
    "ConfigName": "sample string 2",
    "TargetBillValue": 3.0,
    "AmountConvertable": 4.0,
    "PointsToBeAdded": 5.0,
    "Active": true,
    "CreatedTime": "2025-12-31T16:38:06.0811708+05:30",
    "UpdatedTime": "2025-12-31T16:38:06.0811708+05:30",
    "VendorId": 8,
    "LocationId": 9
  }
]

application/xml, text/xml

Sample:
<ArrayOfLoyaltyConfigEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pos_crm_api_DAL.Entities">
  <LoyaltyConfigEntity>
    <Active>true</Active>
    <AmountConvertable>4</AmountConvertable>
    <ConfigName>sample string 2</ConfigName>
    <CreatedTime>2025-12-31T16:38:06.0811708+05:30</CreatedTime>
    <LocationId>9</LocationId>
    <LoyaltyConfigId>1</LoyaltyConfigId>
    <PointsToBeAdded>5</PointsToBeAdded>
    <TargetBillValue>3</TargetBillValue>
    <UpdatedTime>2025-12-31T16:38:06.0811708+05:30</UpdatedTime>
    <VendorId>8</VendorId>
  </LoyaltyConfigEntity>
  <LoyaltyConfigEntity>
    <Active>true</Active>
    <AmountConvertable>4</AmountConvertable>
    <ConfigName>sample string 2</ConfigName>
    <CreatedTime>2025-12-31T16:38:06.0811708+05:30</CreatedTime>
    <LocationId>9</LocationId>
    <LoyaltyConfigId>1</LoyaltyConfigId>
    <PointsToBeAdded>5</PointsToBeAdded>
    <TargetBillValue>3</TargetBillValue>
    <UpdatedTime>2025-12-31T16:38:06.0811708+05:30</UpdatedTime>
    <VendorId>8</VendorId>
  </LoyaltyConfigEntity>
</ArrayOfLoyaltyConfigEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.