---
agentTools:
  projectIndex: https://chimoney.readme.io/llms.txt
---

# Get single wallet details.

Retrieves detailed information about a specific wallet, including its ID, type, owner, current balance, and a history of transactions.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Chimoney API Docs",
    "version": "0.2.4",
    "description": "This is the latest version of the Chimoney API. For deprecated version routes, please refer to /v0.2/api-docs."
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.chimoney.io/",
      "description": "Prod Server"
    },
    {
      "url": "https://api-v2-sandbox.chimoney.io",
      "description": "Sandbox API v2 (v0.2.4)"
    }
  ],
  "paths": {
    "/v0.2.4/wallets/lookup": {
      "post": {
        "summary": "Get single wallet details.",
        "tags": [
          "Wallet"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subAccount": {
                    "type": "string",
                    "description": "Subaccount if any.",
                    "example": "1234567"
                  },
                  "walletID": {
                    "type": "string",
                    "description": "Id of wallet.",
                    "example": "12"
                  }
                },
                "required": [
                  "walletID"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Status of the response.",
                      "example": "success"
                    },
                    "message": {
                      "type": "string",
                      "description": "Descriptive message.",
                      "example": "Wallet retrieved successfully"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique ID of the wallet.",
                          "example": "kb41D9JfAVL64RqRtUP7"
                        },
                        "owner": {
                          "type": "string",
                          "description": "ID of the owner of the wallet.",
                          "example": "63576330-b5f6-4279-9324-80633ce14710"
                        },
                        "balance": {
                          "type": "number",
                          "description": "Balance of the wallet.",
                          "example": 1000
                        },
                        "type": {
                          "type": "string",
                          "description": "Type of the wallet.",
                          "example": "airtime"
                        },
                        "transactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number",
                                "description": "Amount involved in the transaction.",
                                "example": 0
                              },
                              "balanceBefore": {
                                "type": "number",
                                "description": "Balance before the transaction.",
                                "example": 1000
                              },
                              "meta": {
                                "type": "object",
                                "properties": {
                                  "date": {
                                    "type": "object",
                                    "properties": {
                                      "_seconds": {
                                        "type": "integer",
                                        "description": "Date in seconds since epoch.",
                                        "example": 1721543195
                                      },
                                      "_nanoseconds": {
                                        "type": "integer",
                                        "description": "Nanoseconds part of the timestamp.",
                                        "example": 417000000
                                      }
                                    }
                                  }
                                }
                              },
                              "newBalance": {
                                "type": "number",
                                "description": "New balance after the transaction.",
                                "example": 1000
                              },
                              "description": {
                                "type": "string",
                                "description": "Description of the transaction.",
                                "example": "new wallet creation transaction"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "type": {
                      "type": "string",
                      "example": "Resource Not Found"
                    },
                    "code": {
                      "type": "string",
                      "example": "WALLET_NOT_FOUND"
                    },
                    "message": {
                      "type": "string",
                      "example": "Wallet not found or not owned by sender"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    },
    "responses": {
      "Forbidden": {
        "description": "Access to this resource is forbidden.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Forbidden"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Access to this resource is not available for unauthenticated users.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Unauthorized"
            }
          }
        }
      },
      "ServerError": {
        "description": "Indicates an internal server error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ServerError"
            }
          }
        }
      },
      "ValidationError": {
        "description": "Validation error in the request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      }
    },
    "schemas": {
      "Forbidden": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the response.",
            "example": "error"
          },
          "error": {
            "type": "string",
            "description": "Error message indicating forbidden access.",
            "example": "API Access not enabled for account Test. Email support@chimoney.io"
          }
        }
      },
      "Unauthorized": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the response.",
            "example": "error"
          },
          "error": {
            "type": "string",
            "description": "Error message indicating unauthorized access.",
            "example": "API key is not defined. Generate a new one from the developer portal."
          }
        }
      },
      "ServerError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the error.",
            "example": "error"
          },
          "type": {
            "type": "string",
            "description": "Type of server error.",
            "example": "server error"
          },
          "code": {
            "type": "string",
            "description": "Specific error code for server issues.",
            "example": "INTERNAL_SERVER_ERROR"
          },
          "message": {
            "type": "string",
            "description": "Detailed message explaining the issue.",
            "example": "An internal server error occurred."
          }
        }
      },
      "ValidationError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the validation error.",
            "example": "error"
          },
          "type": {
            "type": "string",
            "description": "Type of validation error.",
            "example": "Validation Error"
          },
          "code": {
            "type": "string",
            "description": "Error code indicating validation issue.",
            "example": "INVALID_REQUEST"
          },
          "message": {
            "type": "string",
            "description": "Detailed validation error message.",
            "example": "The request parameters are invalid."
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Wallet",
      "description": "All wallet operations."
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 208,
      "2": 243,
      "3": 240,
      "4": 73,
      "5": 214,
      "6": 34,
      "7": 0,
      "8": 37,
      "9": 190,
      "10": 200,
      "11": 166
    }
  }
}
```