curl --request POST \
--url https://admin.snagsolutions.io/api/loyalty/transactions \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"description": "Purchase of item X",
"entries": [
{
"amount": 5,
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"direction": "credit",
"idempotencyKey": "example-idempotency-key",
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174090"
}
],
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174090",
"websiteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'