---
agentTools:
  projectIndex: https://docs.theflyy.com/llms.txt
---

# Debit value from user's wallet

Use this endpoint to debit any amount from user's wallet of the specified type

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "FLYY Partner APIs",
    "description": "FLYY Partner APIs enable you to interact with the FLYY system\n\n# Overview\nProduction APIs are restricted by IP. For testing you can use the staging APIs.\n\nFor staging replace partner-api.theflyy.com with stage-partner-api.theflyy.com\n\n\n# Authentication\nEvery partner is given a partner_key to interact with the APIs which needs to be passed in the header as PARTNER-KEY",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://partner-api.theflyy.com"
    },
    {
      "url": "https://stage-partner-api.theflyy.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "PARTNER-KEY"
      }
    }
  },
  "security": [
    {
      "apiKey": [
        "securitySchemes"
      ]
    }
  ],
  "paths": {
    "/v1/{partner-id}/user_wallet/debit": {
      "post": {
        "tags": [
          "default"
        ],
        "summary": "Debit value from user's wallet",
        "description": "Use this endpoint to debit any amount from user's wallet of the specified type ",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "example": {
                  "request_id": "jajeI",
                  "ext_user_id": "7828011085",
                  "wallet_type_id": 25,
                  "debit_value": 3,
                  "debit_reason": "Redeemed to PayTM",
                  "firebase_token": "This is optional"
                }
              }
            }
          }
        },
        "security": [
          {
            "apikeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "partner-id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "default": {
            "description": "default",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "id": 3412,
                  "entity": "wallet_debit",
                  "request_id": "<request_id>",
                  "value": 10,
                  "created_at": 1572505143
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 146,
      "2": 156,
      "3": 60,
      "4": 169,
      "5": 120,
      "6": 200,
      "7": 0,
      "8": 31,
      "9": 95,
      "10": 81,
      "11": 13
    }
  }
}
```