{"uid":"cap_eTodPU03Rg11nNG8J_uZ1","slug":"gateway-apiosk-com-trust-checks-calculate-868546a8","name":"gateway.apiosk.com Trust-Checks Calculate","description":"Independently re-compute order/invoice math from line items and optional fees, returning gross, fee and net so an agent's own totals can be verified against a trusted calculation.","url":"https://gateway.apiosk.com/trust-checks/calculate","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.077","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.07/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.07","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.07","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fiC4rjo3POGK0OTVLgCy1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.07","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates trust-check fees, net, and gross amounts for a set of line items and a fee structure, returning a validated breakdown of fixed and percentage fees.","exampleAgentPrompt":"Can you calculate the trust-check fees and net payout for these line items — a $30 gross order — using a $0.50 fixed fee plus 2% percentage fee, and confirm whether the fee structure is valid?","exampleUseCases":null,"resultDescription":"Returns a JSON object with ok status, total fee amount, net amount after fees, gross amount, validity flag, the endpoint name, and a breakdown of fixed and percentage fee components.","failureModes":["Missing or malformed fees object returns validation error","Empty or invalid line_items array causes computation failure","Fee structure that doesn't add up to gross returns valid:false","Network timeout or gateway error returns non-200 response","Malformed JSON body returns parse error"],"whenToPreferThis":"Use this endpoint when you need to compute and validate fee breakdowns — including fixed and percentage components — for a set of line items, and want a server-side authoritative calculation of net and gross amounts rather than doing the math client-side.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:57:46.224Z","isFirstParty":false}