curl --request POST \
--url https://admin.snagsolutions.io/api/loyalty/posts/{id}/reward \
--header 'Content-Type: application/json' \
--data '{
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174000",
"amount": 100
}'
{
"success": true,
"transaction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"loyaltyCurrencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
Reward a user for their social post.
curl --request POST \
--url https://admin.snagsolutions.io/api/loyalty/posts/{id}/reward \
--header 'Content-Type: application/json' \
--data '{
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174000",
"amount": 100
}'
{
"success": true,
"transaction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"loyaltyCurrencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
Body
Request body for rewarding a social post
200
Response containing the reward transaction details
Was this page helpful?