{
  "openapi": "3.1.0",
  "info": {
    "title": "SkinsNode Deposits - Planned Contract",
    "version": "0.1.0-draft",
    "description": "DESIGN PREVIEW. Not deployed. CS2 skin deposits: inventory valuation -> user deposits selected skins -> credit to the authenticated SkinsNode API client account, not a cash payout to the Steam user. Available balance is credited only after verified settlement. Buy orders keep the existing /v1/catalog and /v1/orders contract. Prices are integer USD cents. Refinements and lifecycle rules are normative in /docs/deposits.md."
  },
  "x-release-status": "planned",
  "x-intended-api-base": "https://api.skinsnode.com",
  "servers": [
    {
      "url": "https://not-deployed.invalid",
      "description": "Non-routable placeholder: no live deposits endpoint yet."
    }
  ],
  "security": [
    {
      "clientId": [],
      "clientSecret": []
    }
  ],
  "paths": {
    "/v1/deposits/quotes": {
      "post": {
        "operationId": "requestDepositQuote",
        "summary": "Request a client-scoped inventory valuation (planned)",
        "x-release-status": "planned",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Durably accepted, not executed or credited. Pending inventory quotes have empty items and no expiry. Replays return the same resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Quote"
                }
              }
            }
          },
          "400": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/deposits/quotes/{quoteId}": {
      "get": {
        "operationId": "getDepositQuote",
        "x-release-status": "planned",
        "parameters": [
          {
            "name": "quoteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tenant-scoped current snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Quote"
                }
              }
            }
          },
          "400": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/deposits/offers": {
      "post": {
        "operationId": "createDepositOffer",
        "summary": "Accept a quote and start the deposit for SkinsNode account credit (planned)",
        "x-release-status": "planned",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OfferRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Durably accepted, not executed or credited. Pending inventory quotes have empty items and no expiry. Replays return the same resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Transaction"
                }
              }
            }
          },
          "400": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/deposits/offers/{externalId}": {
      "get": {
        "operationId": "getDepositOffer",
        "x-release-status": "planned",
        "parameters": [
          {
            "name": "externalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tenant-scoped current snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Transaction"
                }
              }
            }
          },
          "400": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "See error code. Honor Retry-After on 429/503; never create a replacement operation after an uncertain result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "deposit.updated": {
      "post": {
        "summary": "Signed full transaction snapshot (planned)",
        "security": [],
        "parameters": [
          {
            "name": "x-timestamp",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "HMAC-SHA256 hex over x-timestamp + period + raw body, using client webhook secret. x-timestamp is Unix milliseconds. Reject outside a five-minute replay window, persist eventId before acknowledging, and apply only increasing transaction revisions. This is distinct from bot webhook headers.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Durably stored in the receiver inbox."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "clientId": {
        "type": "apiKey",
        "in": "header",
        "name": "x-client-id"
      },
      "clientSecret": {
        "type": "apiKey",
        "in": "header",
        "name": "x-client-secret"
      }
    },
    "schemas": {
      "QuoteRequest": {
        "type": "object",
        "properties": {
          "partnerSteamId": {
            "type": "string",
            "pattern": "^\\d{17}$"
          },
          "tradeUrl": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          }
        },
        "required": [
          "partnerSteamId",
          "tradeUrl"
        ],
        "additionalProperties": false
      },
      "Quote": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "failed"
            ]
          },
          "currency": {
            "type": "string",
            "const": "USD"
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "itemId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "inventoryAssetId": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{0,19}$"
                },
                "marketHashName": {
                  "type": "string",
                  "minLength": 1
                },
                "phase": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "amount": {
                  "type": "number",
                  "const": 1
                },
                "imageUrl": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uri"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sellable": {
                  "type": "boolean"
                },
                "creditAmountCents": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unavailableReason": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "itemId",
                "inventoryAssetId",
                "marketHashName",
                "phase",
                "amount",
                "imageUrl",
                "sellable",
                "creditAmountCents",
                "unavailableReason"
              ],
              "additionalProperties": false
            }
          },
          "failureCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "quoteId",
          "status",
          "currency",
          "expiresAt",
          "items",
          "failureCode"
        ],
        "additionalProperties": false
      },
      "OfferRequest": {
        "type": "object",
        "properties": {
          "externalId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "quoteId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "items": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "itemId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                }
              },
              "required": [
                "itemId"
              ],
              "additionalProperties": false
            }
          },
          "expectedCreditAmountCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "webhookUrl": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          }
        },
        "required": [
          "externalId",
          "quoteId",
          "items",
          "expectedCreditAmountCents",
          "webhookUrl"
        ],
        "additionalProperties": false
      },
      "Transaction": {
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "externalId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "quoteId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "verifying",
              "pending",
              "on_hold",
              "success",
              "canceled",
              "reverted",
              "failed"
            ]
          },
          "currency": {
            "type": "string",
            "const": "USD"
          },
          "creditAmountCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "creditStatus": {
            "type": "string",
            "enum": [
              "not_credited",
              "pending",
              "available",
              "reversed"
            ]
          },
          "walletTransactionId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "holdReleaseAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "steamTradeOfferId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[1-9]\\d{0,19}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "botSteamId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{17}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "itemId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "inventoryAssetId": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{0,19}$"
                },
                "marketHashName": {
                  "type": "string",
                  "minLength": 1
                },
                "phase": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "amount": {
                  "type": "number",
                  "const": 1
                },
                "imageUrl": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uri"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sellable": {
                  "type": "boolean"
                },
                "creditAmountCents": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unavailableReason": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "itemId",
                "inventoryAssetId",
                "marketHashName",
                "phase",
                "amount",
                "imageUrl",
                "sellable",
                "creditAmountCents",
                "unavailableReason"
              ],
              "additionalProperties": false
            }
          },
          "failureCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "transactionId",
          "externalId",
          "quoteId",
          "status",
          "currency",
          "creditAmountCents",
          "creditStatus",
          "walletTransactionId",
          "holdReleaseAt",
          "steamTradeOfferId",
          "botSteamId",
          "items",
          "failureCode",
          "revision",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "TransactionEvent": {
        "type": "object",
        "properties": {
          "version": {
            "type": "number",
            "const": 1
          },
          "eventId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "type": {
            "type": "string",
            "const": "deposit.updated"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "data": {
            "type": "object",
            "properties": {
              "transactionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "externalId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "quoteId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "status": {
                "type": "string",
                "enum": [
                  "new",
                  "verifying",
                  "pending",
                  "on_hold",
                  "success",
                  "canceled",
                  "reverted",
                  "failed"
                ]
              },
              "currency": {
                "type": "string",
                "const": "USD"
              },
              "creditAmountCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "creditStatus": {
                "type": "string",
                "enum": [
                  "not_credited",
                  "pending",
                  "available",
                  "reversed"
                ]
              },
              "walletTransactionId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "holdReleaseAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "steamTradeOfferId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[1-9]\\d{0,19}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "botSteamId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{17}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "items": {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "itemId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "inventoryAssetId": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{0,19}$"
                    },
                    "marketHashName": {
                      "type": "string",
                      "minLength": 1
                    },
                    "phase": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "amount": {
                      "type": "number",
                      "const": 1
                    },
                    "imageUrl": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uri"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sellable": {
                      "type": "boolean"
                    },
                    "creditAmountCents": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unavailableReason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "itemId",
                    "inventoryAssetId",
                    "marketHashName",
                    "phase",
                    "amount",
                    "imageUrl",
                    "sellable",
                    "creditAmountCents",
                    "unavailableReason"
                  ],
                  "additionalProperties": false
                }
              },
              "failureCode": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              }
            },
            "required": [
              "transactionId",
              "externalId",
              "quoteId",
              "status",
              "currency",
              "creditAmountCents",
              "creditStatus",
              "walletTransactionId",
              "holdReleaseAt",
              "steamTradeOfferId",
              "botSteamId",
              "items",
              "failureCode",
              "revision",
              "updatedAt"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "version",
          "eventId",
          "type",
          "timestamp",
          "data"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "INVALID_REQUEST",
              "UNAUTHORIZED",
              "FORBIDDEN",
              "NOT_FOUND",
              "IDEMPOTENCY_CONFLICT",
              "QUOTE_EXPIRED",
              "QUOTE_UNAVAILABLE",
              "PRICE_CHANGED",
              "ITEMS_UNAVAILABLE",
              "INVENTORY_PRIVATE",
              "ACCOUNT_RESTRICTED",
              "RATE_LIMITED",
              "FEATURE_NOT_AVAILABLE",
              "TEMPORARILY_UNAVAILABLE"
            ]
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}
