{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "ComputeRewardsReply", "description": "ComputeRewardsReply schema from Paytronix Server API", "$id": "https://raw.githubusercontent.com/api-evangelist/paytronix/refs/heads/main/json-schema/server-api-compute-rewards-reply-schema.json", "type": "object", "properties": { "result": { "type": "string", "example": "success" }, "customerName": { "type": "string", "example": "Jane Doe" }, "tierCode": { "type": "string", "example": "GOLD" }, "printedCardNumber": { "type": "string", "example": "60490012345678" }, "itemDiscounts": { "type": "array", "items": { "type": "object", "properties": { "itemCode": { "type": "string" }, "discountAmount": { "type": "number" }, "rewardName": { "type": "string" } } } }, "subtotalDiscounts": { "type": "array", "items": { "type": "object", "properties": { "discountAmount": { "type": "number" }, "rewardName": { "type": "string" } } } }, "walletBalances": { "type": "array", "items": { "$ref": "#/components/schemas/WalletBalance" } }, "receiptText": { "type": "string" } } }