cURL
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.
Body
Request body for rewarding a social post
UUID of the loyalty currency to reward with
"123e4567-e89b-12d3-a456-426614174000"
Amount to reward
1 <= x <= 1000000
100
200
Response containing the reward transaction details
Show child attributes
Was this page helpful?