> 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 cobrança PIX por ID

GET https://gmc-api.gomoney.me/api/pix/{pixId}

Recupera uma cobrança PIX específica pertencente ao usuário autenticado.

Reference: https://docs.gomoney.me/api-reference/open-api-explorer/pix-charges/get-pix-charge-by-id

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: gomoney-docs-postman-collection
  version: 1.0.0
paths:
  /pix/{pixId}:
    get:
      operationId: get-pix-charge-by-id
      summary: Consultar cobrança PIX por ID
      description: Recupera uma cobrança PIX específica pertencente ao usuário autenticado.
      tags:
        - pixCharges
      parameters:
        - name: pixId
          in: path
          description: Identificador interno da cobrança PIX.
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Token retornado pelo endpoint `/auth/login`.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Cobrança encontrada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PixChargeLookup'
        '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/PixApiError'
servers:
  - url: https://gmc-api.gomoney.me/api
    description: Base URL da API da plataforma
  - url: https://api-pix.gomoney.me
    description: Base URL da API PIX
components:
  schemas:
    PixQrCode:
      type: object
      properties:
        emv:
          type: string
        png:
          type: string
      title: PixQrCode
    PixChargeLookupPix:
      type: object
      properties:
        qrcode:
          $ref: '#/components/schemas/PixQrCode'
      title: PixChargeLookupPix
    PixChargeLookup:
      type: object
      properties:
        _id:
          type: string
        txid:
          type: string
        amount:
          type: number
          format: double
        credit:
          type: number
          format: double
        status:
          type: string
        customerIdentifier:
          type: string
        paymentDate:
          type: integer
          format: int64
        pix:
          $ref: '#/components/schemas/PixChargeLookupPix'
      title: PixChargeLookup
    UnauthorizedError:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
      title: UnauthorizedError
    PixApiError:
      type: object
      properties:
        statusCode:
          type: integer
        path:
          type: string
        code:
          type: string
        message:
          type: string
      title: PixApiError
  securitySchemes:
    accessTokenBearer:
      type: http
      scheme: bearer
      description: Token retornado pelo endpoint `/auth/login`.

```

## Examples



**Response**

```json
{
  "_id": "66f0b1b5c1f7b7dc0ce40001",
  "txid": "4b8f5a4f7d8c4b45a5a6258a7e2b1234",
  "amount": 150.5,
  "credit": 146.24,
  "status": "paid",
  "customerIdentifier": "66f0b1b5c1f7b7dc0ce30001",
  "paymentDate": 1783189200000,
  "pix": {
    "qrcode": {
      "emv": "0002010102122680...",
      "png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
    }
  }
}
```

**SDK Code**

```python success
import requests

url = "https://gmc-api.gomoney.me/api/pix/pixId"

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript success
const url = 'https://gmc-api.gomoney.me/api/pix/pixId';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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"
	"net/http"
	"io"
)

func main() {

	url := "https://gmc-api.gomoney.me/api/pix/pixId"

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

	req.Header.Add("Authorization", "Bearer <token>")

	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/pix/pixId")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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/pix/pixId")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://gmc-api.gomoney.me/api/pix/pixId', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp success
using RestSharp;

var client = new RestClient("https://gmc-api.gomoney.me/api/pix/pixId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift success
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://gmc-api.gomoney.me/api/pix/pixId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```