{
  "x402Version": 2,
  "id": 52657,
  "slug": "52657",
  "resource": "https://qr-api-production-1836.up.railway.app/generate/styled",
  "description": "Generate a styled QR code PNG (base64 in JSON): custom foreground/background hex colours, module size, border, and error-correction level.",
  "type": "http",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "back_color": {
            "description": "Background colour as normalised #rrggbb hex.",
            "type": "string"
          },
          "border": {
            "description": "Quiet-zone border width in modules.",
            "type": "integer"
          },
          "box_size": {
            "description": "Pixels per QR module.",
            "type": "integer"
          },
          "data": {
            "description": "The text or URL encoded into the QR code.",
            "type": "string"
          },
          "error_correction": {
            "description": "Error-correction level used: L, M, Q, or H.",
            "type": "string"
          },
          "fill_color": {
            "description": "Foreground colour as normalised #rrggbb hex.",
            "type": "string"
          },
          "format": {
            "description": "Image format of the returned bytes; always 'png'.",
            "type": "string"
          },
          "height": {
            "description": "PNG height in pixels.",
            "type": "integer"
          },
          "image_base64": {
            "description": "Base64-encoded PNG of the QR code.",
            "type": "string"
          },
          "modules": {
            "description": "QR module count per side (the grid dimension).",
            "type": "integer"
          },
          "size_bytes": {
            "description": "Byte length of the raw PNG.",
            "type": "integer"
          },
          "version": {
            "description": "QR version (1-40) chosen to fit the data.",
            "type": "integer"
          },
          "width": {
            "description": "PNG width in pixels.",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "back_color": "#ffffff",
            "border": 4,
            "box_size": 10,
            "data": "https://payapi.market",
            "error_correction": "H",
            "fill_color": "#1d4ed8"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "back_color": "#ffffff",
            "border": 4,
            "box_size": 10,
            "data": "https://payapi.market",
            "error_correction": "H",
            "fill_color": "#1d4ed8",
            "format": "png",
            "height": 370,
            "image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF...",
            "modules": 29,
            "size_bytes": 640,
            "version": 3,
            "width": 370
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "back_color": {
                    "description": "Background colour as #rgb or #rrggbb hex. Default #ffffff.",
                    "type": "string"
                  },
                  "border": {
                    "description": "Quiet-zone border in modules, 0-20. Default 4.",
                    "type": "integer"
                  },
                  "box_size": {
                    "description": "Pixels per module, 1-40. Default 10.",
                    "type": "integer"
                  },
                  "data": {
                    "description": "Text or URL to encode, up to 4296 characters.",
                    "type": "string"
                  },
                  "error_correction": {
                    "description": "Error-correction level: L, M, Q, or H. Default M.",
                    "type": "string"
                  },
                  "fill_color": {
                    "description": "Foreground colour as #rgb or #rrggbb hex. Default #000000.",
                    "type": "string"
                  }
                },
                "required": [
                  "data"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "back_color": {
                    "description": "Background colour as normalised #rrggbb hex.",
                    "type": "string"
                  },
                  "border": {
                    "description": "Quiet-zone border width in modules.",
                    "type": "integer"
                  },
                  "box_size": {
                    "description": "Pixels per QR module.",
                    "type": "integer"
                  },
                  "data": {
                    "description": "The text or URL encoded into the QR code.",
                    "type": "string"
                  },
                  "error_correction": {
                    "description": "Error-correction level used: L, M, Q, or H.",
                    "type": "string"
                  },
                  "fill_color": {
                    "description": "Foreground colour as normalised #rrggbb hex.",
                    "type": "string"
                  },
                  "format": {
                    "description": "Image format of the returned bytes; always 'png'.",
                    "type": "string"
                  },
                  "height": {
                    "description": "PNG height in pixels.",
                    "type": "integer"
                  },
                  "image_base64": {
                    "description": "Base64-encoded PNG of the QR code.",
                    "type": "string"
                  },
                  "modules": {
                    "description": "QR module count per side (the grid dimension).",
                    "type": "integer"
                  },
                  "size_bytes": {
                    "description": "Byte length of the raw PNG.",
                    "type": "integer"
                  },
                  "version": {
                    "description": "QR version (1-40) chosen to fit the data.",
                    "type": "integer"
                  },
                  "width": {
                    "description": "PNG width in pixels.",
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "qr-api-production-1836.up.railway.app",
  "lastUpdated": "2026-10-08T10:01:14.227Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-08T10:01:14.047Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "back_color": "#ffffff",
              "border": 4,
              "box_size": 10,
              "data": "https://payapi.market",
              "error_correction": "H",
              "fill_color": "#1d4ed8"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "back_color": "#ffffff",
              "border": 4,
              "box_size": 10,
              "data": "https://payapi.market",
              "error_correction": "H",
              "fill_color": "#1d4ed8",
              "format": "png",
              "height": 370,
              "image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF...",
              "modules": 29,
              "size_bytes": 640,
              "version": 3,
              "width": 370
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "back_color": {
                      "description": "Background colour as #rgb or #rrggbb hex. Default #ffffff.",
                      "type": "string"
                    },
                    "border": {
                      "description": "Quiet-zone border in modules, 0-20. Default 4.",
                      "type": "integer"
                    },
                    "box_size": {
                      "description": "Pixels per module, 1-40. Default 10.",
                      "type": "integer"
                    },
                    "data": {
                      "description": "Text or URL to encode, up to 4296 characters.",
                      "type": "string"
                    },
                    "error_correction": {
                      "description": "Error-correction level: L, M, Q, or H. Default M.",
                      "type": "string"
                    },
                    "fill_color": {
                      "description": "Foreground colour as #rgb or #rrggbb hex. Default #000000.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "back_color": {
                      "description": "Background colour as normalised #rrggbb hex.",
                      "type": "string"
                    },
                    "border": {
                      "description": "Quiet-zone border width in modules.",
                      "type": "integer"
                    },
                    "box_size": {
                      "description": "Pixels per QR module.",
                      "type": "integer"
                    },
                    "data": {
                      "description": "The text or URL encoded into the QR code.",
                      "type": "string"
                    },
                    "error_correction": {
                      "description": "Error-correction level used: L, M, Q, or H.",
                      "type": "string"
                    },
                    "fill_color": {
                      "description": "Foreground colour as normalised #rrggbb hex.",
                      "type": "string"
                    },
                    "format": {
                      "description": "Image format of the returned bytes; always 'png'.",
                      "type": "string"
                    },
                    "height": {
                      "description": "PNG height in pixels.",
                      "type": "integer"
                    },
                    "image_base64": {
                      "description": "Base64-encoded PNG of the QR code.",
                      "type": "string"
                    },
                    "modules": {
                      "description": "QR module count per side (the grid dimension).",
                      "type": "integer"
                    },
                    "size_bytes": {
                      "description": "Byte length of the raw PNG.",
                      "type": "integer"
                    },
                    "version": {
                      "description": "QR version (1-40) chosen to fit the data.",
                      "type": "integer"
                    },
                    "width": {
                      "description": "PNG width in pixels.",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "qr-api-production-1836.up.railway.app",
    "manifest_name": "qr-api-production-1836.up.railway.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "back_color": "#ffffff",
    "border": 4,
    "box_size": 10,
    "data": "https://payapi.market",
    "error_correction": "H",
    "fill_color": "#1d4ed8",
    "format": "png",
    "height": 370,
    "image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF...",
    "modules": 29,
    "size_bytes": 640,
    "version": 3,
    "width": 370
  }
}