---
updatedAt: 2025-11-11T00:09:35.000Z
agentTools:
  projectIndex: https://docs.interswitchgroup.com/v1.1/llms.txt
---

# Generate QR Code

This endpoint generates a QR code for a payment transaction.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "accept-payments-new",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://qa.interswitchng.com"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/collections/api/v1/sdk/qr/generate": {
      "post": {
        "summary": "Generate QR Code",
        "description": "This endpoint generates a QR code for a payment transaction.",
        "operationId": "generate-qr",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "Bearer eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOlsiaXN3LWNvbGxlY3Rpb25zIiwiaXN3LXBheW1lbnRnYXRld2F5IiwicGFzc3BvcnQiLCJwcm9qZWN0LXgtbWVyY2hhbnQiLCJ2YXVsdCJdLCJtZXJjaGFudF9jb2RlIjoiTVg2MDcyIiwicmVxdWVzdG9yX2lkIjoiMTIzODA4NTk1MDMiLCJzY29wZSI6WyJwcm9maWxlIl0sImp0aSI6ImI2MjE1YjhlLTE0MzQtNGVjMC1hN2QwLWU3ZDRjYWNlM2Y3NyIsInBheWFibGVfaWQiOiIzMzU5NyIsImNsaWVudF9pZCI6IklLSUFCMjNBNEUyNzU2NjA1QzFBQkMzM0NFM0MyODdFMjcyNjdGNjYwRDYxIn0.RFZ5W1cJUo6iR6rorXGuackdISc4Tb7rCPeah6JOP948sEri2iVezeiBMFK276uym0GCDDuM6FFwxonsfmlOL5l7Grjs7TSE5OYf4tVKdamtTb61NzQGjBzfNVhjxSHH6rDlWvZe9JNEjiiBcnIaBXgoeb4LSG66ezasyHVzW7UYAHA8SbUX6GolrJKPb8VYiXAPy1TNN_5FwLQNPmCnl91UoE_odYWb0-oC-ScmMFm_iZUWt7Y7ZJwGJJrxijUA3p0PX8g4ME-pkIl7Kyp3JOtLTUUM-f-VXk2uVqmnSgdU68fOpt7Ji69jV8CEq9e_1xiIV__dxm3-KgznbSCzJA"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string",
                    "description": "The amount to be paid in the currency specified by currencyCode.",
                    "default": "0"
                  },
                  "surcharge": {
                    "type": "string",
                    "description": "The surcharge to be added to the amount. Default is 0.",
                    "default": "0"
                  },
                  "currencyCode": {
                    "type": "string",
                    "description": "The ISO numeric code of the currency",
                    "default": "566"
                  },
                  "merchantTransactionReference": {
                    "type": "string",
                    "description": "A unique identifier for the transaction provided by the merchant.",
                    "default": "2222aaa1123h"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"qrCodeId\": \"534781000054523\",\n    \"qrCodeIdMasterPass\": \"534781000054523\",\n    \"rawQRData\": \"00020104155347810000545235204539953035665406100.005802NG5904sadd6004sdsd621605122222aaa1123h6304EBBE\",\n    \"transactionReference\": \"2222aaa1123h\"\n} "
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "qrCodeId": {
                      "type": "string",
                      "example": "534781000054523"
                    },
                    "qrCodeIdMasterPass": {
                      "type": "string",
                      "example": "534781000054523"
                    },
                    "rawQRData": {
                      "type": "string",
                      "example": "00020104155347810000545235204539953035665406100.005802NG5904sadd6004sdsd621605122222aaa1123h6304EBBE"
                    },
                    "transactionReference": {
                      "type": "string",
                      "example": "2222aaa1123h"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```