POST api/rewards

Creates new rewards members and referrals of a referral program.

Request Information

URI Parameters

Query String:

None.

Body Parameters

A list of required structures containing the details about the reward to create.

Type: Collection of NewRewardInfo

NameDescriptionTypeAdditional information
memberQuery

A structure containing details to identify a member to reward.

MemberQuery

None.

referralQuery

A structure containing details to identify a referral to reward.

ReferralQuery

None.

newReward

Details about a reward to create. Required.

NewReward

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "memberQuery": {
      "primaryInfo": {
        "memberId": "sample string 1",
        "referralCode": "sample string 2"
      },
      "secondaryInfo": {
        "externalIdentifier": "sample string 1",
        "email": "sample string 2"
      },
      "tertiaryInfo": {
        "programId": "sample string 1",
        "programName": "sample string 2",
        "programTitle": "sample string 3"
      }
    },
    "referralQuery": {
      "primaryInfo": {
        "referralId": "sample string 1"
      },
      "secondaryInfo": {
        "externalIdentifier": "sample string 1",
        "email": "sample string 2",
        "phoneNumber": "sample string 3"
      },
      "tertiaryInfo": {
        "ProgramId": "sample string 1",
        "ProgramName": "sample string 2",
        "ProgramTitle": "sample string 3"
      },
      "fuzzyInfo": {
        "Identifier": "sample string 1"
      }
    },
    "newReward": {
      "amount": 1.0,
      "payoutId": "sample string 2",
      "eligibilityDate": "2018-10-17T20:01:48.7629518Z",
      "description": "sample string 3"
    }
  },
  {
    "memberQuery": {
      "primaryInfo": {
        "memberId": "sample string 1",
        "referralCode": "sample string 2"
      },
      "secondaryInfo": {
        "externalIdentifier": "sample string 1",
        "email": "sample string 2"
      },
      "tertiaryInfo": {
        "programId": "sample string 1",
        "programName": "sample string 2",
        "programTitle": "sample string 3"
      }
    },
    "referralQuery": {
      "primaryInfo": {
        "referralId": "sample string 1"
      },
      "secondaryInfo": {
        "externalIdentifier": "sample string 1",
        "email": "sample string 2",
        "phoneNumber": "sample string 3"
      },
      "tertiaryInfo": {
        "ProgramId": "sample string 1",
        "ProgramName": "sample string 2",
        "ProgramTitle": "sample string 3"
      },
      "fuzzyInfo": {
        "Identifier": "sample string 1"
      }
    },
    "newReward": {
      "amount": 1.0,
      "payoutId": "sample string 2",
      "eligibilityDate": "2018-10-17T20:01:48.7629518Z",
      "description": "sample string 3"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfnewRewardInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <newRewardInfo>
    <memberQuery>
      <primaryInfo>
        <memberId>sample string 1</memberId>
        <referralCode>sample string 2</referralCode>
      </primaryInfo>
      <secondaryInfo>
        <email>sample string 2</email>
        <externalIdentifier>sample string 1</externalIdentifier>
      </secondaryInfo>
      <tertiaryInfo>
        <programId>sample string 1</programId>
        <programName>sample string 2</programName>
        <programTitle>sample string 3</programTitle>
      </tertiaryInfo>
    </memberQuery>
    <referralQuery>
      <fuzzyInfo xmlns:d4p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models">
        <d4p1:Identifier>sample string 1</d4p1:Identifier>
      </fuzzyInfo>
      <primaryInfo>
        <referralId>sample string 1</referralId>
      </primaryInfo>
      <secondaryInfo>
        <email>sample string 2</email>
        <externalIdentifier>sample string 1</externalIdentifier>
        <phoneNumber>sample string 3</phoneNumber>
      </secondaryInfo>
      <tertiaryInfo xmlns:d4p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models">
        <d4p1:ProgramId>sample string 1</d4p1:ProgramId>
        <d4p1:ProgramName>sample string 2</d4p1:ProgramName>
        <d4p1:ProgramTitle>sample string 3</d4p1:ProgramTitle>
      </tertiaryInfo>
    </referralQuery>
    <newReward>
      <payoutId>sample string 2</payoutId>
      <eligibilityDate>2018-10-17T16:01:48.7629518-04:00</eligibilityDate>
      <description>sample string 3</description>
      <amount>1</amount>
    </newReward>
  </newRewardInfo>
  <newRewardInfo>
    <memberQuery>
      <primaryInfo>
        <memberId>sample string 1</memberId>
        <referralCode>sample string 2</referralCode>
      </primaryInfo>
      <secondaryInfo>
        <email>sample string 2</email>
        <externalIdentifier>sample string 1</externalIdentifier>
      </secondaryInfo>
      <tertiaryInfo>
        <programId>sample string 1</programId>
        <programName>sample string 2</programName>
        <programTitle>sample string 3</programTitle>
      </tertiaryInfo>
    </memberQuery>
    <referralQuery>
      <fuzzyInfo xmlns:d4p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models">
        <d4p1:Identifier>sample string 1</d4p1:Identifier>
      </fuzzyInfo>
      <primaryInfo>
        <referralId>sample string 1</referralId>
      </primaryInfo>
      <secondaryInfo>
        <email>sample string 2</email>
        <externalIdentifier>sample string 1</externalIdentifier>
        <phoneNumber>sample string 3</phoneNumber>
      </secondaryInfo>
      <tertiaryInfo xmlns:d4p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models">
        <d4p1:ProgramId>sample string 1</d4p1:ProgramId>
        <d4p1:ProgramName>sample string 2</d4p1:ProgramName>
        <d4p1:ProgramTitle>sample string 3</d4p1:ProgramTitle>
      </tertiaryInfo>
    </referralQuery>
    <newReward>
      <payoutId>sample string 2</payoutId>
      <eligibilityDate>2018-10-17T16:01:48.7629518-04:00</eligibilityDate>
      <description>sample string 3</description>
      <amount>1</amount>
    </newReward>
  </newRewardInfo>
</ArrayOfnewRewardInfo>

Response Information

Resource Description

[HTTP Status 200 - OK]

Type: Collection of NewRewardResult

NameDescriptionTypeAdditional information
memberQuery

Echos the member query sent in the request.

MemberQuery

None.

referralQuery

Echos the referral query sent in the request.

ReferralQuery

None.

reward

Details about a reward to created.

Reward

None.

resultInfo

Details about the results of the request.

ResultInfo

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "memberQuery": {
      "primaryInfo": {
        "memberId": "sample string 1",
        "referralCode": "sample string 2"
      },
      "secondaryInfo": {
        "externalIdentifier": "sample string 1",
        "email": "sample string 2"
      },
      "tertiaryInfo": {
        "programId": "sample string 1",
        "programName": "sample string 2",
        "programTitle": "sample string 3"
      }
    },
    "referralQuery": {
      "primaryInfo": {
        "referralId": "sample string 1"
      },
      "secondaryInfo": {
        "externalIdentifier": "sample string 1",
        "email": "sample string 2",
        "phoneNumber": "sample string 3"
      },
      "tertiaryInfo": {
        "ProgramId": "sample string 1",
        "ProgramName": "sample string 2",
        "ProgramTitle": "sample string 3"
      },
      "fuzzyInfo": {
        "Identifier": "sample string 1"
      }
    },
    "reward": {
      "id": "0fb8285e-9b69-4d6f-8d06-0fb470032f7d",
      "payoutId": "f76d0ec6-792c-447c-b1d0-684653b2238c",
      "payoutDescription": "sample string 3",
      "programId": "feec4825-7e62-43c9-946a-32a3198df7d4",
      "programName": "sample string 5",
      "memberId": "148a07a4-6432-459e-ab13-ffae29e98456",
      "referralId": "323c67ea-5264-4f11-8466-3bc2e4fd69fa",
      "type": "sample string 6",
      "recipientId": "d6e77d65-96aa-480a-98fd-cdc72633def7",
      "recipientName": "sample string 7",
      "recipientEmailAddress": "sample string 8",
      "status": "sample string 9",
      "amount": 10.0,
      "createDate": "2018-10-17T20:01:48.7629518Z",
      "issueDate": "2018-10-17T20:01:48.7629518Z",
      "eligibilityDate": "2018-10-17T20:01:48.7629518Z",
      "description": "sample string 13",
      "transactionID": "0793515f-d1e3-49d5-b880-1b4d74cef82b",
      "updateDate": "2018-10-17T20:01:48.7629518Z",
      "referralDisplayName": "sample string 15"
    },
    "resultInfo": {
      "Status": "sample string 1",
      "Message": "sample string 2"
    }
  },
  {
    "memberQuery": {
      "primaryInfo": {
        "memberId": "sample string 1",
        "referralCode": "sample string 2"
      },
      "secondaryInfo": {
        "externalIdentifier": "sample string 1",
        "email": "sample string 2"
      },
      "tertiaryInfo": {
        "programId": "sample string 1",
        "programName": "sample string 2",
        "programTitle": "sample string 3"
      }
    },
    "referralQuery": {
      "primaryInfo": {
        "referralId": "sample string 1"
      },
      "secondaryInfo": {
        "externalIdentifier": "sample string 1",
        "email": "sample string 2",
        "phoneNumber": "sample string 3"
      },
      "tertiaryInfo": {
        "ProgramId": "sample string 1",
        "ProgramName": "sample string 2",
        "ProgramTitle": "sample string 3"
      },
      "fuzzyInfo": {
        "Identifier": "sample string 1"
      }
    },
    "reward": {
      "id": "0fb8285e-9b69-4d6f-8d06-0fb470032f7d",
      "payoutId": "f76d0ec6-792c-447c-b1d0-684653b2238c",
      "payoutDescription": "sample string 3",
      "programId": "feec4825-7e62-43c9-946a-32a3198df7d4",
      "programName": "sample string 5",
      "memberId": "148a07a4-6432-459e-ab13-ffae29e98456",
      "referralId": "323c67ea-5264-4f11-8466-3bc2e4fd69fa",
      "type": "sample string 6",
      "recipientId": "d6e77d65-96aa-480a-98fd-cdc72633def7",
      "recipientName": "sample string 7",
      "recipientEmailAddress": "sample string 8",
      "status": "sample string 9",
      "amount": 10.0,
      "createDate": "2018-10-17T20:01:48.7629518Z",
      "issueDate": "2018-10-17T20:01:48.7629518Z",
      "eligibilityDate": "2018-10-17T20:01:48.7629518Z",
      "description": "sample string 13",
      "transactionID": "0793515f-d1e3-49d5-b880-1b4d74cef82b",
      "updateDate": "2018-10-17T20:01:48.7629518Z",
      "referralDisplayName": "sample string 15"
    },
    "resultInfo": {
      "Status": "sample string 1",
      "Message": "sample string 2"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfnewRewardResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <newRewardResult>
    <memberQuery>
      <primaryInfo>
        <memberId>sample string 1</memberId>
        <referralCode>sample string 2</referralCode>
      </primaryInfo>
      <secondaryInfo>
        <email>sample string 2</email>
        <externalIdentifier>sample string 1</externalIdentifier>
      </secondaryInfo>
      <tertiaryInfo>
        <programId>sample string 1</programId>
        <programName>sample string 2</programName>
        <programTitle>sample string 3</programTitle>
      </tertiaryInfo>
    </memberQuery>
    <referralQuery>
      <fuzzyInfo xmlns:d4p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models">
        <d4p1:Identifier>sample string 1</d4p1:Identifier>
      </fuzzyInfo>
      <primaryInfo>
        <referralId>sample string 1</referralId>
      </primaryInfo>
      <secondaryInfo>
        <email>sample string 2</email>
        <externalIdentifier>sample string 1</externalIdentifier>
        <phoneNumber>sample string 3</phoneNumber>
      </secondaryInfo>
      <tertiaryInfo xmlns:d4p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models">
        <d4p1:ProgramId>sample string 1</d4p1:ProgramId>
        <d4p1:ProgramName>sample string 2</d4p1:ProgramName>
        <d4p1:ProgramTitle>sample string 3</d4p1:ProgramTitle>
      </tertiaryInfo>
    </referralQuery>
    <resultInfo xmlns:d3p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models.Response">
      <d3p1:Message>sample string 2</d3p1:Message>
      <d3p1:Status>sample string 1</d3p1:Status>
    </resultInfo>
    <reward>
      <id>0fb8285e-9b69-4d6f-8d06-0fb470032f7d</id>
      <payoutId>f76d0ec6-792c-447c-b1d0-684653b2238c</payoutId>
      <payoutDescription>sample string 3</payoutDescription>
      <programId>feec4825-7e62-43c9-946a-32a3198df7d4</programId>
      <programName>sample string 5</programName>
      <memberId>148a07a4-6432-459e-ab13-ffae29e98456</memberId>
      <referralId>323c67ea-5264-4f11-8466-3bc2e4fd69fa</referralId>
      <type>sample string 6</type>
      <recipientId>d6e77d65-96aa-480a-98fd-cdc72633def7</recipientId>
      <recipientName>sample string 7</recipientName>
      <recipientEmailAddress>sample string 8</recipientEmailAddress>
      <status>sample string 9</status>
      <amount>10</amount>
      <createDate>2018-10-17T16:01:48.7629518-04:00</createDate>
      <issueDate>2018-10-17T16:01:48.7629518-04:00</issueDate>
      <eligibilityDate>2018-10-17T16:01:48.7629518-04:00</eligibilityDate>
      <description>sample string 13</description>
      <transactionID>0793515f-d1e3-49d5-b880-1b4d74cef82b</transactionID>
      <updateDate>2018-10-17T16:01:48.7629518-04:00</updateDate>
      <referralDisplayName>sample string 15</referralDisplayName>
    </reward>
  </newRewardResult>
  <newRewardResult>
    <memberQuery>
      <primaryInfo>
        <memberId>sample string 1</memberId>
        <referralCode>sample string 2</referralCode>
      </primaryInfo>
      <secondaryInfo>
        <email>sample string 2</email>
        <externalIdentifier>sample string 1</externalIdentifier>
      </secondaryInfo>
      <tertiaryInfo>
        <programId>sample string 1</programId>
        <programName>sample string 2</programName>
        <programTitle>sample string 3</programTitle>
      </tertiaryInfo>
    </memberQuery>
    <referralQuery>
      <fuzzyInfo xmlns:d4p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models">
        <d4p1:Identifier>sample string 1</d4p1:Identifier>
      </fuzzyInfo>
      <primaryInfo>
        <referralId>sample string 1</referralId>
      </primaryInfo>
      <secondaryInfo>
        <email>sample string 2</email>
        <externalIdentifier>sample string 1</externalIdentifier>
        <phoneNumber>sample string 3</phoneNumber>
      </secondaryInfo>
      <tertiaryInfo xmlns:d4p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models">
        <d4p1:ProgramId>sample string 1</d4p1:ProgramId>
        <d4p1:ProgramName>sample string 2</d4p1:ProgramName>
        <d4p1:ProgramTitle>sample string 3</d4p1:ProgramTitle>
      </tertiaryInfo>
    </referralQuery>
    <resultInfo xmlns:d3p1="http://schemas.datacontract.org/2004/07/ReferralRock.Api.Models.Response">
      <d3p1:Message>sample string 2</d3p1:Message>
      <d3p1:Status>sample string 1</d3p1:Status>
    </resultInfo>
    <reward>
      <id>0fb8285e-9b69-4d6f-8d06-0fb470032f7d</id>
      <payoutId>f76d0ec6-792c-447c-b1d0-684653b2238c</payoutId>
      <payoutDescription>sample string 3</payoutDescription>
      <programId>feec4825-7e62-43c9-946a-32a3198df7d4</programId>
      <programName>sample string 5</programName>
      <memberId>148a07a4-6432-459e-ab13-ffae29e98456</memberId>
      <referralId>323c67ea-5264-4f11-8466-3bc2e4fd69fa</referralId>
      <type>sample string 6</type>
      <recipientId>d6e77d65-96aa-480a-98fd-cdc72633def7</recipientId>
      <recipientName>sample string 7</recipientName>
      <recipientEmailAddress>sample string 8</recipientEmailAddress>
      <status>sample string 9</status>
      <amount>10</amount>
      <createDate>2018-10-17T16:01:48.7629518-04:00</createDate>
      <issueDate>2018-10-17T16:01:48.7629518-04:00</issueDate>
      <eligibilityDate>2018-10-17T16:01:48.7629518-04:00</eligibilityDate>
      <description>sample string 13</description>
      <transactionID>0793515f-d1e3-49d5-b880-1b4d74cef82b</transactionID>
      <updateDate>2018-10-17T16:01:48.7629518-04:00</updateDate>
      <referralDisplayName>sample string 15</referralDisplayName>
    </reward>
  </newRewardResult>
</ArrayOfnewRewardResult>