---
title: Create QRIS
slug: nicepay-api-snap-testing-create-qris
description: Informasi tentang cara uji coba API SNAP - Create QRIS yang disediakan oleh NICEPAY
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/TMikf-QOUUT_XvfvmOnwq_rdrx9d8diaz-pgm07xfz2-test.png
docTags: 
createdAt: 2024-05-08T06:45:29.819Z
---

{
  "id": "ubtvFt-Krzp59aZe8xsQa",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate",
    "servers": [
      {
        "url": "https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate"
      },
      {
        "url": "https://staging.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate"
      },
      {
        "url": "https://www.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate"
      }
    ],
    "name": "Create QRIS",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "kind": "required",
          "name": "X-TIMESTAMP",
          "type": "string",
          "example": "2022-08-04T23:59:59+07:00"
        },
        {
          "kind": "required",
          "name": "X-SIGNATURE",
          "type": "string",
          "default": "RtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg=="
        },
        {
          "kind": "required",
          "name": "X-PARTNER-ID",
          "type": "string",
          "example": "TNICEQR081"
        },
        {
          "kind": "required",
          "name": "X-EXTERNAL-ID",
          "type": "string",
          "example": "20230804230101"
        },
        {
          "kind": "required",
          "name": "CHANNEL-ID",
          "type": "string",
          "example": "TNICEQR081"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "example": "{\"partnerReferenceNo\":\"ncpy20221017161458\",\"merchantId\":\"TNICEQR081\",\"storeId\":\"NicepayStoreID1\",\"amount\":{\"value\":\"10000.00\",\"currency\":\"IDR\"},\"additionalInfo\":{\"goodsNm\":\"Jhon Doe\",\"billingNm\":\"John Doe\",\"billingPhone\":\"082111111111\",\"billingEmail\":\"merchant@gmail.com\",\"billingCity\":\"Jakarta\",\"billingState\":\"DKI Jakarta\",\"billingPostCd\":\"12345\",\"billingCountry\":\"Indonesia\",\"callBackUrl\":\"https://dev.nicepay.co.id/IONPAY_CLIENT/paymentResult.jsp\",\"dbProcessUrl\":\"https://dev.nicepay.co.id/IONPAY_CLIENT/paymentResult.jsp\",\"mitraCd\":\"QSHP\",\"cartData\":{\"count\":\"1\",\"item\":[{\"img_url\":\"http://www.jamgora.com/media/avatar/noimage.png\",\"goods_detail\":\"BB12345678\",\"goods_name\":\"Pasar Modern\",\"goods_amt\":\"10000\",\"goods_quantity\":\"1\"}]},\"msId\":\"\",\"msfee\":\"\",\"msfeetype\":\"\",\"mbfee\":\"\",\"mbfeetype\":\"\"}}",
          "description": "",
          "customType": "qrmpmgenerate_body",
          "schema": [
            {
              "name": "partnerReferenceNo",
              "kind": "required",
              "type": "string",
              "example": ""
            },
            {
              "name": "amount",
              "kind": "required",
              "type": "object",
              "modelRef": "#/components/schemas/amount",
              "customType": "amount",
              "schema": [
                {
                  "name": "value",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "currency",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                }
              ]
            },
            {
              "name": "merchantId",
              "kind": "required",
              "type": "string",
              "example": ""
            },
            {
              "name": "storeId",
              "kind": "required",
              "type": "string",
              "example": ""
            },
            {
              "name": "additionalInfo",
              "kind": "optional",
              "type": "object",
              "modelRef": "#/components/schemas/additionalInfoCreate",
              "customType": "additionalInfoCreate",
              "schema": [
                {
                  "name": "goodsNm",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "billingNm",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "billingPhone",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "billingEmail",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "billingCity",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "billingState",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "billingPostCd",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "billingCountry",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "callBackUrl",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "dbProcessUrl",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "cartData",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "mitraCd",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/qrmpmgenerate_body",
          "complexItems": [
            {
              "name": "object",
              "schema": [
                {
                  "name": "partnerReferenceNo",
                  "kind": "required",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "amount",
                  "kind": "required",
                  "type": "object",
                  "modelRef": "#/components/schemas/amount",
                  "customType": "amount",
                  "schema": [
                    {
                      "name": "value",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "currency",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    }
                  ]
                },
                {
                  "name": "merchantId",
                  "kind": "required",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "storeId",
                  "kind": "required",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "additionalInfo",
                  "kind": "optional",
                  "type": "object",
                  "modelRef": "#/components/schemas/additionalInfoCreate",
                  "customType": "additionalInfoCreate",
                  "schema": [
                    {
                      "name": "goodsNm",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "billingNm",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "billingPhone",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "billingEmail",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "billingCity",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "billingState",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "billingPostCd",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "billingCountry",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "callBackUrl",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "dbProcessUrl",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "cartData",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "mitraCd",
                      "kind": "optional",
                      "type": "string",
                      "example": ""
                    }
                  ]
                }
              ],
              "modelRef": "#/components/schemas/CreateQRis",
              "customType": "CreateQRis"
            },
            {
              "name": "object",
              "schema": []
            }
          ],
          "complexType": "allOf",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Authorization",
          "name": "Authorization",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// Successful\n{\n  \"responseCode\": \"2004700\",\n  \"responseMessage\": \"Successful\",\n  \"referenceNo\": \"TNICEQR08108202309061901268443\",\n  \"partnerReferenceNo\": \"ncpy20221017161458\",\n  \"qrContent\": \"00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332\",\n  \"qrUrl\": \"https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg\",\n  \"trxId\": \"2023123100000000000001\",\n  \"additionalInfo\": {\n    \"goodsNm\": \"Jhon Doe\",\n    \"billingNm\": \"Jhon Doe\",\n    \"mitraCd\": \"QSHP\",\n    \"validityPeriod\": \"2023-09-06T19:06:26+07:00\"\n  }\n}"
          },
          {
            "label": "GENERATED",
            "code": "// Successful \n{\n  \"responseCode\": \"2004700\",\n  \"responseMessage\": \"Successful\",\n  \"referenceNo\": \"TNICEQR08108202309061901268443\",\n  \"partnerReferenceNo\": \"ncpy20221017161458\",\n  \"qrContent\": \"00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332\",\n  \"qrUrl\": \"https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg\",\n  \"trxId\": \"2023123100000000000001\",\n  \"additionalInfo\": {\n    \"goodsNm\": \"Jhon Doe\",\n    \"billingNm\": \"Jhon Doe\",\n    \"mitraCd\": \"QSHP\",\n    \"validityPeriod\": \"2023-09-06T19:06:26+07:00\"\n  }\n}"
          },
          {
            "label": "Successful",
            "code": "{\n  \"responseCode\": \"2004700\",\n  \"responseMessage\": \"Successful\",\n  \"referenceNo\": \"TNICEQR08108202309061901268443\",\n  \"partnerReferenceNo\": \"ncpy20221017161458\",\n  \"qrContent\": \"00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332\",\n  \"qrUrl\": \"https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg\",\n  \"additionalInfo\": {\n    \"goodsNm\": \"Jhon Doe\",\n    \"billingNm\": \"John Doe\",\n    \"mitraCd\": \"QSHP\",\n    \"validityPeriod\": \"2023-09-06T19:06:26+07:00\"\n  }\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "SuccessfulCreateQris",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "2004700"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "Successful"
              },
              {
                "name": "referenceNo",
                "kind": "optional",
                "type": "string",
                "description": "ReferenceNo",
                "example": "TNICEQR08108202309061901268443"
              },
              {
                "name": "partnerReferenceNo",
                "kind": "optional",
                "type": "string",
                "description": "Partner ReferenceNo",
                "example": "ncpy20221017161458"
              },
              {
                "name": "qrContent",
                "kind": "optional",
                "type": "string",
                "description": "QR Content",
                "example": "00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332"
              },
              {
                "name": "qrUrl",
                "kind": "optional",
                "type": "string",
                "description": "QR Url",
                "example": "https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg"
              },
              {
                "name": "trxId",
                "kind": "optional",
                "type": "string",
                "description": "trxId",
                "example": "2023123100000000000001"
              },
              {
                "name": "additionalInfo",
                "kind": "optional",
                "type": "object",
                "modelRef": "#/components/schemas/additionalInfoResponseCreateQris",
                "customType": "additionalInfoResponseCreateQris",
                "schema": [
                  {
                    "name": "goodsNm",
                    "kind": "optional",
                    "type": "string",
                    "description": "goodsNm",
                    "example": "Jhon Doe"
                  },
                  {
                    "name": "billingNm",
                    "kind": "optional",
                    "type": "string",
                    "description": "billingNm",
                    "example": "Jhon Doe"
                  },
                  {
                    "name": "mitraCd",
                    "kind": "optional",
                    "type": "string",
                    "description": "mitraCd",
                    "example": "QSHP"
                  },
                  {
                    "name": "validityPeriod",
                    "kind": "optional",
                    "type": "string",
                    "description": "validityPeriod",
                    "example": "2023-09-06T19:06:26+07:00"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/SuccessfulCreateQris",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "202",
        "description": "Request In Progress",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// Request In Progress\n{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
          },
          {
            "label": "GENERATED",
            "code": "// Request In Progress \n{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
          },
          {
            "label": "Request In Progress",
            "code": "{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "RequestInProgress",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "202XX00"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "Request In Progress"
              }
            ],
            "modelRef": "#/components/schemas/RequestInProgress",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "409",
        "description": "Duplicate partnerReferenceNo",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// Duplicate partnerReferenceNo\n{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
          },
          {
            "label": "GENERATED",
            "code": "// Duplicate partnerReferenceNo \n{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
          },
          {
            "label": "Duplicate partnerReferenceNo",
            "code": "{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "DuplicatePartnerReferenceNo",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "409XX01"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "Duplicate partnerReferenceNo"
              }
            ],
            "modelRef": "#/components/schemas/DuplicatePartnerReferenceNo",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "General Error",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// General Error\n{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
          },
          {
            "label": "GENERATED",
            "code": "// General Error \n{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
          },
          {
            "label": "General Error",
            "code": "{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "GeneralError",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "500XX00"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "General Error"
              }
            ],
            "modelRef": "#/components/schemas/GeneralError",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "504",
        "description": "Request Timeout",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "GENERATED",
            "code": "// Request Timeout\n{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
          },
          {
            "label": "GENERATED",
            "code": "// Request Timeout \n{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
          },
          {
            "label": "Request Timeout",
            "code": "{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "RequestTimeout",
            "schema": [
              {
                "name": "responseCode",
                "kind": "optional",
                "type": "string",
                "description": "Response Code",
                "example": "504XX00"
              },
              {
                "name": "responseMessage",
                "kind": "optional",
                "type": "string",
                "description": "Response Message",
                "example": "Request Timeout"
              }
            ],
            "modelRef": "#/components/schemas/RequestTimeout",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "selectedLanguageId": "qAIksykUcCa2lgrBL4INX",
      "languages": [
        {
          "id": "qAIksykUcCa2lgrBL4INX",
          "language": "curl",
          "label": "cURL",
          "code": "curl --location 'https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--header 'X-SIGNATURE: RtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg==' \\\n--data '{\n  \"partnerReferenceNo\": \"\",\n  \"amount\": {\n    \"value\": \"\",\n    \"currency\": \"\"\n  },\n  \"merchantId\": \"\",\n  \"storeId\": \"\",\n  \"additionalInfo\": {\n    \"goodsNm\": \"\",\n    \"billingNm\": \"\",\n    \"billingPhone\": \"\",\n    \"billingEmail\": \"\",\n    \"billingCity\": \"\",\n    \"billingState\": \"\",\n    \"billingPostCd\": \"\",\n    \"billingCountry\": \"\",\n    \"callBackUrl\": \"\",\n    \"dbProcessUrl\": \"\",\n    \"cartData\": \"\",\n    \"mitraCd\": \"\"\n  }\n}'"
        },
        {
          "id": "OrtCsVxiG20e148TaJ0im",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\nmyHeaders.append(\"X-SIGNATURE\", \"RtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg==\");\n\nvar raw = JSON.stringify({\n   \"partnerReferenceNo\": \"\",\n   \"amount\": {\n      \"value\": \"\",\n      \"currency\": \"\"\n   },\n   \"merchantId\": \"\",\n   \"storeId\": \"\",\n   \"additionalInfo\": {\n      \"goodsNm\": \"\",\n      \"billingNm\": \"\",\n      \"billingPhone\": \"\",\n      \"billingEmail\": \"\",\n      \"billingCity\": \"\",\n      \"billingState\": \"\",\n      \"billingPostCd\": \"\",\n      \"billingCountry\": \"\",\n      \"callBackUrl\": \"\",\n      \"dbProcessUrl\": \"\",\n      \"cartData\": \"\",\n      \"mitraCd\": \"\"\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "O3A5bWb-33Xn-tBlQ07Xd",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest[\"X-SIGNATURE\"] = \"RtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg==\"\nrequest.body = JSON.dump({\n   \"partnerReferenceNo\": \"\",\n   \"amount\": {\n      \"value\": \"\",\n      \"currency\": \"\"\n   },\n   \"merchantId\": \"\",\n   \"storeId\": \"\",\n   \"additionalInfo\": {\n      \"goodsNm\": \"\",\n      \"billingNm\": \"\",\n      \"billingPhone\": \"\",\n      \"billingEmail\": \"\",\n      \"billingCity\": \"\",\n      \"billingState\": \"\",\n      \"billingPostCd\": \"\",\n      \"billingCountry\": \"\",\n      \"callBackUrl\": \"\",\n      \"dbProcessUrl\": \"\",\n      \"cartData\": \"\",\n      \"mitraCd\": \"\"\n   }\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "dfIoaoOnYRogoq-tPjriX",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate\"\n\npayload = json.dumps({\n   \"partnerReferenceNo\": \"\",\n   \"amount\": {\n      \"value\": \"\",\n      \"currency\": \"\"\n   },\n   \"merchantId\": \"\",\n   \"storeId\": \"\",\n   \"additionalInfo\": {\n      \"goodsNm\": \"\",\n      \"billingNm\": \"\",\n      \"billingPhone\": \"\",\n      \"billingEmail\": \"\",\n      \"billingCity\": \"\",\n      \"billingState\": \"\",\n      \"billingPostCd\": \"\",\n      \"billingCountry\": \"\",\n      \"callBackUrl\": \"\",\n      \"dbProcessUrl\": \"\",\n      \"cartData\": \"\",\n      \"mitraCd\": \"\"\n   }\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json',\n   'X-SIGNATURE': 'RtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg=='\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ]
    },
    "results": {
      "languages": [
        {
          "id": "4o1Jx0GSPu0U_kjKribg8",
          "language": "200",
          "code": "// Successful\n{\n  \"responseCode\": \"2004700\",\n  \"responseMessage\": \"Successful\",\n  \"referenceNo\": \"TNICEQR08108202309061901268443\",\n  \"partnerReferenceNo\": \"ncpy20221017161458\",\n  \"qrContent\": \"00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332\",\n  \"qrUrl\": \"https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg\",\n  \"trxId\": \"2023123100000000000001\",\n  \"additionalInfo\": {\n    \"goodsNm\": \"Jhon Doe\",\n    \"billingNm\": \"Jhon Doe\",\n    \"mitraCd\": \"QSHP\",\n    \"validityPeriod\": \"2023-09-06T19:06:26+07:00\"\n  }\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// Successful\n{\n  \"responseCode\": \"2004700\",\n  \"responseMessage\": \"Successful\",\n  \"referenceNo\": \"TNICEQR08108202309061901268443\",\n  \"partnerReferenceNo\": \"ncpy20221017161458\",\n  \"qrContent\": \"00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332\",\n  \"qrUrl\": \"https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg\",\n  \"trxId\": \"2023123100000000000001\",\n  \"additionalInfo\": {\n    \"goodsNm\": \"Jhon Doe\",\n    \"billingNm\": \"Jhon Doe\",\n    \"mitraCd\": \"QSHP\",\n    \"validityPeriod\": \"2023-09-06T19:06:26+07:00\"\n  }\n}"
            },
            {
              "label": "GENERATED",
              "code": "// Successful \n{\n  \"responseCode\": \"2004700\",\n  \"responseMessage\": \"Successful\",\n  \"referenceNo\": \"TNICEQR08108202309061901268443\",\n  \"partnerReferenceNo\": \"ncpy20221017161458\",\n  \"qrContent\": \"00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332\",\n  \"qrUrl\": \"https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg\",\n  \"trxId\": \"2023123100000000000001\",\n  \"additionalInfo\": {\n    \"goodsNm\": \"Jhon Doe\",\n    \"billingNm\": \"Jhon Doe\",\n    \"mitraCd\": \"QSHP\",\n    \"validityPeriod\": \"2023-09-06T19:06:26+07:00\"\n  }\n}"
            },
            {
              "label": "Successful",
              "code": "{\n  \"responseCode\": \"2004700\",\n  \"responseMessage\": \"Successful\",\n  \"referenceNo\": \"TNICEQR08108202309061901268443\",\n  \"partnerReferenceNo\": \"ncpy20221017161458\",\n  \"qrContent\": \"00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332\",\n  \"qrUrl\": \"https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg\",\n  \"additionalInfo\": {\n    \"goodsNm\": \"Jhon Doe\",\n    \"billingNm\": \"John Doe\",\n    \"mitraCd\": \"QSHP\",\n    \"validityPeriod\": \"2023-09-06T19:06:26+07:00\"\n  }\n}"
            }
          ]
        },
        {
          "id": "6UN0YRCQE834D2sp9tQOW",
          "language": "202",
          "code": "// Request In Progress\n{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// Request In Progress\n{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
            },
            {
              "label": "GENERATED",
              "code": "// Request In Progress \n{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
            },
            {
              "label": "Request In Progress",
              "code": "{\n  \"responseCode\": \"202XX00\",\n  \"responseMessage\": \"Request In Progress\"\n}"
            }
          ]
        },
        {
          "id": "dqDQ92HpkPRxVkTcANL_H",
          "language": "409",
          "code": "// Duplicate partnerReferenceNo\n{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// Duplicate partnerReferenceNo\n{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
            },
            {
              "label": "GENERATED",
              "code": "// Duplicate partnerReferenceNo \n{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
            },
            {
              "label": "Duplicate partnerReferenceNo",
              "code": "{\n  \"responseCode\": \"409XX01\",\n  \"responseMessage\": \"Duplicate partnerReferenceNo\"\n}"
            }
          ]
        },
        {
          "id": "EDPL9PBHlleIdnp3s7yNV",
          "language": "500",
          "code": "// General Error\n{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// General Error\n{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
            },
            {
              "label": "GENERATED",
              "code": "// General Error \n{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
            },
            {
              "label": "General Error",
              "code": "{\n  \"responseCode\": \"500XX00\",\n  \"responseMessage\": \"General Error\"\n}"
            }
          ]
        },
        {
          "id": "g-hoP1F7YkNAg_32uYi-a",
          "language": "504",
          "code": "// Request Timeout\n{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}",
          "subExamples": [
            {
              "label": "GENERATED",
              "code": "// Request Timeout\n{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
            },
            {
              "label": "GENERATED",
              "code": "// Request Timeout \n{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
            },
            {
              "label": "Request Timeout",
              "code": "{\n  \"responseCode\": \"504XX00\",\n  \"responseMessage\": \"Request Timeout\"\n}"
            }
          ]
        }
      ],
      "selectedLanguageId": "4o1Jx0GSPu0U_kjKribg8"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}