---
updatedAt: 2026-11-09T10:15:10.000Z
agentTools:
  projectIndex: https://docs.developer.rabobank.com/payments/llms.txt
---

# Generate QR code for payment request

Generates a QR code for the given payment request

<Callout icon="👍" theme="okay">
  Unsure on where to begin? Checkout out our [Guide on Payment Request](https://docs.developer.rabobank.com/payments/docs/product-overview-pr)
</Callout>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "",
    "title": "Payment Request",
    "version": "2.2.12a",
    "x-api-id": "755eb72d-959e-4c16-9af7-5d3005b88788",
    "x-audience": "business-unit-internal",
    "x-ibm-name": "payment-request"
  },
  "servers": [
    {
      "url": "https://api.rabobank.nl/openapi/payments",
      "description": "Production server"
    },
    {
      "url": "https://api-sandbox.rabobank.nl/openapi/sandbox/payments",
      "description": "Sandbox server"
    }
  ],
  "paths": {
    "/payment-requests/{id}/qr-codes": {
      "get": {
        "parameters": [
          {
            "description": "This is the internal id of the particular Payment Request and present in the response of the POST or GET /payment-requests call.",
            "example": "2f280203-fb0f-43db-ac3b-3211d3b98f22",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "This is the unique ID of Initiating Party for the request",
            "example": "95126d8f-ae9d-4ac3-ac9e-c357dcd78811",
            "in": "header",
            "name": "x-request-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully generated QR code for payment request"
          },
          "401": {
            "content": {
              "image/png, application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "errorCode": "VALIDATION_ERROR",
                      "errorMessage": "Validation exception occurred"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Missing PathVariable id"
          },
          "403": {
            "content": {
              "image/png, application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "errorCode": "NOCONSENTSPECIFIED_ERROR",
                      "errorMessage": "No consent specified"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "If the consent information is invalid or the user has not given consent for the account of the payment request"
          },
          "404": {
            "content": {
              "image/png, application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "errorCode": "NOTFOUND_ERROR",
                      "errorMessage": "PaymentRequest cannot be found"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "If PaymentRequest cannot be found in database or belongs to another  user"
          },
          "500": {
            "content": {
              "image/png, application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "errorCode": "TECHNICAL_ERROR",
                      "errorMessage": "Unexpected exception occurred"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Generating QR Code failed due to some server error"
          }
        },
        "tags": [
          "payment-request-service"
        ],
        "deprecated": false,
        "description": "Generates a QR code for the given payment request",
        "operationId": "generateQRCode",
        "summary": "Generate QR code for payment request"
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "properties": {
          "errorCode": {
            "enum": [
              "TECHNICAL_ERROR",
              "VALIDATION_ERROR",
              "NOTFOUND_ERROR",
              "NOCONSENTSPECIFIED_ERROR",
              "CONSENTNOTVALIDFORACCOUNT_ERROR",
              "CERTIFICATE_VALIDATION_ERROR",
              "SIGNATURE_VALIDATION_ERROR"
            ],
            "type": "string",
            "xml": {
              "attribute": false,
              "name": "errorCode",
              "wrapped": false
            }
          },
          "errorMessage": {
            "description": "the error message",
            "example": "Unkown error",
            "type": "string",
            "xml": {
              "attribute": false,
              "name": "errorMessage",
              "wrapped": false
            }
          }
        },
        "title": "Error",
        "type": "object"
      }
    },
    "securitySchemes": {
      "clientId": {
        "description": "ClientId as provided by the Rabobank developer portal.",
        "in": "header",
        "name": "X-IBM-Client-Id",
        "type": "apiKey"
      },
      "oauth2_premium_access_code_flow_payment-request": {
        "description": "NOTE Please use the Authorization and Token URL as provided by the oAuth2 Services. Scope: prs.paymentrequest.read-write",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://oauth.rabobank.nl/openapi/oauth2-premium/authorize",
            "scopes": {
              "prs.paymentrequest.read-write": "Consent for payment request"
            },
            "tokenUrl": "https://oauth.rabobank.nl/openapi/oauth2-premium/token"
          }
        },
        "type": "oauth2",
        "x-ibm-oauth-provider": "access-authorization-1-0-0-8e24"
      }
    }
  },
  "security": [
    {
      "clientId": [],
      "oauth2_premium_access_code_flow_payment-request": [
        "prs.paymentrequest.read-write"
      ]
    }
  ],
  "tags": [
    {
      "description": "Payment request public endpoints",
      "name": "payment-request-service"
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false
  }
}
```