{"uid":"cap_kOef3KFPseTJGpQcILuQu","slug":"purchase-order-imports-header-contract-check-6395862b","name":"Purchase Order Imports — Header Contract Check","description":"Purchase order imports — Header contract check: Header contract check for Purchase order imports. Validate a declared CSV table contract, up to 1000 rows. Quoted cells supported; no external enrichment. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one CSV header contract check report.","url":"https://market.datapackvibe.com/x402/assistant-bx-csv-purchases-schema?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","default":"purchase_id,placed_on,vendor_id,ordered_units,order_amount\nrecord-a,2026-01-01,group-a,10,2\nrecord-b,2026-01-02,group-b,20,3","maxLength":100000,"minLength":1},"maximum":{"type":"number","default":1000000000000,"maximum":1000000000000,"minimum":-1000000000000},"minimum":{"type":"number","default":-1000000000000,"maximum":1000000000000,"minimum":-1000000000000},"delimiter":{"enum":[",",";","\t"],"type":"string","default":","},"max_cell_length":{"type":"integer","default":1000,"maximum":5000,"minimum":1},"allowed_categories":{"type":"array","items":{"type":"string","default":"","maxLength":100,"minLength":1},"default":["group-a","group-b"],"maxItems":100,"minItems":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E6v6TpZEeARe06eiYouWN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates the column header contract of a purchase order CSV file (up to 1000 rows) against expected field names and data constraints.","exampleAgentPrompt":"Can you validate my purchase order CSV to make sure the headers and data match the expected contract — columns like purchase_id, placed_on, vendor_id, ordered_units, and order_amount — using a comma delimiter, with allowed categories group-a and group-b, and order amounts between 0 and 1000000?","exampleUseCases":[{"title":"ERP import pre-flight check","prompt":"Before I push this purchase order CSV into the ERP system, can you run a header contract check on it to confirm all the required columns are present and the vendor categories are only group-a or group-b? The file uses comma delimiters and I want to catch any schema issues now."},{"title":"Vendor data intake validation","prompt":"I just received a CSV of purchase orders from a vendor and I need to verify it follows our standard schema — purchase_id, placed_on, vendor_id, ordered_units, order_amount — with comma delimiters and order amounts between 1 and 500000. Can you check the header contract and tell me if anything is off?"},{"title":"Automated PO pipeline quality gate","prompt":"As part of our nightly purchase order pipeline, validate this CSV's header contract to make sure the columns match our expected structure, the allowed categories are just group-a through group-c, and no numeric values fall outside the range of 0 to 999999. Flag any violations in the report."}],"resultDescription":"Returns a header contract check report for the submitted purchase order CSV, indicating whether the declared column headers and data conform to the expected schema, including any violations of allowed categories, numeric bounds, or cell length limits — covering up to 1000 rows.","failureModes":["CSV exceeds 1000 rows — only up to 1000 rows are validated","CSV string is empty or missing — minimum length of 1 character required","Cell content exceeds max_cell_length — flagged as a contract violation","Delimiter mismatch causes parsing errors if actual delimiter differs from declared one","Numeric values outside declared minimum/maximum bounds are flagged","Category values not in allowed_categories list trigger contract violations","Malformed CSV that cannot be parsed returns an error report"],"whenToPreferThis":"Choose this endpoint when you need a fast, low-cost ($0.01 USDC) structural validation of purchase order CSV files specifically, particularly when checking that column headers match the expected contract (purchase_id, placed_on, vendor_id, ordered_units, order_amount) and that data values conform to allowed categories and numeric ranges. Prefer this over generic CSV validators when the domain is purchase order imports and you need a specialised preset with no external enrichment or side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:47:46.446Z","isFirstParty":false,"canonicalSlug":"purchase-order-imports-header-contract-check-6395862b"}