couponsby La Crypta
ApiRedemptions

Redemption history

Newest first, capped at 500. Closest thing to an orders table for zero-sat claims.

GET/api/coupons/redemptions

Newest first, capped at 500. Closest thing to an orders table for zero-sat claims.

Authorization<token>

Nostr <base64 of kind 27235 event>. Tags: u, method, optional payload (sha256 hex of body), and a random nonce to avoid replay.

In: header

Response Body

application/json

curl -X GET "https://example.com/api/coupons/redemptions"
{  "redemptions": [    {      "nonce": "string",      "claimedAt": 0,      "couponId": "string",      "name": "string",      "benefit": {        "type": "percent",        "percent": 0,        "productDs": [          "string"        ],        "cap": {          "amount": 1,          "currency": "ARS"        }      },      "order": {        "id": "string",        "pubkey": "string",        "created_at": 0,        "kind": 0,        "tags": [          [            "string"          ]        ],        "content": "string",        "sig": "string"      },      "orderId": "string",      "amountMsat": 0    }  ]}