POST
/
api
/
loyalty
/
transactions
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": [
    {
      "walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
      "direction": "credit",
      "amount": 5,
      "idempotencyKey": "example-idempotency-key"
    }
  ],
  "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>"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
Body

Schema for creating a loyalty transaction

description
string
required

Description of the loyalty transaction

Example:

"Purchase of item X"

entries
object[]
required

Array of transaction entries

loyaltyCurrencyId
string

Unique identifier for the loyalty currency

Example:

"123e4567-e89b-12d3-a456-426614174090"

Response

200
application/json
200
id
string
required
description
string
required
entries
object[]
required
createdAt
string
required
updatedAt
string
required