{
  "x402Version": 2,
  "id": 38097,
  "slug": "38097",
  "resource": "https://x402-doctor.onrender.com/api/v1/fix",
  "description": "The fix for your x402 endpoint: diagnoses it, then returns per problem the concrete change as code for your stack (Express, Next.js, Hono or raw HTTP), filled in with your own payTo, amount, network and route.",
  "type": "http",
  "serviceName": "x402 Doctor",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x6B0F4651eD42893ab58139938175E4a69f175F25",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "ATWJ82T8nRdQwZnaysB68N5EpaSvLRsQP4h6eWmaJBH9",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "fixes": {
            "items": {
              "properties": {
                "checks": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "code": {
                  "items": {
                    "properties": {
                      "label": {
                        "type": "string"
                      },
                      "language": {
                        "type": "string"
                      },
                      "snippet": {
                        "type": "string"
                      },
                      "stack": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                },
                "recipe": {
                  "type": "string"
                },
                "severity": {
                  "enum": [
                    "fail",
                    "warn"
                  ],
                  "type": "string"
                },
                "steps": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "title": {
                  "type": "string"
                },
                "verify": {
                  "type": "string"
                },
                "why": {
                  "type": "string"
                }
              },
              "required": [
                "title",
                "why",
                "steps",
                "code"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "overall": {
            "enum": [
              "pass",
              "warn",
              "fail"
            ],
            "type": "string"
          },
          "stack": {
            "properties": {
              "detected_from": {
                "type": "string"
              },
              "id": {
                "enum": [
                  "express",
                  "next",
                  "hono",
                  "node",
                  "python",
                  "generic"
                ],
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "summary": {
            "type": "string"
          },
          "unfixed": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url",
          "fixes"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "url": "https://x402-doctor.onrender.com/demo/broken"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "fixes": [
              {
                "checks": [
                  "accepts[0]-amount"
                ],
                "code": [
                  {
                    "label": "Option field",
                    "language": "json",
                    "snippet": "\"amount\": \"10000\"",
                    "stack": "generic"
                  }
                ],
                "recipe": "amount",
                "severity": "warn",
                "steps": [
                  "Use price: \"$0.01\" instead of an amount."
                ],
                "title": "Amount \"0.01\" → \"10000\" ($0.01)",
                "verify": "Run x402 Doctor again.",
                "why": "x402 amounts are integer strings in the smallest unit."
              }
            ],
            "overall": "fail",
            "stack": {
              "detected_from": "x-powered-by: Express",
              "id": "express",
              "name": "Express (@x402/express)"
            },
            "summary": "1 fix (0 blocking), for Express (@x402/express).",
            "unfixed": [],
            "url": "https://x402-doctor.onrender.com/demo/broken"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "method": {
                    "description": "HTTP method of the endpoint. Default: try GET, then POST.",
                    "enum": [
                      "GET",
                      "POST"
                    ],
                    "type": "string"
                  },
                  "stack": {
                    "description": "Your stack, if detection from response headers is wrong. Default: detected.",
                    "enum": [
                      "express",
                      "next",
                      "hono",
                      "node",
                      "python",
                      "generic"
                    ],
                    "type": "string"
                  },
                  "url": {
                    "description": "Your x402 endpoint (public http(s) URL).",
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "fixes": {
                    "items": {
                      "properties": {
                        "checks": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "code": {
                          "items": {
                            "properties": {
                              "label": {
                                "type": "string"
                              },
                              "language": {
                                "type": "string"
                              },
                              "snippet": {
                                "type": "string"
                              },
                              "stack": {
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "recipe": {
                          "type": "string"
                        },
                        "severity": {
                          "enum": [
                            "fail",
                            "warn"
                          ],
                          "type": "string"
                        },
                        "steps": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "title": {
                          "type": "string"
                        },
                        "verify": {
                          "type": "string"
                        },
                        "why": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "why",
                        "steps",
                        "code"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "overall": {
                    "enum": [
                      "pass",
                      "warn",
                      "fail"
                    ],
                    "type": "string"
                  },
                  "stack": {
                    "properties": {
                      "detected_from": {
                        "type": "string"
                      },
                      "id": {
                        "enum": [
                          "express",
                          "next",
                          "hono",
                          "node",
                          "python",
                          "generic"
                        ],
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "summary": {
                    "type": "string"
                  },
                  "unfixed": {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "required": [
                  "url",
                  "fixes"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "x402",
    "developer-tools",
    "fix",
    "code",
    "bazaar"
  ],
  "sourceHost": "x402-doctor.onrender.com",
  "lastUpdated": "2026-09-24T14:55:06.015Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-24T14:55:05.73Z"
  },
  "metadata": {
    "serviceName": "x402 Doctor",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "url": "https://x402-doctor.onrender.com/demo/broken"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "fixes": [
                {
                  "checks": [
                    "accepts[0]-amount"
                  ],
                  "code": [
                    {
                      "label": "Option field",
                      "language": "json",
                      "snippet": "\"amount\": \"10000\"",
                      "stack": "generic"
                    }
                  ],
                  "recipe": "amount",
                  "severity": "warn",
                  "steps": [
                    "Use price: \"$0.01\" instead of an amount."
                  ],
                  "title": "Amount \"0.01\" → \"10000\" ($0.01)",
                  "verify": "Run x402 Doctor again.",
                  "why": "x402 amounts are integer strings in the smallest unit."
                }
              ],
              "overall": "fail",
              "stack": {
                "detected_from": "x-powered-by: Express",
                "id": "express",
                "name": "Express (@x402/express)"
              },
              "summary": "1 fix (0 blocking), for Express (@x402/express).",
              "unfixed": [],
              "url": "https://x402-doctor.onrender.com/demo/broken"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "method": {
                      "description": "HTTP method of the endpoint. Default: try GET, then POST.",
                      "enum": [
                        "GET",
                        "POST"
                      ],
                      "type": "string"
                    },
                    "stack": {
                      "description": "Your stack, if detection from response headers is wrong. Default: detected.",
                      "enum": [
                        "express",
                        "next",
                        "hono",
                        "node",
                        "python",
                        "generic"
                      ],
                      "type": "string"
                    },
                    "url": {
                      "description": "Your x402 endpoint (public http(s) URL).",
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "fixes": {
                      "items": {
                        "properties": {
                          "checks": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "code": {
                            "items": {
                              "properties": {
                                "label": {
                                  "type": "string"
                                },
                                "language": {
                                  "type": "string"
                                },
                                "snippet": {
                                  "type": "string"
                                },
                                "stack": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "recipe": {
                            "type": "string"
                          },
                          "severity": {
                            "enum": [
                              "fail",
                              "warn"
                            ],
                            "type": "string"
                          },
                          "steps": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "title": {
                            "type": "string"
                          },
                          "verify": {
                            "type": "string"
                          },
                          "why": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "title",
                          "why",
                          "steps",
                          "code"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "overall": {
                      "enum": [
                        "pass",
                        "warn",
                        "fail"
                      ],
                      "type": "string"
                    },
                    "stack": {
                      "properties": {
                        "detected_from": {
                          "type": "string"
                        },
                        "id": {
                          "enum": [
                            "express",
                            "next",
                            "hono",
                            "node",
                            "python",
                            "generic"
                          ],
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "unfixed": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "fixes"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402-doctor.onrender.com",
    "manifest_name": "x402-doctor.onrender.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-13T15:56:53.641Z"
  },
  "exampleResponse": {
    "example": {
      "fixes": [
        {
          "checks": [
            "string"
          ],
          "code": [
            {
              "label": "string",
              "language": "string",
              "snippet": "string",
              "stack": "string"
            }
          ],
          "recipe": "string",
          "severity": "fail",
          "steps": [
            "string"
          ],
          "title": "string",
          "verify": "string",
          "why": "string"
        }
      ],
      "overall": "pass",
      "stack": {
        "detected_from": "string",
        "id": "express",
        "name": "string"
      },
      "summary": "string",
      "unfixed": [
        {}
      ],
      "url": "string"
    },
    "type": "string"
  }
}