POST api/v1/redeem

Request Information

URI Parameters

None.

Body Parameters

RedeemRequest
NameDescriptionTypeAdditional information
userid

integer

None.

NumberofPoints

integer

None.

RedeeempartnerID

integer

None.

PartnerName

string

None.

MobileNo

string

None.

Email

string

None.

IsEdenRed

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "userid": 1,
  "numberofPoints": 2,
  "redeeempartnerID": 3,
  "partnerName": "sample string 4",
  "mobileNo": "sample string 5",
  "email": "sample string 6",
  "isEdenRed": true
}

text/xml

Sample:
<RedeemRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PMSBL.Entity">
  <Email>sample string 6</Email>
  <IsEdenRed>true</IsEdenRed>
  <MobileNo>sample string 5</MobileNo>
  <NumberofPoints>2</NumberofPoints>
  <PartnerName>sample string 4</PartnerName>
  <RedeeempartnerID>3</RedeeempartnerID>
  <userid>1</userid>
</RedeemRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of RewardsPartners
NameDescriptionTypeAdditional information
Id

integer

None.

PartnerName

string

None.

Description

string

None.

ImageURL

string

None.

Denomination

Collection of integer

None.

MinValue

integer

None.

IsMailVisible

boolean

None.

IsEdenRed

boolean

None.

PayPalId

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "partnerName": "sample string 2",
    "description": "sample string 3",
    "imageURL": "sample string 4",
    "denomination": [
      1,
      2
    ],
    "minValue": 5,
    "isMailVisible": true,
    "isEdenRed": true,
    "payPalId": "sample string 8"
  },
  {
    "id": 1,
    "partnerName": "sample string 2",
    "description": "sample string 3",
    "imageURL": "sample string 4",
    "denomination": [
      1,
      2
    ],
    "minValue": 5,
    "isMailVisible": true,
    "isEdenRed": true,
    "payPalId": "sample string 8"
  }
]

text/xml

Sample:
<ArrayOfRewardsPartners xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PMSBL.Entity">
  <RewardsPartners>
    <Denomination xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Denomination>
    <Description>sample string 3</Description>
    <Id>1</Id>
    <ImageURL>sample string 4</ImageURL>
    <IsEdenRed>true</IsEdenRed>
    <IsMailVisible>true</IsMailVisible>
    <MinValue>5</MinValue>
    <PartnerName>sample string 2</PartnerName>
    <PayPalId>sample string 8</PayPalId>
  </RewardsPartners>
  <RewardsPartners>
    <Denomination xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </Denomination>
    <Description>sample string 3</Description>
    <Id>1</Id>
    <ImageURL>sample string 4</ImageURL>
    <IsEdenRed>true</IsEdenRed>
    <IsMailVisible>true</IsMailVisible>
    <MinValue>5</MinValue>
    <PartnerName>sample string 2</PartnerName>
    <PayPalId>sample string 8</PayPalId>
  </RewardsPartners>
</ArrayOfRewardsPartners>