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
Name | Description | Type | Additional 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
[ { "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": "2025-08-21T17:10:08.9898852Z", "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": "2025-08-21T17:10:08.9898852Z", "description": "sample string 3" } } ]
application/xml, text/xml
<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>2025-08-21T17:10:08.9898852+00: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>2025-08-21T17:10:08.9898852+00: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
Name | Description | Type | Additional 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
[ { "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": "19dbcdf8-9f69-4523-b28f-552f0bbb0358", "payoutId": "364eb427-9304-4775-ae12-111db24d09fc", "payoutDescription": "sample string 3", "programId": "9836e428-f83d-4c90-abd0-aa9ae4c6cc67", "programName": "sample string 5", "memberId": "0ac19b73-2dfa-41ae-b4db-78287d7be4ea", "referralId": "042a6be0-4e4d-46a5-b488-0f84802ca47f", "type": "sample string 6", "recipientId": "5a749080-c958-4fad-a824-68bcc03af7fe", "recipientName": "sample string 7", "recipientEmailAddress": "sample string 8", "recipientExternalIdentifier": "sample string 9", "externalIdentifier": "sample string 10", "status": "sample string 11", "amount": 12.0, "createDate": "2025-08-21T17:10:09.0211308Z", "issueDate": "2025-08-21T17:10:09.0211308Z", "eligibilityDate": "2025-08-21T17:10:09.0211308Z", "description": "sample string 15", "transactionID": "1024c0f9-45ab-4d2e-874d-ea170f8913be", "updateDate": "2025-08-21T17:10:09.0211308Z", "referralDisplayName": "sample string 17", "currencyCode": "sample string 18", "source": "sample string 19", "programRewardRuleId": "97723f1e-4b04-41df-8eb0-e118b04b0d19", "paymentType": "sample string 20", "paymentCode": "sample string 21", "completeNote": "sample string 22", "reason": "sample string 23", "reasonOther": "sample string 24" }, "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": "19dbcdf8-9f69-4523-b28f-552f0bbb0358", "payoutId": "364eb427-9304-4775-ae12-111db24d09fc", "payoutDescription": "sample string 3", "programId": "9836e428-f83d-4c90-abd0-aa9ae4c6cc67", "programName": "sample string 5", "memberId": "0ac19b73-2dfa-41ae-b4db-78287d7be4ea", "referralId": "042a6be0-4e4d-46a5-b488-0f84802ca47f", "type": "sample string 6", "recipientId": "5a749080-c958-4fad-a824-68bcc03af7fe", "recipientName": "sample string 7", "recipientEmailAddress": "sample string 8", "recipientExternalIdentifier": "sample string 9", "externalIdentifier": "sample string 10", "status": "sample string 11", "amount": 12.0, "createDate": "2025-08-21T17:10:09.0211308Z", "issueDate": "2025-08-21T17:10:09.0211308Z", "eligibilityDate": "2025-08-21T17:10:09.0211308Z", "description": "sample string 15", "transactionID": "1024c0f9-45ab-4d2e-874d-ea170f8913be", "updateDate": "2025-08-21T17:10:09.0211308Z", "referralDisplayName": "sample string 17", "currencyCode": "sample string 18", "source": "sample string 19", "programRewardRuleId": "97723f1e-4b04-41df-8eb0-e118b04b0d19", "paymentType": "sample string 20", "paymentCode": "sample string 21", "completeNote": "sample string 22", "reason": "sample string 23", "reasonOther": "sample string 24" }, "resultInfo": { "Status": "sample string 1", "Message": "sample string 2" } } ]
application/xml, text/xml
<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>19dbcdf8-9f69-4523-b28f-552f0bbb0358</id> <payoutId>364eb427-9304-4775-ae12-111db24d09fc</payoutId> <payoutDescription>sample string 3</payoutDescription> <programId>9836e428-f83d-4c90-abd0-aa9ae4c6cc67</programId> <programName>sample string 5</programName> <memberId>0ac19b73-2dfa-41ae-b4db-78287d7be4ea</memberId> <referralId>042a6be0-4e4d-46a5-b488-0f84802ca47f</referralId> <type>sample string 6</type> <recipientId>5a749080-c958-4fad-a824-68bcc03af7fe</recipientId> <recipientName>sample string 7</recipientName> <recipientEmailAddress>sample string 8</recipientEmailAddress> <recipientExternalIdentifier>sample string 9</recipientExternalIdentifier> <externalIdentifier>sample string 10</externalIdentifier> <status>sample string 11</status> <amount>12</amount> <createDate>2025-08-21T17:10:09.0211308+00:00</createDate> <issueDate>2025-08-21T17:10:09.0211308+00:00</issueDate> <eligibilityDate>2025-08-21T17:10:09.0211308+00:00</eligibilityDate> <description>sample string 15</description> <transactionID>1024c0f9-45ab-4d2e-874d-ea170f8913be</transactionID> <updateDate>2025-08-21T17:10:09.0211308+00:00</updateDate> <referralDisplayName>sample string 17</referralDisplayName> <currencyCode>sample string 18</currencyCode> <source>sample string 19</source> <programRewardRuleId>97723f1e-4b04-41df-8eb0-e118b04b0d19</programRewardRuleId> <paymentType>sample string 20</paymentType> <paymentCode>sample string 21</paymentCode> <completeNote>sample string 22</completeNote> <reason>sample string 23</reason> <reasonOther>sample string 24</reasonOther> </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>19dbcdf8-9f69-4523-b28f-552f0bbb0358</id> <payoutId>364eb427-9304-4775-ae12-111db24d09fc</payoutId> <payoutDescription>sample string 3</payoutDescription> <programId>9836e428-f83d-4c90-abd0-aa9ae4c6cc67</programId> <programName>sample string 5</programName> <memberId>0ac19b73-2dfa-41ae-b4db-78287d7be4ea</memberId> <referralId>042a6be0-4e4d-46a5-b488-0f84802ca47f</referralId> <type>sample string 6</type> <recipientId>5a749080-c958-4fad-a824-68bcc03af7fe</recipientId> <recipientName>sample string 7</recipientName> <recipientEmailAddress>sample string 8</recipientEmailAddress> <recipientExternalIdentifier>sample string 9</recipientExternalIdentifier> <externalIdentifier>sample string 10</externalIdentifier> <status>sample string 11</status> <amount>12</amount> <createDate>2025-08-21T17:10:09.0211308+00:00</createDate> <issueDate>2025-08-21T17:10:09.0211308+00:00</issueDate> <eligibilityDate>2025-08-21T17:10:09.0211308+00:00</eligibilityDate> <description>sample string 15</description> <transactionID>1024c0f9-45ab-4d2e-874d-ea170f8913be</transactionID> <updateDate>2025-08-21T17:10:09.0211308+00:00</updateDate> <referralDisplayName>sample string 17</referralDisplayName> <currencyCode>sample string 18</currencyCode> <source>sample string 19</source> <programRewardRuleId>97723f1e-4b04-41df-8eb0-e118b04b0d19</programRewardRuleId> <paymentType>sample string 20</paymentType> <paymentCode>sample string 21</paymentCode> <completeNote>sample string 22</completeNote> <reason>sample string 23</reason> <reasonOther>sample string 24</reasonOther> </reward> </newRewardResult> </ArrayOfnewRewardResult>