{
  "x402Version": 2,
  "id": 31256,
  "slug": "31256",
  "resource": "https://mart402.com/v1/document-pipeline",
  "description": "Invoice pipeline in one call: PDF to structured Markdown (hallucination-guarded OCR), invoice field extraction, arithmetic verification, optional issuer enrichment. Flat 0.05/document (text PDFs to 20 pages, scans to 3).",
  "type": "http",
  "serviceName": "Mart402",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xE3244a21D0d68bFa78b7CAd8C3b8777aDFbB3188",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "enrich": false,
            "url": "https://mart402.com/samples/assets/doc.pdf"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "description": "JSON: stages{parse(markdown+ocr_quality), fields(invoice JSON), verify(checks), enrich?}; receipt id for free re-fetch",
          "example": {
            "flat_price_usd": 0.05,
            "note": "ILLUSTRATIVE SAMPLE showing the exact response shape, composed from real component outputs (parse/verify samples recorded 2026-07-27); this bundled product itself had no production calls when this sample was written. LLM-backed, production only. No payment was taken.",
            "ok": true,
            "sample": true,
            "stages": {
              "fields": {
                "data": {
                  "currency": "JPY",
                  "customer": "Example Buyer Inc.",
                  "due_date": "2026-08-31",
                  "invoice_no": "INV-2026-0731",
                  "issue_date": "2026-07-31",
                  "line_items": [
                    [
                      "consulting",
                      1,
                      10000,
                      10000
                    ]
                  ],
                  "reg_no": "T0123456789012",
                  "subtotal": "10000",
                  "tax_jpy": "1000",
                  "total_jpy": "11000",
                  "vendor": "Example Seller K.K."
                },
                "ok": true
              },
              "parse": {
                "chars": 1620,
                "ok": true,
                "pages": 1,
                "route": "embedded"
              },
              "verify": {
                "checks": [
                  {
                    "check": "tax_rate_10pct",
                    "pass": true
                  },
                  {
                    "check": "line_items_sum_eq_subtotal",
                    "pass": true
                  },
                  {
                    "check": "invoice_reg_no_checkdigit",
                    "pass": true
                  }
                ],
                "corp_registry": {
                  "note": "existence only - NOT qualified-invoice-issuer registration status",
                  "source": "Japan NTA corporate number registry",
                  "status": "found",
                  "vendor_name_match": "exact"
                },
                "ok": true,
                "verified": true
              }
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "enrich": {
                    "type": "boolean"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "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": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "offer-receipt": {
      "info": {
        "offers": [
          {
            "acceptIndex": 0,
            "format": "jws",
            "signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDp3ZWI6bWFydDQwMi5jb20ja2V5LTEifQ.eyJhbW91bnQiOiI1MDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwibmV0d29yayI6ImVpcDE1NTo4NDUzIiwicGF5VG8iOiIweEUzMjQ0YTIxRDBkNjhiRmE3OGI3Q0FkOEMzYjg3NzdhREZiQjMxODgiLCJyZXNvdXJjZVVybCI6Imh0dHBzOi8vbWFydDQwMi5jb20vdjEvZG9jdW1lbnQtcGlwZWxpbmUiLCJzY2hlbWUiOiJleGFjdCIsInZhbGlkVW50aWwiOjE3OTE0NDAwMDUsInZlcnNpb24iOjF9.MIyts54cwnEF_FfygyEWVzZF3SNq2HKLOO50sunBD9om6oqVtzOpIgjPDwOw7bBRY1DP5xkWS-OjOub75B-SDQ"
          }
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "offers": {
            "items": {
              "properties": {
                "acceptIndex": {
                  "type": "integer"
                },
                "format": {
                  "const": "jws",
                  "type": "string"
                },
                "signature": {
                  "description": "JWS compact serialization containing the offer payload",
                  "type": "string"
                }
              },
              "required": [
                "format",
                "signature"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "offers"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "offer-receipt"
  ],
  "sourceHost": "mart402.com",
  "lastUpdated": "2026-10-08T06:08:25.622Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:08:25.506Z"
  },
  "metadata": {
    "serviceName": "Mart402",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "enrich": false,
              "url": "https://mart402.com/samples/assets/doc.pdf"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "description": "JSON: stages{parse(markdown+ocr_quality), fields(invoice JSON), verify(checks), enrich?}; receipt id for free re-fetch",
            "example": {
              "flat_price_usd": 0.05,
              "note": "ILLUSTRATIVE SAMPLE showing the exact response shape, composed from real component outputs (parse/verify samples recorded 2026-07-27); this bundled product itself had no production calls when this sample was written. LLM-backed, production only. No payment was taken.",
              "ok": true,
              "sample": true,
              "stages": {
                "fields": {
                  "data": {
                    "currency": "JPY",
                    "customer": "Example Buyer Inc.",
                    "due_date": "2026-08-31",
                    "invoice_no": "INV-2026-0731",
                    "issue_date": "2026-07-31",
                    "line_items": [
                      [
                        "consulting",
                        1,
                        10000,
                        10000
                      ]
                    ],
                    "reg_no": "T0123456789012",
                    "subtotal": "10000",
                    "tax_jpy": "1000",
                    "total_jpy": "11000",
                    "vendor": "Example Seller K.K."
                  },
                  "ok": true
                },
                "parse": {
                  "chars": 1620,
                  "ok": true,
                  "pages": 1,
                  "route": "embedded"
                },
                "verify": {
                  "checks": [
                    {
                      "check": "tax_rate_10pct",
                      "pass": true
                    },
                    {
                      "check": "line_items_sum_eq_subtotal",
                      "pass": true
                    },
                    {
                      "check": "invoice_reg_no_checkdigit",
                      "pass": true
                    }
                  ],
                  "corp_registry": {
                    "note": "existence only - NOT qualified-invoice-issuer registration status",
                    "source": "Japan NTA corporate number registry",
                    "status": "found",
                    "vendor_name_match": "exact"
                  },
                  "ok": true,
                  "verified": true
                }
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "enrich": {
                      "type": "boolean"
                    },
                    "url": {
                      "type": "string"
                    }
                  },
                  "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": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "offer-receipt": {
        "info": {
          "offers": [
            {
              "acceptIndex": 0,
              "format": "jws",
              "signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDp3ZWI6bWFydDQwMi5jb20ja2V5LTEifQ.eyJhbW91bnQiOiI1MDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwibmV0d29yayI6ImVpcDE1NTo4NDUzIiwicGF5VG8iOiIweEUzMjQ0YTIxRDBkNjhiRmE3OGI3Q0FkOEMzYjg3NzdhREZiQjMxODgiLCJyZXNvdXJjZVVybCI6Imh0dHBzOi8vbWFydDQwMi5jb20vdjEvZG9jdW1lbnQtcGlwZWxpbmUiLCJzY2hlbWUiOiJleGFjdCIsInZhbGlkVW50aWwiOjE3OTE0NDAwMDUsInZlcnNpb24iOjF9.MIyts54cwnEF_FfygyEWVzZF3SNq2HKLOO50sunBD9om6oqVtzOpIgjPDwOw7bBRY1DP5xkWS-OjOub75B-SDQ"
            }
          ]
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "offers": {
              "items": {
                "properties": {
                  "acceptIndex": {
                    "type": "integer"
                  },
                  "format": {
                    "const": "jws",
                    "type": "string"
                  },
                  "signature": {
                    "description": "JWS compact serialization containing the offer payload",
                    "type": "string"
                  }
                },
                "required": [
                  "format",
                  "signature"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "offers"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "mart402.com",
    "manifest_name": "mart402.com",
    "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": {
    "example": {},
    "type": "string"
  }
}