> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cog888.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Traditional Mode Reserved Credit Rollback

> This endpoint handles traditional proposal reserved credit change rollback (implemented by vendor)

Will keep retrying until successful. Implementer must handle properly to avoid duplicate credits



## OpenAPI

````yaml en/seamless-openapi.json POST /dt/callback/rollback_reserved
openapi: 3.1.0
info:
  title: Seamless Wallet API
  description: Seamless Wallet API documentation, including Game-API and Wallet-API
  version: 1.0.0
servers:
  - url: https://api.example.com
    description: API Server
security: []
tags:
  - name: Game-API User
    description: Game API - User operations
  - name: Game-API Report
    description: Game API - Report queries
  - name: Game-API Internal
    description: Game API - Internal use (hidden)
  - name: Wallet-API
    description: Wallet API - Implemented by vendor
paths:
  /dt/callback/rollback_reserved:
    post:
      tags:
        - Wallet-API
      summary: Traditional Proposal Reserved Credit Rollback
      description: >-
        This endpoint handles traditional proposal reserved credit change
        rollback (implemented by vendor)


        Will keep retrying until successful. Implementer must handle properly to
        avoid duplicate credits
      operationId: rollbackReserved
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - platform_id
                - token
                - uuid
                - account
                - type
                - canceled_id
                - transaction_id
                - credit
                - proposal_id
              properties:
                platform_id:
                  type: string
                  description: Platform product ID
                token:
                  type: string
                  description: >-
                    Verification code, md5(platform_id + uuid + account +
                    canceled_id + transaction_id + platform_secret)
                uuid:
                  type: string
                  description: Platform-defined unique request serial number
                account:
                  type: string
                  description: Player account
                type:
                  type: integer
                  description: 'Type: 1. Buy-in 2. Add-on'
                canceled_id:
                  type: string
                  description: >-
                    Transaction serial number to cancel, must be unique and
                    non-empty
                transaction_id:
                  type: string
                  description: >-
                    Transaction serial number, must be unique and non-empty
                    (1-128 characters, ASCII 32-126 printable characters only, `
                    and ~ are prohibited)
                credit:
                  type: integer
                  description: Amount, must be positive integer
                proposal_id:
                  type: integer
                  description: Player proposal ID, cannot be empty
            example:
              platform_id: H88
              token: E47A56947DF6DA25B6F95C3BFE5748E7
              uuid: lobby1-82818443591811
              account: walter123
              type: 1
              credit: 100
              proposal_id: 954654
              canceled_id: 005-200926080808-0000005
              transaction_id: 005-200926080808-0000005RB
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletApiResponseWithTransaction'
              example:
                code: 0
                message: success
                uuid: lobby1-82818443591811
                timestamp: 1668580007001
                data:
                  account: walter123
                  credit: 115
                  reserved: 100
                  balance: 215
                  platform_id: H88
                  transaction_id: 005-200926080808-0000005RB
components:
  schemas:
    WalletApiResponseWithTransaction:
      type: object
      properties:
        code:
          type: integer
          description: Error code
        message:
          type: string
          description: Error message
        uuid:
          type: string
          description: Custom unique request serial number
        timestamp:
          type: integer
          description: UNIX time, milliseconds
        data:
          type: object
          properties:
            account:
              type: string
              description: Player account
            credit:
              type: number
              description: Regular wallet credit
            reserved:
              type: number
              description: Reserved wallet credit
            balance:
              type: number
              description: Player total balance
            platform_id:
              type: string
              description: Platform product ID
            transaction_id:
              type: string
              description: Transaction serial number

````