{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/billdog-io/json-schema/billdog-io-post-functions-v1-redeem-purchase-response-schema.json",
  "title": "PostFunctionsV1RedeemPurchaseResponse",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/billdog-io-openapi-generated.yml#/components/schemas/PostFunctionsV1RedeemPurchaseResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object"
    },
    "data.redeemed": {
      "type": "boolean"
    },
    "data.customer_id": {
      "type": "string"
    },
    "data.product": {
      "type": "object"
    },
    "data.product.id": {
      "type": "string"
    },
    "data.product.identifier": {
      "type": "string"
    },
    "data.product.name": {
      "type": "string"
    },
    "data.product.type": {
      "type": "string"
    },
    "data.entitlements": {
      "type": "array",
      "description": "list of entitlements"
    },
    "data.entitlements[].id": {
      "type": "string"
    },
    "data.entitlements[].identifier": {
      "type": "string"
    },
    "data.entitlements[].name": {
      "type": "string"
    },
    "data.subscription": {
      "type": "object"
    },
    "data.subscription.stripe_subscription_id": {
      "type": "string"
    },
    "data.subscription.current_period_end": {
      "type": "string"
    },
    "meta": {
      "type": "object"
    },
    "meta.request_id": {
      "type": "string"
    }
  }
}