{"uid":"cap_LL3LVXYE0kVYd9rJZcdHg","slug":"document-approvals-string-normalisation-date-by-category-pivot-e37f9274","name":"Document Approvals — String Normalisation + Date-by-Category Pivot","description":"Document approvals — String normalisation + Date by category pivot: String normalisation + Date by category pivot for supplied document approvals records (submitted_documents, approved_documents). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-operations-17-035?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","team_group","date","submitted_documents","approved_documents"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"team_group":{"type":"string","default":"","maxLength":80},"approved_documents":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"submitted_documents":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","team_group":"group-a","approved_documents":1,"submitted_documents":10},{"date":"2026-10-02","row_id":"row-2","team_group":"group-b","approved_documents":2,"submitted_documents":20},{"date":"2026-10-03","row_id":"row-3","team_group":"group-a","approved_documents":3,"submitted_documents":15},{"date":"2026-10-04","row_id":"row-4","team_group":"group-b","approved_documents":4,"submitted_documents":30}],"maxItems":200,"minItems":1},"field":{"enum":["submitted_documents","approved_documents"],"type":"string","default":"submitted_documents"}}},"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_Mn4IRYunsdMCfIMmaPdYM","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":"Runs two analytical reports on document approval records: string normalisation of text fields and a date-by-category pivot, for up to 200 rows of submitted/approved document data.","exampleAgentPrompt":"I have 150 rows of document approval records with team_group, date, submitted_documents, and approved_documents — can you run both the string normalisation report and the date-by-category pivot on the submitted_documents field for me?","exampleUseCases":[{"title":"Approval rate pivot by team","prompt":"I've got records from our four document review teams — each row has a date, team name, and counts for submitted and approved documents. Can you pivot the approved_documents field by date and team_group so I can see how each team is performing over time?"},{"title":"Clean up messy team name strings","prompt":"Our team_group labels in the approval export are inconsistent — some have extra spaces or mixed casing. Can you run string normalisation on these 80 rows so the values are clean and consistent before I load them into the dashboard?"},{"title":"Monthly submission summary for compliance audit","prompt":"I need to prepare for a compliance review and I have 120 rows of submitted_documents and approved_documents data by team and date. Run both the string normalisation and the date-by-category pivot on submitted_documents so I get a clean structured summary to share with the auditors."}],"resultDescription":"Two analytical reports: (1) a string normalisation report that cleans and standardises text fields (e.g. team_group) across the supplied rows, and (2) a date-by-category pivot table aggregating the selected numeric field (submitted_documents or approved_documents) broken down by date and team_group category. All processing is performed locally on the supplied data with no external lookups.","failureModes":["Rows array is empty or exceeds 200 items — request rejected","date field does not match YYYY-MM-DD format — validation error","row_id missing or blank — schema validation failure","numeric fields outside allowed range (±1,000,000,000,000) — rejected","field enum value not 'submitted_documents' or 'approved_documents' — invalid input","Payment of 0.01 USDC not completed — 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you have up to 200 rows of document approval records and need both string normalisation of categorical/text fields and a date-by-category pivot in a single low-cost call ($0.01 USDC). It is ideal for pre-dashboard data cleaning, compliance reporting prep, or quick offline analytical summaries where no live data lookup or external prediction is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:34:52.446Z","isFirstParty":false,"canonicalSlug":"document-approvals-string-normalisation-date-by-category-pivot-e37f9274"}