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

# Create Static QR Code

The Create Static QR Code endpoint allows you to generate a static QR code for receiving payments. This QR code can be used by your customers to initiate payment transactions. You need to provide the Pix key ID, the amount to be received (you can specify 0 to enable any amount), a description for the payment, and an optional transaction ID that can be used for reconciliation purposes.

# 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/static_qrc": {
      "post": {
        "summary": "Create Static QR Code",
        "description": "The Create Static QR Code endpoint allows you to generate a static QR code for receiving payments. This QR code can be used by your customers to initiate payment transactions. You need to provide the Pix key ID, the amount to be received (you can specify 0 to enable any amount), a description for the payment, and an optional transaction ID that can be used for reconciliation purposes.",
        "operationId": "create-static-qr-code",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "pix_key_id",
                  "amount"
                ],
                "properties": {
                  "pix_key_id": {
                    "type": "integer",
                    "description": "Pix key ID. Tip: Fetch keys using \"List Pix keys\" endpoint.",
                    "format": "int32"
                  },
                  "amount": {
                    "type": "number",
                    "description": "Amount to receive from payment. To enable any amount to be paid, fill this field with 0.",
                    "default": 0,
                    "format": "float"
                  },
                  "description": {
                    "type": "string",
                    "description": "Description for payment (max 40 chars)"
                  },
                  "transaction_id": {
                    "type": "string",
                    "description": "Tip: can be used as conciliation identifier."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"encoded_value\": \"MDAwMjAxMDEwMjExMjY3NTAwMTRici5nb3YuYmNiLnBpeDAxMzY3Mzg5OGY1YS1kNjQ2LTQ1NGEtODlhOC1iODNhOGU4MmM4YjkwMjEzVEVTVEUgUVVBTElUWTUyMDQwMDAwNTMwMzk4NjU0MDQ3LjAwNTgwMkJSNTkyNUJSVU5PIEVEVUFSRE8gQVJBVUpPIFNPVVo2MDA4Q1VSSVRJQkE2MTA4ODA0MjAxMjA2MjA3MDUwMyoqKjYzMDRGRjk0\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "encoded_value": {
                      "type": "string",
                      "example": "MDAwMjAxMDEwMjExMjY3NTAwMTRici5nb3YuYmNiLnBpeDAxMzY3Mzg5OGY1YS1kNjQ2LTQ1NGEtODlhOC1iODNhOGU4MmM4YjkwMjEzVEVTVEUgUVVBTElUWTUyMDQwMDAwNTMwMzk4NjU0MDQ3LjAwNTgwMkJSNTkyNUJSVU5PIEVEVUFSRE8gQVJBVUpPIFNPVVo2MDA4Q1VSSVRJQkE2MTA4ODA0MjAxMjA2MjA3MDUwMyoqKjYzMDRGRjk0"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "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:62b202727017820044211bca"
}
```