{
  "x402Version": 2,
  "id": 34031,
  "slug": "34031",
  "resource": "https://api.zfinia.com/x402/v1/tabular-contract-audit",
  "description": "Audit your own delimited data against a contract you declare, and get one pass/fail plus the exact row and clause of every breach. Checks types, required values, enums, numeric bounds, lengths, patterns, uniqueness, composite primary keys, null-rate ceilings, header drift and encoding damage in one pass. A pass means the audit was complete and nothing broke, so a file beyond the bounds reports incomplete rather than passing. Nothing is fetched: you supply the rows.",
  "type": "http",
  "serviceName": "Tabular Contract Audit",
  "resourceType": "Identity & Enrichment",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x25e8245f07d5e4873987293dad666afbe56a9608",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "120000",
      "amountUsd": 0.12,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "contract": {
              "columns": [
                {
                  "name": "order_id",
                  "required": true,
                  "type": "integer",
                  "unique": true
                },
                {
                  "enum": [
                    "USD",
                    "EUR"
                  ],
                  "name": "currency",
                  "required": true,
                  "type": "string"
                },
                {
                  "min": 0,
                  "name": "amount",
                  "required": true,
                  "type": "number"
                },
                {
                  "name": "placed_at",
                  "required": true,
                  "type": "date"
                },
                {
                  "max_null_rate": 0.1,
                  "name": "email",
                  "type": "string"
                }
              ],
              "primary_key": [
                "order_id"
              ]
            },
            "csv": "order_id,currency,amount,placed_at,email\n1001,USD,42.50,2026-09-30,a@example.com\n1002,EUR,-3,2026-09-31,\n1001,GBP,19.99,2026-10-01,c@example.com\n"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "assumptions": [
              "Values are compared as the text supplied. No locale, thousands separator or ambiguous date order is inferred, so normalise before auditing if your source uses them.",
              "An empty field is treated as absent, because a literal empty string cannot be distinguished from a missing value in delimited text."
            ],
            "column_count": 5,
            "column_profiles": [
              {
                "declared_type": "integer",
                "distinct_count": 2,
                "inferred_type": "integer",
                "inferred_type_counts": {
                  "integer": 3
                },
                "max_length": 4,
                "max_numeric": 1002,
                "min_length": 4,
                "min_numeric": 1001,
                "name": "order_id",
                "null_count": 0,
                "null_rate": 0,
                "present": true
              },
              {
                "declared_type": "string",
                "distinct_count": 3,
                "inferred_type": "string",
                "inferred_type_counts": {
                  "string": 3
                },
                "max_length": 3,
                "max_numeric": null,
                "min_length": 3,
                "min_numeric": null,
                "name": "currency",
                "null_count": 0,
                "null_rate": 0,
                "present": true
              },
              {
                "declared_type": "number",
                "distinct_count": 3,
                "inferred_type": "number",
                "inferred_type_counts": {
                  "integer": 1,
                  "number": 2
                },
                "max_length": 5,
                "max_numeric": 42.5,
                "min_length": 2,
                "min_numeric": -3,
                "name": "amount",
                "null_count": 0,
                "null_rate": 0,
                "present": true
              }
            ],
            "complete": true,
            "encoding": {
              "byte_order_mark": false,
              "crlf_line_endings": false,
              "mixed_line_endings": false,
              "replacement_characters": 0
            },
            "header": {
              "declared": [
                "order_id",
                "currency",
                "amount"
              ],
              "duplicated": [],
              "missing": [],
              "observed": [
                "order_id",
                "currency",
                "amount"
              ],
              "order_changed": false,
              "unexpected": []
            },
            "limitations": [
              "Structural and value-level conformance against the supplied contract only. Business meaning, referential integrity against other datasets, and whether the contract itself is correct are not assessed.",
              "Row, column, cell and violation bounds are applied before and during the audit. Anything left unexamined is named in not_examined, and passed is false whenever complete is false.",
              "Patterns use a documented non-backtracking subset with no groups or alternation, so a native regular expression relying on those will be refused rather than approximated."
            ],
            "limits": {
              "maxCellLength": 4096,
              "maxColumns": 64,
              "maxCsvBytes": 262144,
              "maxEnumValues": 100,
              "maxRows": 5000,
              "maxSafeInteger": 9007199254740991,
              "maxViolations": 500,
              "patternAtoms": 64,
              "patternValueLength": 256
            },
            "not_examined": [],
            "observed_at": "2026-10-02T00:00:00.000Z",
            "passed": false,
            "request_id": "example-request",
            "row_count": 3,
            "service_id": "tabular_contract_audit",
            "service_version": "1.0.0",
            "supplied_row_count": 3,
            "violation_count": 6,
            "violations": [
              {
                "code": "BELOW_MINIMUM",
                "column": "amount",
                "detail": "Row 3: amount is -3, below the declared minimum 0.",
                "row": 3,
                "value": "-3"
              },
              {
                "code": "TYPE_MISMATCH",
                "column": "placed_at",
                "detail": "Row 3: placed_at is declared date but \"2026-09-31\" reads as string.",
                "row": 3,
                "value": "2026-09-31"
              },
              {
                "code": "DUPLICATE_VALUE",
                "column": "order_id",
                "detail": "Row 4: order_id repeats \"1001\", first seen at row 2.",
                "row": 4,
                "value": "1001"
              }
            ],
            "violations_by_code": {
              "BELOW_MINIMUM": 1,
              "DUPLICATE_PRIMARY_KEY": 1,
              "DUPLICATE_VALUE": 1,
              "NOT_IN_ENUM": 1,
              "NULL_RATE_EXCEEDED": 1,
              "TYPE_MISMATCH": 1
            },
            "warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "contract": {
                    "additionalProperties": false,
                    "properties": {
                      "allow_extra_columns": {
                        "type": "boolean"
                      },
                      "columns": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "enum": {
                              "items": {
                                "type": "string"
                              },
                              "maxItems": 100,
                              "type": "array"
                            },
                            "max": {
                              "type": "number"
                            },
                            "max_length": {
                              "minimum": 1,
                              "type": "integer"
                            },
                            "max_null_rate": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "min": {
                              "type": "number"
                            },
                            "name": {
                              "type": "string"
                            },
                            "pattern": {
                              "maxLength": 200,
                              "type": "string"
                            },
                            "required": {
                              "type": "boolean"
                            },
                            "type": {
                              "enum": [
                                "string",
                                "integer",
                                "number",
                                "boolean",
                                "date",
                                "datetime"
                              ],
                              "type": "string"
                            },
                            "unique": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "type": "object"
                        },
                        "maxItems": 64,
                        "minItems": 1,
                        "type": "array"
                      },
                      "primary_key": {
                        "items": {
                          "type": "string"
                        },
                        "minItems": 1,
                        "type": "array"
                      },
                      "require_column_order": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "columns"
                    ],
                    "type": "object"
                  },
                  "csv": {
                    "maxLength": 262144,
                    "type": "string"
                  },
                  "delimiter": {
                    "maxLength": 1,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "csv",
                  "contract"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "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"
      }
    }
  },
  "tags": [
    "data validation",
    "data contract",
    "csv",
    "pipeline gate",
    "data quality",
    "bazaar"
  ],
  "sourceHost": "api.zfinia.com",
  "lastUpdated": "2026-10-04T07:48:48.405Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-04T07:48:43.947Z"
  },
  "metadata": {
    "serviceName": "Tabular Contract Audit",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "contract": {
                "columns": [
                  {
                    "name": "order_id",
                    "required": true,
                    "type": "integer",
                    "unique": true
                  },
                  {
                    "enum": [
                      "USD",
                      "EUR"
                    ],
                    "name": "currency",
                    "required": true,
                    "type": "string"
                  },
                  {
                    "min": 0,
                    "name": "amount",
                    "required": true,
                    "type": "number"
                  },
                  {
                    "name": "placed_at",
                    "required": true,
                    "type": "date"
                  },
                  {
                    "max_null_rate": 0.1,
                    "name": "email",
                    "type": "string"
                  }
                ],
                "primary_key": [
                  "order_id"
                ]
              },
              "csv": "order_id,currency,amount,placed_at,email\n1001,USD,42.50,2026-09-30,a@example.com\n1002,EUR,-3,2026-09-31,\n1001,GBP,19.99,2026-10-01,c@example.com\n"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "assumptions": [
                "Values are compared as the text supplied. No locale, thousands separator or ambiguous date order is inferred, so normalise before auditing if your source uses them.",
                "An empty field is treated as absent, because a literal empty string cannot be distinguished from a missing value in delimited text."
              ],
              "column_count": 5,
              "column_profiles": [
                {
                  "declared_type": "integer",
                  "distinct_count": 2,
                  "inferred_type": "integer",
                  "inferred_type_counts": {
                    "integer": 3
                  },
                  "max_length": 4,
                  "max_numeric": 1002,
                  "min_length": 4,
                  "min_numeric": 1001,
                  "name": "order_id",
                  "null_count": 0,
                  "null_rate": 0,
                  "present": true
                },
                {
                  "declared_type": "string",
                  "distinct_count": 3,
                  "inferred_type": "string",
                  "inferred_type_counts": {
                    "string": 3
                  },
                  "max_length": 3,
                  "max_numeric": null,
                  "min_length": 3,
                  "min_numeric": null,
                  "name": "currency",
                  "null_count": 0,
                  "null_rate": 0,
                  "present": true
                },
                {
                  "declared_type": "number",
                  "distinct_count": 3,
                  "inferred_type": "number",
                  "inferred_type_counts": {
                    "integer": 1,
                    "number": 2
                  },
                  "max_length": 5,
                  "max_numeric": 42.5,
                  "min_length": 2,
                  "min_numeric": -3,
                  "name": "amount",
                  "null_count": 0,
                  "null_rate": 0,
                  "present": true
                }
              ],
              "complete": true,
              "encoding": {
                "byte_order_mark": false,
                "crlf_line_endings": false,
                "mixed_line_endings": false,
                "replacement_characters": 0
              },
              "header": {
                "declared": [
                  "order_id",
                  "currency",
                  "amount"
                ],
                "duplicated": [],
                "missing": [],
                "observed": [
                  "order_id",
                  "currency",
                  "amount"
                ],
                "order_changed": false,
                "unexpected": []
              },
              "limitations": [
                "Structural and value-level conformance against the supplied contract only. Business meaning, referential integrity against other datasets, and whether the contract itself is correct are not assessed.",
                "Row, column, cell and violation bounds are applied before and during the audit. Anything left unexamined is named in not_examined, and passed is false whenever complete is false.",
                "Patterns use a documented non-backtracking subset with no groups or alternation, so a native regular expression relying on those will be refused rather than approximated."
              ],
              "limits": {
                "maxCellLength": 4096,
                "maxColumns": 64,
                "maxCsvBytes": 262144,
                "maxEnumValues": 100,
                "maxRows": 5000,
                "maxSafeInteger": 9007199254740991,
                "maxViolations": 500,
                "patternAtoms": 64,
                "patternValueLength": 256
              },
              "not_examined": [],
              "observed_at": "2026-10-02T00:00:00.000Z",
              "passed": false,
              "request_id": "example-request",
              "row_count": 3,
              "service_id": "tabular_contract_audit",
              "service_version": "1.0.0",
              "supplied_row_count": 3,
              "violation_count": 6,
              "violations": [
                {
                  "code": "BELOW_MINIMUM",
                  "column": "amount",
                  "detail": "Row 3: amount is -3, below the declared minimum 0.",
                  "row": 3,
                  "value": "-3"
                },
                {
                  "code": "TYPE_MISMATCH",
                  "column": "placed_at",
                  "detail": "Row 3: placed_at is declared date but \"2026-09-31\" reads as string.",
                  "row": 3,
                  "value": "2026-09-31"
                },
                {
                  "code": "DUPLICATE_VALUE",
                  "column": "order_id",
                  "detail": "Row 4: order_id repeats \"1001\", first seen at row 2.",
                  "row": 4,
                  "value": "1001"
                }
              ],
              "violations_by_code": {
                "BELOW_MINIMUM": 1,
                "DUPLICATE_PRIMARY_KEY": 1,
                "DUPLICATE_VALUE": 1,
                "NOT_IN_ENUM": 1,
                "NULL_RATE_EXCEEDED": 1,
                "TYPE_MISMATCH": 1
              },
              "warnings": []
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "contract": {
                      "additionalProperties": false,
                      "properties": {
                        "allow_extra_columns": {
                          "type": "boolean"
                        },
                        "columns": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "enum": {
                                "items": {
                                  "type": "string"
                                },
                                "maxItems": 100,
                                "type": "array"
                              },
                              "max": {
                                "type": "number"
                              },
                              "max_length": {
                                "minimum": 1,
                                "type": "integer"
                              },
                              "max_null_rate": {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "min": {
                                "type": "number"
                              },
                              "name": {
                                "type": "string"
                              },
                              "pattern": {
                                "maxLength": 200,
                                "type": "string"
                              },
                              "required": {
                                "type": "boolean"
                              },
                              "type": {
                                "enum": [
                                  "string",
                                  "integer",
                                  "number",
                                  "boolean",
                                  "date",
                                  "datetime"
                                ],
                                "type": "string"
                              },
                              "unique": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "type": "object"
                          },
                          "maxItems": 64,
                          "minItems": 1,
                          "type": "array"
                        },
                        "primary_key": {
                          "items": {
                            "type": "string"
                          },
                          "minItems": 1,
                          "type": "array"
                        },
                        "require_column_order": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "columns"
                      ],
                      "type": "object"
                    },
                    "csv": {
                      "maxLength": 262144,
                      "type": "string"
                    },
                    "delimiter": {
                      "maxLength": 1,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "csv",
                    "contract"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.zfinia.com",
    "manifest_name": "api.zfinia.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": {
    "assumptions": [
      "Values are compared as the text supplied. No locale, thousands separator or ambiguous date order is inferred, so normalise before auditing if your source uses them.",
      "An empty field is treated as absent, because a literal empty string cannot be distinguished from a missing value in delimited text."
    ],
    "column_count": 5,
    "column_profiles": [
      {
        "declared_type": "integer",
        "distinct_count": 2,
        "inferred_type": "integer",
        "inferred_type_counts": {
          "integer": 3
        },
        "max_length": 4,
        "max_numeric": 1002,
        "min_length": 4,
        "min_numeric": 1001,
        "name": "order_id",
        "null_count": 0,
        "null_rate": 0,
        "present": true
      },
      {
        "declared_type": "string",
        "distinct_count": 3,
        "inferred_type": "string",
        "inferred_type_counts": {
          "string": 3
        },
        "max_length": 3,
        "max_numeric": null,
        "min_length": 3,
        "min_numeric": null,
        "name": "currency",
        "null_count": 0,
        "null_rate": 0,
        "present": true
      },
      {
        "declared_type": "number",
        "distinct_count": 3,
        "inferred_type": "number",
        "inferred_type_counts": {
          "integer": 1,
          "number": 2
        },
        "max_length": 5,
        "max_numeric": 42.5,
        "min_length": 2,
        "min_numeric": -3,
        "name": "amount",
        "null_count": 0,
        "null_rate": 0,
        "present": true
      }
    ],
    "complete": true,
    "encoding": {
      "byte_order_mark": false,
      "crlf_line_endings": false,
      "mixed_line_endings": false,
      "replacement_characters": 0
    },
    "header": {
      "declared": [
        "order_id",
        "currency",
        "amount"
      ],
      "duplicated": [],
      "missing": [],
      "observed": [
        "order_id",
        "currency",
        "amount"
      ],
      "order_changed": false,
      "unexpected": []
    },
    "limitations": [
      "Structural and value-level conformance against the supplied contract only. Business meaning, referential integrity against other datasets, and whether the contract itself is correct are not assessed.",
      "Row, column, cell and violation bounds are applied before and during the audit. Anything left unexamined is named in not_examined, and passed is false whenever complete is false.",
      "Patterns use a documented non-backtracking subset with no groups or alternation, so a native regular expression relying on those will be refused rather than approximated."
    ],
    "limits": {
      "maxCellLength": 4096,
      "maxColumns": 64,
      "maxCsvBytes": 262144,
      "maxEnumValues": 100,
      "maxRows": 5000,
      "maxSafeInteger": 9007199254740991,
      "maxViolations": 500,
      "patternAtoms": 64,
      "patternValueLength": 256
    },
    "not_examined": [],
    "observed_at": "2026-10-02T00:00:00.000Z",
    "passed": false,
    "request_id": "example-request",
    "row_count": 3,
    "service_id": "tabular_contract_audit",
    "service_version": "1.0.0",
    "supplied_row_count": 3,
    "violation_count": 6,
    "violations": [
      {
        "code": "BELOW_MINIMUM",
        "column": "amount",
        "detail": "Row 3: amount is -3, below the declared minimum 0.",
        "row": 3,
        "value": "-3"
      },
      {
        "code": "TYPE_MISMATCH",
        "column": "placed_at",
        "detail": "Row 3: placed_at is declared date but \"2026-09-31\" reads as string.",
        "row": 3,
        "value": "2026-09-31"
      },
      {
        "code": "DUPLICATE_VALUE",
        "column": "order_id",
        "detail": "Row 4: order_id repeats \"1001\", first seen at row 2.",
        "row": 4,
        "value": "1001"
      }
    ],
    "violations_by_code": {
      "BELOW_MINIMUM": 1,
      "DUPLICATE_PRIMARY_KEY": 1,
      "DUPLICATE_VALUE": 1,
      "NOT_IN_ENUM": 1,
      "NULL_RATE_EXCEEDED": 1,
      "TYPE_MISMATCH": 1
    },
    "warnings": []
  }
}