post https://api.influitive.com/perks/reward/
Send a perk to an advocate when the reward requires shipping
Use the following API call to send a perk to an advocate where the reward requires shipping. Add a message in order for an email to sent to the advocate, notifying them of the reward that got sent*.
- to place linebreaks in the feedback message, place "\n" in place where the linebreak is supposed to be in the payload.
POST /perks/reward/0594649d-8h7c-49f0-b559-694b3f9c75x3 HTTP/1.1
Host: api.influitive.com
Content-Type: application/json
Accept: application/json
Authorization: Token 6bfa3b6256add25b71159d56ffa9ad4e629f7a30
X_ORG_ID: 9774649d-5e6c-49f0-b559-694b3f9c76e3
{
"contact_id": "1",
"send automatically": "true",
"shipping":
{
"address": "123 fake street",
"address_2": "apt 504",
"city": "Toronto",
"state": "Ontario",
"country": "Canada",
"phone_number": "(416) 555-2342"
},
"message": "Hey firstname,\n\nYou're reward is on it's way!",
"sender_id": 5
}
Returns the following response:
200
Send a perk where the advocate needs to manually redeem
POST /perks/reward/0594649d-8h7c-49f0-b559-694b3f9c75x3 HTTP/1.1
Host: api.influitive.com
Content-Type: application/json
Accept: application/json
Authorization: Token 6bfa3b6256add25b71159d56ffa9ad4e629f7a30
X_ORG_ID: 9774649d-5e6c-49f0-b559-694b3f9c76e3
{
"contact_id": "1",
"send automatically": "false",
}
Returns the following response:
200