cURL
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" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "description": "<string>", "entries": [ { "walletAddress": "<string>", "amount": 123, "direction": "credit", "idempotencyKey": "<string>" } ], "createdAt": "<string>", "updatedAt": "<string>" }
Create a loyalty transaction to update account balances.
Body
Schema for creating a loyalty transaction
Description of the loyalty transaction
"Purchase of item X"
Array of transaction entries
Show child attributes
Unique identifier for the loyalty currency
"123e4567-e89b-12d3-a456-426614174090"
200
Was this page helpful?