> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.gomoney.me/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.gomoney.me/_mcp/server.

# Consultar adição de saldo por ID

GET https://gmc-api.gomoney.me/api/transactions/add-balance/{transactionId}

Recupera uma adição de saldo específica pertencente ao usuário autenticado.

Reference: https://docs.gomoney.me/en/api-reference/open-api-explorer/add-balance/get-add-balance-by-id

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: gomoney-docs-postman-collection
  version: 1.0.0
paths:
  /transactions/add-balance/{transactionId}:
    get:
      operationId: get-add-balance-by-id
      summary: Consultar adição de saldo por ID
      description: >-
        Recupera uma adição de saldo específica pertencente ao usuário
        autenticado.
      tags:
        - addBalance
      parameters:
        - name: transactionId
          in: path
          description: Identificador interno da cobrança PIX.
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Token retornado pelo endpoint `/users/integration/login`.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Cobrança encontrada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BalanceTransactionLookup'
        '401':
          description: Token inválido.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '417':
          description: Cobrança não encontrada ou sem vínculo com o usuário autenticado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
servers:
  - url: https://gmc-api.gomoney.me/api
    description: Base URL da API da plataforma
components:
  schemas:
    BalanceTransactionLookup:
      description: Any type
      title: BalanceTransactionLookup
    UnauthorizedError:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
      title: UnauthorizedError
    ApiError:
      type: object
      properties:
        statusCode:
          type: integer
        path:
          type: string
        code:
          type: string
        message:
          type: string
      title: ApiError
  securitySchemes:
    accessTokenBearer:
      type: http
      scheme: bearer
      description: Token retornado pelo endpoint `/users/integration/login`.
    secretKeyHeader:
      type: apiKey
      in: header
      name: secret-key
      description: Chave Base64 no formato `btoa(clientKey:clientSecret)`.

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "title": "Success",
  "balanceTransaction": {
    "_id": "66f0b1b5c1f7b7dc0ce40001",
    "user": "66f0b1b5c1f7b7dc0ce20001",
    "status": "COMPLETED",
    "summary": {
      "totalItems": 1,
      "completedItems": 1,
      "failedItems": 0,
      "totalTargetGmc": 1500.75
    },
    "items": [
      {
        "customerIdentifier": "66f0b1b5c1f7b7dc0ce20001",
        "sourceAmount": 1500.75,
        "sourceCurrency": "GMC",
        "targetGmcAmount": "1500.75",
        "status": "COMPLETED",
        "error": null,
        "customerWalletAddress": "0xAbC1234dEf567890aBcDeF1234567890aBcDeF12",
        "destinationWalletAddress": "0xDeF4567aBc8901234dEfAbC5678901234dEfAbC5",
        "fees": {
          "fixedBrl": 2.5,
          "percentageBrl": 0.75,
          "totalBrl": 3.25,
          "issueTaxBrl": 0.5,
          "issueTaxRate": 0.2,
          "fixedFeeSource": "applied",
          "percentageFeeSource": "applied",
          "issueTaxSource": "applied"
        },
        "conversion": {
          "brlPerGmc": 0.95,
          "usdtBrlRate": 5.25,
          "sourceAmountBrl": 1425.71
        },
        "blockchain": {
          "mintHash": null,
          "approveHash": null,
          "transferHash": null
        },
        "processedAt": "1683378670"
      }
    ],
    "createdAt": "1683378600",
    "updatedAt": "1683378670"
  }
}
```

**SDK Code**

```python success
import requests

url = "https://gmc-api.gomoney.me/api/transactions/add-balance/transactionId"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript success
const url = 'https://gmc-api.gomoney.me/api/transactions/add-balance/transactionId';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go success
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://gmc-api.gomoney.me/api/transactions/add-balance/transactionId"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby success
require 'uri'
require 'net/http'

url = URI("https://gmc-api.gomoney.me/api/transactions/add-balance/transactionId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java success
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://gmc-api.gomoney.me/api/transactions/add-balance/transactionId")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php success
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://gmc-api.gomoney.me/api/transactions/add-balance/transactionId', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp success
using RestSharp;

var client = new RestClient("https://gmc-api.gomoney.me/api/transactions/add-balance/transactionId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift success
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://gmc-api.gomoney.me/api/transactions/add-balance/transactionId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```