{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-redemption-schema.json",
  "title": "Redemption",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-coupon-redemptions-api-openapi.yml#/components/schemas/Redemption",
  "type": "object",
  "properties": {
    "account_code": {
      "type": "string",
      "description": ""
    },
    "redemption_uuid": {
      "type": "string",
      "description": ""
    },
    "coupon": {
      "type": "string",
      "description": "The link to the coupon used"
    },
    "account": {
      "type": "string",
      "description": "The link to the account"
    },
    "subscription": {
      "type": "string",
      "description": "The link to the subscription (only available if redeemed on a subscription)"
    },
    "uuid": {
      "type": "string",
      "description": "The unique UUID referencing this redemption."
    },
    "single_use": {
      "type": "boolean",
      "description": "True if this is a single_use coupon"
    },
    "total_discounted_in_cents": {
      "type": "integer",
      "description": "Total in cents for the discount issued with this redemption"
    },
    "currency": {
      "type": "string",
      "description": "The currency used at the time of purchase"
    },
    "state": {
      "type": "string",
      "description": "The state of the redemption. Can be `active` or `inactive`"
    },
    "coupon_code": {
      "type": "string",
      "description": "The coupon code of the coupon used"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "The datetime this redemption was created"
    },
    "updated_at": {
      "type": "string",
      "description": "The datetime this redemption was last updated"
    }
  }
}