---
agentTools:
  projectIndex: https://mk-bank.readme.io/llms.txt
---

# Fetch instant charge

The Fetch Instant Charge endpoint allows you to retrieve the details of a specific instant charge using its transaction ID (TXID). Use this endpoint to retrieve information about a previously created instant charge, such as the expiration time, payer's information, payment amount, description, additional information, and more.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "MK Bank Account API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://core-h.mkbank.com.br/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/pix/cob/{txid}": {
      "get": {
        "summary": "Fetch instant charge",
        "description": "The Fetch Instant Charge endpoint allows you to retrieve the details of a specific instant charge using its transaction ID (TXID). Use this endpoint to retrieve information about a previously created instant charge, such as the expiration time, payer's information, payment amount, description, additional information, and more.",
        "operationId": "fetch-instant-charge",
        "parameters": [
          {
            "name": "txid",
            "in": "path",
            "description": "Transaction ID",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"calendario\": {\n        \"criacao\": \"2023-07-24T20:03:06.000000Z\",\n        \"expiracao\": \"3600\"\n    },\n    \"txid\": \"467cbd44fdc240b48acb82825579kdj2\",\n    \"revisao\": 0,\n    \"loc\": {\n        \"id\": 45289,\n        \"location\": \"https://core-h.mkbank.com.br/api/cob/c244c99e4cc2470c86bab1b4762067e1\",\n        \"tipoCob\": \"cob\"\n    },\n    \"location\": \"https://core-h.mkbank.com.br/api/cob/c244c99e4cc2470c86bab1b4762067e1\",\n    \"status\": \"ATIVA\",\n    \"devedor\": {\n        \"cpf\": \"01010101010\",\n        \"nome\": \"João teste\"\n    },\n    \"valor\": {\n        \"original\": \"25\"\n    },\n    \"chave\": \"1aaaa632-bf08-4696-a624-a286464eee1e\",\n    \"solicitacaoPagador\": \"divida de emprestimo\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "calendario": {
                      "type": "object",
                      "properties": {
                        "criacao": {
                          "type": "string",
                          "example": "2023-07-24T20:03:06.000000Z"
                        },
                        "expiracao": {
                          "type": "string",
                          "example": "3600"
                        }
                      }
                    },
                    "txid": {
                      "type": "string",
                      "example": "467cbd44fdc240b48acb82825579kdj2"
                    },
                    "revisao": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "loc": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 45289,
                          "default": 0
                        },
                        "location": {
                          "type": "string",
                          "example": "https://core-h.mkbank.com.br/api/cob/c244c99e4cc2470c86bab1b4762067e1"
                        },
                        "tipoCob": {
                          "type": "string",
                          "example": "cob"
                        }
                      }
                    },
                    "location": {
                      "type": "string",
                      "example": "https://core-h.mkbank.com.br/api/cob/c244c99e4cc2470c86bab1b4762067e1"
                    },
                    "status": {
                      "type": "string",
                      "example": "ATIVA"
                    },
                    "devedor": {
                      "type": "object",
                      "properties": {
                        "cpf": {
                          "type": "string",
                          "example": "01010101010"
                        },
                        "nome": {
                          "type": "string",
                          "example": "João teste"
                        }
                      }
                    },
                    "valor": {
                      "type": "object",
                      "properties": {
                        "original": {
                          "type": "string",
                          "example": "25"
                        }
                      }
                    },
                    "chave": {
                      "type": "string",
                      "example": "1aaaa632-bf08-4696-a624-a286464eee1e"
                    },
                    "solicitacaoPagador": {
                      "type": "string",
                      "example": "divida de emprestimo"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"Resource not found\",\n    \"code\": 0,\n    \"data\": []\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Resource not found"
                    },
                    "code": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6297b52a229a9b00142bff3c:63c6c2eba6c3dc06684eba86"
}
```