{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://theloopbreaker.com/schemas/v3-x402/receipt-error.v1.schema.json",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "schemaVersion",
    "protocolVersion",
    "error",
    "code",
    "retryable"
  ],
  "properties": {
    "schema": {
      "const": "vaultfire.v3.x402.receipt-error.v1"
    },
    "schemaVersion": {
      "const": "1.0.0"
    },
    "protocolVersion": {
      "const": "3.0.0"
    },
    "error": {
      "type": "string",
      "minLength": 1
    },
    "code": {
      "enum": [
        "v3_receipt_store_unconfigured",
        "v3_receipt_not_found",
        "v3_receipt_store_unavailable"
      ]
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,159}$"
    },
    "retryable": {
      "type": "boolean"
    }
  }
}
