{"openapi":"3.1.0","info":{"title":"RatesNegotiator API","description":"Merchant processing statement in → verified RatesNegotiator report out. [Partner reference and dated changelog](/#changelog).\n\nAccounts enabled for paired documents receive a merchant-facing Statement Analysis and a four-page INTERNAL analysis from one eligible job (teaser or statement_analysis_internal). This is an account setting, not an upload parameter. Both documents must pass review. On complete, teaser_pdf_url and internal_pdf_url are optional additive fields. Completed polling and completion webhooks also include files and file_count. Each files entry gives name, role (merchant or internal), and a full download_url. Download both entries; never infer a document role from its name. pdf_url remains the primary download: merchant Teaser for teaser; INTERNAL for statement_analysis_internal. Using only pdf_url misses the companion. Never send INTERNAL to a merchant. Accounts and historical jobs without a pair retain their existing response and primary download. All downloads require the same owning account's Bearer API key; URLs are not signed public links.","version":"1.40.56"},"servers":[{"url":"https://api.ratesnegotiator.com"}],"paths":{"/v1/report-types":{"get":{"summary":"Report Types","operationId":"report_types_v1_report_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"description":"Available report types and required inputs. teaser: A one-page Card Processing Snapshot with two alternative annual savings paths (current pricing or a cash discount program), three cost comparisons (overall rate, card network cost, and provider markup and fees), and three cards (fair pricing, statement snapshot, and a cash discount program). All savings amounts are annual; the five-row snapshot shows totals for the included statement period. Cash discount is always shown with 'if eligible'. Eligibility for a cash discount program is established upon review."}},"/v1/reports":{"post":{"summary":"Create Report","operationId":"create_report_v1_reports_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Body_create_report_v1_reports_post","not":{"required":["statement","statements","report_type"],"properties":{"report_type":{"const":"pricing_proposal"}}},"allOf":[{"not":{"properties":{"report_type":{"const":"teaser"}},"required":["report_type"]}}]},{"type":"object","required":["report_type","statements"],"properties":{"report_type":{"type":"string","enum":["multi_month_analysis"]},"merchant_name":{"type":"string"},"statements":{"type":"array","minItems":2,"maxItems":12,"items":{"type":"string","format":"binary"}},"reference":{"type":"string"},"webhook_url":{"type":"string"}}},{"type":"object","required":["report_type","statements"],"description":"One merchant, 2–12 distinct monthly statements (PDF, XLSX, XLS or CSV). Use statements OR the legacy statement field, never both.","properties":{"report_type":{"type":"string","enum":["pricing_proposal"]},"merchant_name":{"type":"string"},"statements":{"type":"array","minItems":2,"maxItems":12,"items":{"type":"string","format":"binary"}},"rates":{"type":"string","description":"Optional JSON object; omit or send {} for automatic proposal pricing. Legacy tariff fields remain accepted but do not override the selected proposal. Read the completed proposed terms and annual savings. Fee comparisons preserve verified source amounts; missing evidence is never invented."},"reference":{"type":"string"},"webhook_url":{"type":"string"}},"not":{"required":["statement"]}},{"type":"object","required":["report_type","statement"],"properties":{"report_type":{"type":"string","enum":["teaser"]},"merchant_name":{"type":"string","minLength":1,"maxLength":120},"specialist_name":{"type":"string","maxLength":80,"description":"Specialist name, up to 80 characters. Optional; teaser only. If any request contact field is non-empty, only supplied contact fields are printed. Otherwise the saved client contact is used. If neither has a value, the entire contact panel is hidden. No brand contact fallback."},"specialist_phone":{"type":"string","maxLength":30,"description":"Phone as free text, up to 30 characters. Optional; teaser only. If any request contact field is non-empty, only supplied contact fields are printed. Otherwise the saved client contact is used. If neither has a value, the entire contact panel is hidden. No brand contact fallback."},"specialist_email":{"type":"string","anyOf":[{"format":"email"},{"const":""}],"maxLength":254,"description":"Specialist email address. Optional; teaser only. If any request contact field is non-empty, only supplied contact fields are printed. Otherwise the saved client contact is used. If neither has a value, the entire contact panel is hidden. No brand contact fallback."},"reference":{"type":"string","description":"Optional correlation value, echoed in submission and polling responses."},"webhook_url":{"type":"string","description":"Optional completion notification URL."},"statement":{"type":"string","format":"binary"}},"not":{"required":["statements"]}},{"type":"object","required":["report_type","statements"],"properties":{"report_type":{"type":"string","enum":["teaser"]},"merchant_name":{"type":"string","minLength":1,"maxLength":120},"specialist_name":{"type":"string","maxLength":80,"description":"Specialist name, up to 80 characters. Optional; teaser only. If any request contact field is non-empty, only supplied contact fields are printed. Otherwise the saved client contact is used. If neither has a value, the entire contact panel is hidden. No brand contact fallback."},"specialist_phone":{"type":"string","maxLength":30,"description":"Phone as free text, up to 30 characters. Optional; teaser only. If any request contact field is non-empty, only supplied contact fields are printed. Otherwise the saved client contact is used. If neither has a value, the entire contact panel is hidden. No brand contact fallback."},"specialist_email":{"type":"string","anyOf":[{"format":"email"},{"const":""}],"maxLength":254,"description":"Specialist email address. Optional; teaser only. If any request contact field is non-empty, only supplied contact fields are printed. Otherwise the saved client contact is used. If neither has a value, the entire contact panel is hidden. No brand contact fallback."},"reference":{"type":"string","description":"Optional correlation value, echoed in submission and polling responses."},"webhook_url":{"type":"string","description":"Optional completion notification URL."},"statements":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"string","format":"binary"}}},"not":{"required":["statement"]}}]},"examples":{"teaser":{"summary":"One statement with optional reference and contact","value":{"report_type":"teaser","merchant_name":"Example business","reference":"snapshot-example","statement":"(binary PDF, XLSX, XLS or CSV)","specialist_name":"Example specialist","specialist_phone":"555-0100","specialist_email":""}}}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{},"examples":{"teaser":{"value":{"job_id":"rpt_example","report_type":"teaser","reference":"snapshot-example","status":"queued","poll":"https://api.ratesnegotiator.com/v1/reports/rpt_example"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"413":{"description":"Statement or combined upload size exceeds the limit."},"400":{"description":"For teaser requests: invalid specialist email, name over 80 characters, or phone over 30 characters.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}},"example":{"detail":"specialist_email must be a valid email address"}}}}},"description":"PDF, XLSX, XLS or CSV. Maximum 100 MiB per file and 300 MiB combined statement files per request (1 MiB = 1,048,576 bytes). Spreadsheet months, sales and fees require original-cell evidence; payout-only exports are insufficient. Large or complex statements may require review.\n\nCard Processing Snapshot: A one-page Card Processing Snapshot with two alternative annual savings paths (current pricing or a cash discount program), three cost comparisons (overall rate, card network cost, and provider markup and fees), and three cards (fair pricing, statement snapshot, and a cash discount program). All savings amounts are annual; the five-row snapshot shows totals for the included statement period. Cash discount is always shown with 'if eligible'. Eligibility for a cash discount program is established upon review. Use report_type=teaser, merchant_name, and either statement (one file) or repeated statements (one to three files), never both. PDF, XLSX, XLS and CSV are accepted; spreadsheet totals and each month require original-cell evidence. All statements must be distinct months for the same merchant. Optional reference, webhook_url and specialist contact fields are supported. Poll the returned job URL for the complete summary. Authenticated rejected submissions that create a job also return job_id and notice fields with the original error status and detail. No report is billed.\n\nAccounts enabled for paired documents receive a merchant-facing Statement Analysis and a four-page INTERNAL analysis from one eligible job (teaser or statement_analysis_internal). This is an account setting, not an upload parameter. Both documents must pass review. On complete, teaser_pdf_url and internal_pdf_url are optional additive fields. Completed polling and completion webhooks also include files and file_count. Each files entry gives name, role (merchant or internal), and a full download_url. Download both entries; never infer a document role from its name. pdf_url remains the primary download: merchant Teaser for teaser; INTERNAL for statement_analysis_internal. Using only pdf_url misses the companion. Never send INTERNAL to a merchant. Accounts and historical jobs without a pair retain their existing response and primary download. All downloads require the same owning account's Bearer API key; URLs are not signed public links."},"get":{"summary":"List Reports","operationId":"list_reports_v1_reports_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/portfolio":{"post":{"summary":"Create Portfolio","operationId":"create_portfolio_v1_reports_portfolio_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_portfolio_v1_reports_portfolio_post"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"413":{"description":"Statement or combined upload size exceeds the limit."}},"description":"PDF, XLSX, XLS or CSV. Maximum 100 MiB per file and 300 MiB combined statement files per request (1 MiB = 1,048,576 bytes). Spreadsheet months, sales and fees require original-cell evidence; payout-only exports are insufficient. Large or complex statements may require review. Authenticated rejected submissions that create a job also return job_id and notice fields with the original error status and detail. No report is billed."}},"/v1/reports/{job_id}":{"get":{"summary":"Get Report","operationId":"get_report_v1_reports__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/TeaserContact"},"notice_url":{"type":"string","description":"Authenticated PDF download URL. Resolve relative URLs against the API origin. Completed name_differs reports retain an action-needed confirmation notice; other completion retires the hold notice."},"notice_status":{"type":"string","enum":["under_review","action_needed","final"]},"customer_reason_code":{"type":"string","enum":["priced_too_low","evidence_chunk_incomplete","layout_not_supported","fee_total_missing","unreadable_statement","fees_do_not_match","identity_unconfirmed","months_do_not_match","details_not_shown","not_merchant_statement","file_cannot_open","no_card_sales","unsupported_file","under_review","name_differs","proposal_below_absolute_floor","authorization_count_unverified","square_sales_summary"],"description":"An accepted job with no printed business name or valid caller/owner identity defaults to under_review, not identity_unconfirmed. Its customer_reason_text is: Our team is reviewing the statement to make sure every figure is accurate before a report is shared. identity_unconfirmed concerns statement period/account confirmation."},"identity_mismatch":{"type":"boolean","description":"Report delivered for the printed statement business; confirm before sharing."},"submitted_name":{"type":"string"},"statement_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Verified printed business name, or null when the submitted-name fallback is used."},"identity_mismatches":{"type":"array","items":{"type":"object"}},"identity_verified":{"type":"boolean","description":"False for a valid caller-supplied name without verified printed identity. Delivery still requires all financial and review checks; missing printed/caller/owner identity holds before rendering."},"identity_note":{"type":"string","description":"Explains the submitted-name fallback."},"identity_fallbacks":{"type":"array","items":{"type":"object"}},"identity_reconciliation":{"type":"array","items":{"type":"object"},"description":"Per-statement business-equivalence verdict and reason. Same-business variants do not create a notice."},"statement_issued_to":{"type":"array","items":{"type":"string"}},"action_needed":{"type":"string","description":"For a completed name_differs notice: confirm_business. Confirm the business before sharing the delivered report. A name mismatch alone is not a hold; missing valid printed/caller/owner identity is a hold."},"customer_reason_text":{"type":"string","description":"Customer-safe explanation, identical to the notice PDF."},"customer_next_steps":{"type":"string","description":"Customer-safe next steps, identical to the notice PDF."},"summary":{"type":"object","properties":{"pricing_policy":{"$ref":"#/components/schemas/PricingPolicy"},"pricing_policies":{"type":"array","items":{"$ref":"#/components/schemas/PricingPolicy"}},"quoted_policy":{"type":"object","description":"Explicit offer rates, fee rows, annual savings and pass/hold result."},"quoted_policies":{"type":"array","items":{"type":"object"}}}},"teaser_pdf_url":{"type":"string","description":"Optional authenticated merchant-facing companion PDF URL; present only when available on a reviewed complete job."},"internal_pdf_url":{"type":"string","description":"Optional authenticated INTERNAL companion PDF URL. Not for customer use; present only when available on a reviewed complete job."},"files":{"type":"array","description":"All delivered files; primary aliases are not counted twice.","items":{"type":"object","required":["name","role","download_url"],"properties":{"name":{"type":"string","description":"Stored download filename."},"role":{"type":"string","enum":["merchant","internal"]},"download_url":{"type":"string","format":"uri","description":"Full authenticated download URL."},"url":{"type":"string","description":"Compatible URL alias; the files endpoint retains its relative form."}}}},"file_count":{"type":"integer","minimum":0,"description":"Number of entries in files."}},"allOf":[{"if":{"properties":{"report_type":{"const":"teaser"},"status":{"const":"complete"}},"required":["report_type","status"]},"then":{"$ref":"#/components/schemas/TeaserCompleteResponse"}}]},"examples":{"teaser_complete":{"summary":"Fictional current-policy snapshot","value":{"job_id":"example-report","reference":"fictional-example","report_type":"teaser","status":"complete","created_at":"2026-10-01T00:00:00Z","finished_at":"2026-10-01T00:01:00Z","pdf_url":"https://api.ratesnegotiator.com/v1/reports/example-report/pdf","summary":{"report_type":"teaser","display_name":"Card Processing Snapshot","level_23":{"available":true,"low":"1200.00","high":"1920.00","caption":"Level 2/3 data: estimated savings per year","shown_in_blue_box":false,"included_in_current_pricing":false,"included_in_win_test":false,"additive_with_cash_discount":false,"estimated":true,"commercial_volume":"20000.00","commercial_share_pct":"20.00","reduction_low_pct":"0.50","reduction_high_pct":"0.80","methodology":"0.50–0.80% of eligible itemized commercial volume; subject to data qualification; not additive to other savings"},"identity_mismatch":true,"submitted_name":"Example Submitted Business","statement_name":"Example Wine Supply","identity_mismatches":[{"submitted_name":"Example Submitted Business","statement_name":"Example Wine Supply","source_file":"example-september.pdf"}],"savings_period":"year","network_cost_policy_version":"shared-card-network-ledger-v14035","proposal_model":{"primary_model":"interchange_plus","conversion":false,"tiered_or_bundled":false,"platform":null,"very_little_debit_exception":false,"observed_debit_share":null,"reason":"Interchange-plus comparison"},"debit_blend":null,"cash_discount_estimate":{"estimated":true,"method":"fallback_95_percent","monthly":"2517.50","annual":"30210.00","annual_display":"30210.00","cap_annual":"30210.00","remaining_monthly":"0.00","excluded_out_of_scope":[],"missing_detail":["Authorization fee","Processor markup"],"assumption":"Card acceptance costs are modeled as covered; explicitly uncovered pass-through and dispute costs remain. Non-card items were already excluded from the fee basis. Final program coverage must be confirmed."},"flat_rate_alternative":null,"not_included":[],"margin_status":"normal","merchant_name":"Example Wine Supply","mode":"detailed","details_note":null,"platform":null,"detected_plan":null,"proposed_flat_rate":null,"snapshot":{"months_covered":["2026-09"],"covered_months":"1","gross_monthly":"100000.00","total_fees_monthly":"2650.00","effective_rate_pct":"2.65","period":"Sep 2026","gross_period":"100000","total_fees_period":"2650","transactions_monthly":"1000","average_ticket":"100.00","card_mix":[],"top_fee_lines":[{"label":"Interchange","amount_monthly":"2000.00"},{"label":"Processing fees · Processor markup","amount_monthly":"500.00"}],"rows":[{"label":"Processor","value":"Not identified"},{"label":"Period","value":"Sep 2026"},{"label":"Card volume","value":"$100,000"},{"label":"Total fees","value":"$2,650"},{"label":"Effective rate","value":"2.65%"},{"label":"Transactions","value":"1,000"}]},"months":["2026-09"],"months_count":1,"excluded_months":[],"covered_months":"1","submitted_months_count":1,"headline":"Your provider percentage is within the fair range. Lower other fees can still save money.","narrative":"We reviewed the processing statement you shared and compared your costs with a fair range for your card volume. All three costs are within the fair range. Percentage markup is in range; the savings shown come from lower per-item or other provider fees.","high_risk":false,"high_risk_reason":"Wine/alcohol merchant; standard-risk category under owner policy — treated as standard risk","high_risk_evidence":[],"outside_count":0,"bars":[{"key":"overall","label":"Your overall rate","subtitle":"Total fees divided by gross card sales.","value_pct":"2.65","low_pct":"2.76","high_pct":"2.87","estimated":false,"status":"normal","status_label":"NORMAL","fair_range_estimated":true,"unrounded":{"value_pct":"2.65","low_pct":"2.76","high_pct":"2.87"}},{"key":"network","label":"Card network cost","subtitle":"Set by Visa, Mastercard, Amex and Discover. Your provider cannot change it.","value_pct":"2.00","low_pct":"1.84","high_pct":"2.00","estimated":false,"status":"normal","status_label":"NORMAL","fair_range_estimated":true,"unrounded":{"value_pct":"2.00","low_pct":"1.84","high_pct":"2.00"}},{"key":"provider","label":"Your provider's percentage markup","subtitle":"All provider charges: $650.00/month (0.65%). Other fees priced separately.","value_pct":"0.00","low_pct":"0.12","high_pct":"0.20","estimated":false,"current_other_fees_pct":"0.65","proposed_other_fees_pct":"0.64","status":"normal","status_label":"IN RANGE","fair_range_estimated":true,"unrounded":{"value_pct":"0.00","low_pct":"0.12","high_pct":"0.20"}}],"cash_discount":"show","tile_variant":"statement_snapshot","paths":{"current":{"low":"600.00","high":"600.00","in_fair_range":false,"savings_basis":"provider_pricing","available":true,"estimated":true,"caption":"estimated savings per year"},"cash_discount":{"amount":"30210.00","estimated":true,"available":true,"reason":"","caption":"estimated savings per year · if eligible"}},"tiles":[{"key":"fair_pricing","title":"Fair pricing","low":"600.00","high":"600.00","in_fair_range":false,"description":"Bring provider charges into the fair range for your card volume and number of transactions.","caption":"estimated savings per year","available":true,"estimated":true},{"key":"statement_snapshot","title":"Statement snapshot","description":"","rows":[{"label":"Processor","value":"Not identified"},{"label":"Period","value":"Sep 2026"},{"label":"Card volume","value":"$100,000"},{"label":"Total fees","value":"$2,650"},{"label":"Effective rate","value":"2.65%"},{"label":"Transactions","value":"1,000"}],"display_value":"","low":"0.00","high":"0.00","caption":"","available":true,"estimated":false},{"key":"cash_discount","title":"Cash discount program","description":"An alternative pricing model that may reduce your card fees, based on eligibility.","low":"30210.00","high":null,"caption":"estimated savings per year · if eligible","available":true,"estimated":true}],"contact":{"specialist_name":"","specialist_phone":"","specialist_email":"","shown":false,"source":"none","name":"","phone":"","email":"","label":"processing specialist","note":""},"partner_label":"RatesNegotiator","credit_line":"RatesNegotiator, powered by AiPaymentsLab","footnote":"Estimates based on your recent processing statements. Fair ranges are based on your card volume and number of transactions. Actual results depend on your card mix and the pricing you choose. Cash discount savings are estimated after remaining costs, capped at 95% of current card fees; incomplete detail uses the 95% fallback. They depend on eligibility; they replace, rather than add to, the other options. Eligibility for a cash discount program is established upon review. Dollar totals are rounded to the nearest $10; unit prices remain exact. This report includes a statement submitted under a different business name. Please confirm the correct business before sharing this report.","figures":{"gross_monthly":"100000.00","total_fees_monthly":"2650.00","transactions_monthly":"1000","network_monthly":"2000.00","provider_monthly":"650.00","provider_low":"760.00","provider_high":"870.00","overall_low":"2760.00","overall_high":"2870.00","flat_fees_monthly":"50.00","flat_fee_fair_low":"0.00","flat_fee_fair_high":"0.00","flat_fee_fair_scope":"all_monthly_type_fees","business_share_pct":"20.00","business_one_in":5,"fair_savings_low":"600.00","fair_savings_high":"600.00","business_savings_low":"1200.00","business_savings_high":"1920.00","extra_fee_savings_low":"600.00","extra_fee_savings_high":"600.00","cash_savings_annual":"30210.00","network_estimated":false,"provider_estimated":false,"transactions_estimated":false,"transactions_known":true,"per_transaction_allowance_included":true,"savings_estimated":true,"fair_ranges_estimated":true},"evidence":[{"month":"2026-09","gross":"100000.00","fees":"2650.00","transactions":"1000","covered_months":"1","transactions_estimated":false,"transactions_source":"statement transaction count","network":{"amount":"2000.00","low":"2000.00","expected":"2000.00","high":"2000.00","estimated":false,"method":"itemized interchange plus network fees","assumptions":[],"segments":[]},"business_volume":"20000.00","business_transactions":"200","business_counts_known":true,"l2_low":"1200.00","l2_high":"1920.00","flat_fees":"50.00"}],"refunds_period":"0","show_net_effective_rate":false,"net_effective_rate_pct":"2.65","net_effective_rate_note":null,"figures_estimated":false,"figures_notice":null,"high_effective_rate":false,"high_effective_rate_note":null,"provider_pricing_test":{"measured":true,"markup_pct":"0.00","markup_ceiling_pct":"0.20","current_per_authorization":null,"authorization_ceiling":"0.07","proposed_per_authorization":"0.07","percentage_outside":false,"per_item_outside":false,"in_fair_range":false,"percentage_in_fair_range":true,"other_fee_savings_annual":"600.00"},"current_provider_share_known":true,"pricing_policy":{"savings_components":{"current_pricing":{"low":"600.00","high":"600.00","in_fair_range":false,"savings_basis":"provider_pricing","available":true,"estimated":true,"caption":"estimated savings per year"},"business_data":{"low":"1200.00","high":"1920.00","estimated":true},"cash_discount":{"amount":"30210.00","estimated":true,"available":true,"reason":"","caption":"estimated savings per year · if eligible"},"extra_fees_low":"600.00","extra_fees_high":"600.00"},"high_risk":false,"high_risk_reason":"Wine/alcohol merchant; standard-risk category under owner policy — treated as standard risk","savings_period":"year"},"annual_savings_display":{"current":{"low":"560.00","high":"650.00","text":"$560 – $650","basis":"single_estimate_margin"},"cash_discount":{"low":"30210.00","high":"30210.00","text":"$30,210","basis":"single_estimate"},"tiles":{"fair_pricing":{"low":"560.00","high":"650.00","text":"$560 – $650","basis":"single_estimate_margin"},"cash_discount":{"low":"30210.00","high":"30210.00","text":"$30,210","basis":"single_estimate"}},"level_23":{"low":"1200.00","high":"1920.00","text":"$1,200 – $1,920","basis":"existing_range"}},"money_found":{"title":"Money we found","covered_months":"1","removable":{"items":[],"statement_amount":"0.00","monthly_amount":"0.00"},"avoidable_network":{"items":[],"statement_amount":"0.00","monthly_amount":"0.00"},"note":"Amounts shown were charged in the supplied statements. Monthly amounts are period averages. Do not add these findings to the savings comparisons.","avoidable_network_note":"Operational network charges: potentially avoidable by changing processing practices; not included in savings."}},"contact":{"specialist_name":"","specialist_phone":"","specialist_email":"","shown":false,"source":"none","name":"","phone":"","email":"","label":"processing specialist","note":""},"identity_mismatch":true,"submitted_name":"Example Submitted Business","statement_name":"Example Wine Supply","identity_mismatches":[{"submitted_name":"Example Submitted Business","statement_name":"Example Wine Supply","source_file":"example-september.pdf"}],"notice_url":"/v1/reports/example-report/notice","notice_status":"action_needed","customer_reason_code":"name_differs","action_needed":"confirm_business","customer_reason_text":"The report is ready for the business named on the statement. It was submitted under a different business name.","customer_next_steps":"Confirm the correct business before sharing the report."}},"proposal_below_absolute_floor":{"summary":"Held: proposal below the absolute markup floor.","value":{"job_id":"example-held","report_type":"pricing_proposal","status":"needs_review","reason_category":"proposal_below_absolute_floor","reason":"Held: proposal below the absolute markup floor.","partner_reason":"Held: proposal below the absolute markup floor."}},"authorization_count_unverified":{"summary":"Held: authorization counts are required to verify pricing safeguards.","value":{"job_id":"example-held","report_type":"pricing_proposal","status":"needs_review","reason_category":"authorization_count_unverified","reason":"Held: authorization counts are required to verify pricing safeguards.","partner_reason":"Held: authorization counts are required to verify pricing safeguards."}},"paired_downloads":{"summary":"Completed paired job — link excerpt; financial summary and other metadata omitted","value":{"job_id":"example-paired-report","report_type":"teaser","status":"complete","pdf_url":"https://api.ratesnegotiator.com/v1/reports/example-paired-report/pdf","teaser_pdf_url":"https://api.example.com/v1/reports/example-paired-report/teaser","internal_pdf_url":"https://api.example.com/v1/reports/example-paired-report/internal","file_count":2,"files":[{"name":"Example Store Statement Analysis.pdf","role":"merchant","url":"https://api.example.com/v1/reports/example-paired-report/teaser","download_url":"https://api.example.com/v1/reports/example-paired-report/teaser"},{"name":"Example Store Statement Analysis - INTERNAL.pdf","role":"internal","url":"https://api.example.com/v1/reports/example-paired-report/internal","download_url":"https://api.example.com/v1/reports/example-paired-report/internal"}]}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"All seven report types, JSON summaries, PDFs, preview images, private/owner editions and portfolio XLSX/CSV use one shared pricing policy. pricing_policy is the common comparison; pricing_policies contains separate comparisons for multiple merchants. quoted_policy/quoted_policies describe an explicit offer and may differ from the benchmark range. Program-performance actuals remain observed bills, not hypothetical quotes. Classifications retain exact source amounts; savings are annual, with display amounts rounded to $10. All monthly service/statement, batch, minimum, gateway and PCI compliance fees are shown in the proposed comparison. Current-pricing comparisons use the fair-range ceiling, not the lowest available tariff. Provider savings combine supported percentage, per-item and other provider-fee reductions once, with identifiable components. Already-fair percentage pricing has zero percentage-component savings but can still have other fee savings. Use the returned presentation-ready values rather than reconstructing the private pricing rulebook. Every result records high_risk and high_risk_reason. Alcohol, wine, liquor and beer merchants always use standard-risk volume tiers; restricted categories include CBD/hemp, firearms/ammunition, peptides/research chemicals, supplements, vape/tobacco, adult businesses, online gambling, debt collection, travel, timeshares, cryptocurrency, telemarketing, pawn and bail bonds. Travel requires actual merchant industry or MCC, not incidental statement text. At 10%+ itemized commercial volume, CNP/B2B Level 2/3 estimates use 0.50–0.80% of that volume. Named products and native codes are recognized. These estimates stay separate from markup savings, quoted bills and cash discount. For already-fair merchants, eligible Level 2/3 savings remain separate (level_23.shown_in_blue_box=false), with no markup reduction. Reconcile names before warnings: same-business variants use the preferred printed name without an identity_mismatch flag or confirmation notice, with a small Statement issued to line when strings differ. The name-comparison verdict and reason remain private. A genuine name difference does not hold a readable, reconciled report: it completes for the printed business, with identity_mismatch, submitted_name, statement_name and identity_mismatches in the summary and completion metadata. The footnote asks the partner to confirm the business. Business-name priority is printed DBA, printed legal name, source-bound owner confirmation, valid caller merchant_name, merchant mailing addressee, cleaned upload filename, then a processor/period title. Missing or unverifiable identity alone never holds a report. The optional merchant_name is recommended; empty names, placeholders such as test/n/a/unknown and names longer than 120 characters are skipped, not silently truncated. Name provenance is private owner metadata, never a public response/webhook/report field. Fallback names have no unverified label on customer reports. A genuine completed name mismatch retains its name_differs confirmation notice. Existing fair unit fees and unverified charges are preserved. Platform estimates remain qualified. Reconciled printed interchange, wholesale and network fees take precedence over modeled costs. An excessive network estimate does not hold delivery: it is capped below total fees after a minimum provider allowance, stays labeled estimated and carries a footnote. Unreadable pages and failed printed-total reconciliation still hold delivery. Component cross-checks allow the larger of $5 or 0.5% of the printed total; larger gaps hold. Printed or exact source-proven composed totals remain authoritative. Financial source citations, conflicting printed totals, period, missing data and pricing safeguards remain strict. Estimated comparisons never waive source proof. For the supported reconciled card-processing/account-activity layout, separately printed dated processor charges such as chargeback/dispute processing fees count once and fee-related refund credits reduce fees. Reconciled debit/credit signs govern; repeated summaries and already-included card fees are not added twice. Dispute principal and sales refunds are not processing fees. Unrecognized fee activity or inconsistent evidence requires review. Without qualifying account activity, the supported complete card table's Fees Adjusted total is used; funding-summary Refund Adjustments and Other Adjustments are ignored, neither added nor subtracted. These reconciled card-processing/account-activity and adjusted-table layouts retain processor-fee-covered sales in gross, including direct-settled Amex. When the source says fees 'do not include American Express fees', the disclosure states: Amex sales remain included in gross. The processor's Amex processing fees are included; American Express's own fees are billed separately. Outside that scope, proven direct settlement with missing brand discount fees excludes the brand's gross from the fee-covered rate/comparison basis, with Excluded direct-settled volume disclosed; billed ancillary fees and processor-billed Amex/OptBlue remain. For Amex direct Merchant Financial Activity Statements with a Summary for Settlement Period, current fees equal Discount Amount plus signed Fees & Incentives from the period-summary Totals row; negative incentives reduce fees. Both columns need independent reconciliation and source proof. Gross is Total Charges before Credits. A prior-month Paid-in-Gross Debit Summary debit is not a current fee. network_cost_policy_version identifies this policy. Cash-discount estimates use residual costs where supported, otherwise 95%, and never exceed 95%. Zero-sales months never drive numbers. Missing unit evidence is not invented. Holds are polled, not sent to partner webhooks; under-review notices remain available. Prior completed jobs are immutable. Pilot quick start: use report_type=teaser, one complete PDF per merchant per month plus merchant_name, and reference=rep name + merchant (tracking only, not an idempotency key). Save the job_id; poll GET /v1/reports/{job_id} no more than every 15 seconds. For needs_review the owner is reviewing it: show the notice and do not resubmit. Upload 503 responses use Retry-After: 30; wait at least 30 seconds with jitter and bounded backoff, and never resubmit after a job ID. Default limit is 120 reports/hour per client key. Optional webhooks are report.complete/report.failed only. PDF, XLSX, XLS and CSV, default 100 MiB per file / 300 MiB combined (1 MiB = 1,048,576 bytes); configured limits may differ. Size/type errors are 413/415. See the partner reference for the minimal curl example. v1.40.20 adds generic component-reconciliation tolerance; it is not deployed by this change. The owner confirmed v1.40.19 is live and healthy. v1.40.15–v1.40.18 pilot recap: caller-supplied business-name disclosure, missing-name review holds, once-only chargeback processing fees and fee-refund credits, complete Amex direct period fees, with original-cell proof required for spreadsheet statements.\n\nAccounts enabled for paired documents receive a merchant-facing Statement Analysis and a four-page INTERNAL analysis from one eligible job (teaser or statement_analysis_internal). This is an account setting, not an upload parameter. Both documents must pass review. On complete, teaser_pdf_url and internal_pdf_url are optional additive fields. Completed polling and completion webhooks also include files and file_count. Each files entry gives name, role (merchant or internal), and a full download_url. Download both entries; never infer a document role from its name. pdf_url remains the primary download: merchant Teaser for teaser; INTERNAL for statement_analysis_internal. Using only pdf_url misses the companion. Never send INTERNAL to a merchant. Accounts and historical jobs without a pair retain their existing response and primary download. All downloads require the same owning account's Bearer API key; URLs are not signed public links. Poll no more than once every 15 seconds. needs_review is a hold, not completion: show the returned notice_url and customer-safe message, keep the job ID, and do not resubmit. Optional webhooks are report.complete and report.failed only; no needs_review webhook is sent. Complete webhook bodies also include the available companion URL fields."}},"/v1/reports/{job_id}/pdf":{"get":{"summary":"Get Pdf","operationId":"get_pdf_v1_reports__job_id__pdf_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"404":{"description":"Report not available. For an owned non-complete job with a notice, the existing detail string is accompanied by the notice fields.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"notice_url":{"type":"string","description":"Authenticated PDF download URL. Resolve relative URLs against the API origin. Completed name_differs reports retain an action-needed confirmation notice; other completion retires the hold notice."},"notice_status":{"type":"string","enum":["under_review","action_needed","final"]},"customer_reason_code":{"type":"string","enum":["priced_too_low","evidence_chunk_incomplete","layout_not_supported","fee_total_missing","unreadable_statement","fees_do_not_match","identity_unconfirmed","months_do_not_match","details_not_shown","not_merchant_statement","file_cannot_open","no_card_sales","unsupported_file","under_review","name_differs","proposal_below_absolute_floor","authorization_count_unverified","square_sales_summary"],"description":"An accepted job with no printed business name or valid caller/owner identity defaults to under_review, not identity_unconfirmed. Its customer_reason_text is: Our team is reviewing the statement to make sure every figure is accurate before a report is shared. identity_unconfirmed concerns statement period/account confirmation."},"identity_mismatch":{"type":"boolean","description":"Report delivered for the printed statement business; confirm before sharing."},"submitted_name":{"type":"string"},"statement_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Verified printed business name, or null when the submitted-name fallback is used."},"identity_mismatches":{"type":"array","items":{"type":"object"}},"identity_verified":{"type":"boolean","description":"False for a valid caller-supplied name without verified printed identity. Delivery still requires all financial and review checks; missing printed/caller/owner identity holds before rendering."},"identity_note":{"type":"string","description":"Explains the submitted-name fallback."},"identity_fallbacks":{"type":"array","items":{"type":"object"}},"identity_reconciliation":{"type":"array","items":{"type":"object"},"description":"Per-statement business-equivalence verdict and reason. Same-business variants do not create a notice."},"statement_issued_to":{"type":"array","items":{"type":"string"}},"action_needed":{"type":"string","description":"For a completed name_differs notice: confirm_business. Confirm the business before sharing the delivered report. A name mismatch alone is not a hold; missing valid printed/caller/owner identity is a hold."},"customer_reason_text":{"type":"string","description":"Customer-safe explanation, identical to the notice PDF."},"customer_next_steps":{"type":"string","description":"Customer-safe next steps, identical to the notice PDF."}}}}}}},"description":"Authenticated primary PDF. Existing route and billing behavior are unchanged. Accounts enabled for paired documents receive a merchant-facing Statement Analysis and a four-page INTERNAL analysis from one eligible job (teaser or statement_analysis_internal). This is an account setting, not an upload parameter. Both documents must pass review. On complete, teaser_pdf_url and internal_pdf_url are optional additive fields. Completed polling and completion webhooks also include files and file_count. Each files entry gives name, role (merchant or internal), and a full download_url. Download both entries; never infer a document role from its name. pdf_url remains the primary download: merchant Teaser for teaser; INTERNAL for statement_analysis_internal. Using only pdf_url misses the companion. Never send INTERNAL to a merchant. Accounts and historical jobs without a pair retain their existing response and primary download. All downloads require the same owning account's Bearer API key; URLs are not signed public links."}},"/v1/reports/{job_id}/workbook":{"get":{"summary":"Get Workbook","operationId":"get_workbook_v1_reports__job_id__workbook_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"404":{"description":"No workbook for this report type, or no completed workbook.","content":{"application/json":{"example":{"detail":"workbook not available for this report type"}}}}},"description":"Authenticated workbook download for portfolio_screen only. Not available for teaser, including completed snapshots: returns 404 with detail 'workbook not available for this report type'."}},"/v1/reports/{job_id}/csv":{"get":{"summary":"Get Csv","operationId":"get_csv_v1_reports__job_id__csv_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"Authenticated portfolio CSV for a completed job owned by the API key. Includes annual savings, applied floors and the exact pricing_policy_json also embedded in the PDF and workbook."}},"/v1/reports/{job_id}/notice":{"get":{"summary":"Download a report status notice","operationId":"download_notice_v1_reports__job_id__notice_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"404":{"description":"Job is not owned by this API key, no notice exists, or the notice was superseded by a completed report."},"503":{"description":"Notice storage or verification is temporarily unavailable. Retry shortly."}},"description":"Download the latest one-page Report status PDF using the same API key and ownership checks as the report. under_review: no action needed yet; action_needed: customer information is needed; final: the report cannot be completed. The notice includes the statement file list, a customer-safe explanation and next steps. Notices are free and do not count as billed reports. Completion retires hold notices, except name_differs retains a confirmation notice alongside the delivered report; a final decline regenerates the notice with final wording. Reason codes: priced_too_low: Priced too low for savings; evidence_chunk_incomplete: Statement section under review; layout_not_supported: Statement layout under review; fee_total_missing: Complete fee total could not be verified; unreadable_statement: Unclear scan or photo; fees_do_not_match: Fees do not match the printed total; identity_unconfirmed: Statement period or account not confirmed; months_do_not_match: Different accounts or duplicate months; details_not_shown: Required details not shown; not_merchant_statement: Not a merchant processing statement; file_cannot_open: Password-protected or damaged file; no_card_sales: No card sales in the submitted months; unsupported_file: File too large or wrong type; under_review: Other — under review; name_differs: Confirm the business; proposal_below_absolute_floor: Pricing needs review; authorization_count_unverified: Pricing needs review; square_sales_summary: Square sales summary: held for review."}},"/v1/invoices":{"get":{"tags":["Invoices"],"summary":"List your issued invoices","operationId":"client_invoices_v1_invoices_get","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by UTC billing month, YYYY-MM.","title":"Month"},"description":"Filter by UTC billing month, YYYY-MM."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Your issued invoices, newest billing month first. Optional month=YYYY-MM filters by billing month. An empty list means none are available.","content":{"application/json":{"schema":{"type":"object","required":["invoices"],"properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/IssuedInvoiceSummary"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"API key missing or invalid."},"404":{"description":"Invoice unavailable or not owned by the caller."},"503":{"description":"Document storage temporarily unavailable; retry later."}},"description":"Requires your existing client API key. Only issued invoices belonging to your client are accessible. Drafts are never available. Issued downloads remain unchanged; later corrections appear separately on a subsequent invoice. Each new invoice covers exactly one completed UTC calendar month, with at most one issued invoice per client-month. Itemized job timestamps are Eastern Time. The current month is not available as a newly issued invoice."}},"/v1/invoices/{number}/pdf":{"get":{"tags":["Invoices"],"summary":"Download an issued invoice PDF","operationId":"client_pdf_v1_invoices__number__pdf_get","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string","title":"Number"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"API key missing or invalid."},"404":{"description":"Invoice unavailable or not owned by the caller."},"503":{"description":"Document storage temporarily unavailable; retry later."}},"description":"Requires your existing client API key. Only issued invoices belonging to your client are accessible. Drafts are never available. Issued downloads remain unchanged; later corrections appear separately on a subsequent invoice. Each new invoice covers exactly one completed UTC calendar month, with at most one issued invoice per client-month. Itemized job timestamps are Eastern Time. The current month is not available as a newly issued invoice."}},"/v1/invoices/{number}/csv":{"get":{"tags":["Invoices"],"summary":"Download issued invoice itemization","operationId":"client_csv_v1_invoices__number__csv_get","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string","title":"Number"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/csv":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"API key missing or invalid."},"404":{"description":"Invoice unavailable or not owned by the caller."},"503":{"description":"Document storage temporarily unavailable; retry later."}},"description":"Requires your existing client API key. Only issued invoices belonging to your client are accessible. Drafts are never available. Issued downloads remain unchanged; later corrections appear separately on a subsequent invoice. Each new invoice covers exactly one completed UTC calendar month, with at most one issued invoice per client-month. Itemized job timestamps are Eastern Time. The current month is not available as a newly issued invoice."}},"/v1/reports/{job_id}/files":{"get":{"summary":"Companion document manifest","operationId":"files_v1_reports__job_id__files_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Companion document manifest","content":{"application/json":{"schema":{"type":"object","required":["files","file_count"],"properties":{"files":{"type":"array","description":"All delivered files; primary aliases are not counted twice.","items":{"type":"object","required":["name","role","download_url"],"properties":{"name":{"type":"string","description":"Stored download filename."},"role":{"type":"string","enum":["merchant","internal"]},"download_url":{"type":"string","format":"uri","description":"Full authenticated download URL."},"url":{"type":"string","description":"Compatible URL alias; the files endpoint retains its relative form."}}}},"file_count":{"type":"integer","minimum":0,"description":"Number of entries in files."}}}}}},"401":{"description":"Missing or invalid Bearer API key."},"404":{"description":"No accessible completed pair for this job.","content":{"application/json":{"example":{"detail":"Report pair is not available"}}}},"409":{"description":"Report review has not passed; delivery is blocked."}},"description":"Accounts enabled for paired documents receive a merchant-facing Statement Analysis and a four-page INTERNAL analysis from one eligible job (teaser or statement_analysis_internal). This is an account setting, not an upload parameter. Both documents must pass review. On complete, teaser_pdf_url and internal_pdf_url are optional additive fields. Completed polling and completion webhooks also include files and file_count. Each files entry gives name, role (merchant or internal), and a full download_url. Download both entries; never infer a document role from its name. pdf_url remains the primary download: merchant Teaser for teaser; INTERNAL for statement_analysis_internal. Using only pdf_url misses the companion. Never send INTERNAL to a merchant. Accounts and historical jobs without a pair retain their existing response and primary download. All downloads require the same owning account's Bearer API key; URLs are not signed public links."}},"/v1/reports/{job_id}/teaser":{"get":{"summary":"Merchant-facing Teaser PDF","operationId":"teaser_v1_reports__job_id__teaser_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Merchant-facing Teaser PDF","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Missing or invalid Bearer API key."},"404":{"description":"No accessible completed pair for this job.","content":{"application/json":{"example":{"detail":"Report pair is not available"}}}},"409":{"description":"Report review has not passed; delivery is blocked."}},"description":"Accounts enabled for paired documents receive a merchant-facing Statement Analysis and a four-page INTERNAL analysis from one eligible job (teaser or statement_analysis_internal). This is an account setting, not an upload parameter. Both documents must pass review. On complete, teaser_pdf_url and internal_pdf_url are optional additive fields. Completed polling and completion webhooks also include files and file_count. Each files entry gives name, role (merchant or internal), and a full download_url. Download both entries; never infer a document role from its name. pdf_url remains the primary download: merchant Teaser for teaser; INTERNAL for statement_analysis_internal. Using only pdf_url misses the companion. Never send INTERNAL to a merchant. Accounts and historical jobs without a pair retain their existing response and primary download. All downloads require the same owning account's Bearer API key; URLs are not signed public links."}},"/v1/reports/{job_id}/internal":{"get":{"summary":"INTERNAL analysis PDF — not for customer use","operationId":"internal_v1_reports__job_id__internal_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"INTERNAL analysis PDF — not for customer use","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Missing or invalid Bearer API key."},"404":{"description":"No accessible completed pair for this job.","content":{"application/json":{"example":{"detail":"Report pair is not available"}}}},"409":{"description":"Report review has not passed; delivery is blocked."}},"description":"Accounts enabled for paired documents receive a merchant-facing Statement Analysis and a four-page INTERNAL analysis from one eligible job (teaser or statement_analysis_internal). This is an account setting, not an upload parameter. Both documents must pass review. On complete, teaser_pdf_url and internal_pdf_url are optional additive fields. Completed polling and completion webhooks also include files and file_count. Each files entry gives name, role (merchant or internal), and a full download_url. Download both entries; never infer a document role from its name. pdf_url remains the primary download: merchant Teaser for teaser; INTERNAL for statement_analysis_internal. Using only pdf_url misses the companion. Never send INTERNAL to a merchant. Accounts and historical jobs without a pair retain their existing response and primary download. All downloads require the same owning account's Bearer API key; URLs are not signed public links."}}},"components":{"schemas":{"Body_create_portfolio_v1_reports_portfolio_post":{"properties":{"statements":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Statements"},"report_type":{"type":"string","title":"Report Type"},"portfolio_name":{"type":"string","title":"Portfolio Name"},"statement_options":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statement Options","description":"JSON array in file order. For program_performance, on_program=true/false confirms enrollment. Omitted/null plus no detected surcharge credit means unknown, not off program; the job needs review. True does not supply missing customer-funded amounts. label/channel do not establish enrollment."},"benchmark_net_rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Benchmark Net Rate Pct"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["statements","report_type","portfolio_name"],"title":"Body_create_portfolio_v1_reports_portfolio_post"},"Body_create_report_v1_reports_post":{"properties":{"statement":{"type":"string","contentMediaType":"application/octet-stream","title":"Statement"},"report_type":{"type":"string","title":"Report Type","default":"statement_analysis","enum":["statement_analysis","pricing_proposal","l23_optimization","statement_analysis_internal"],"description":"statement_analysis is the client edition; statement_analysis_internal is internal-only and uses normal report billing."},"merchant_name":{"type":"string","title":"Merchant Name","default":""},"rates":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rates"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["statement"],"title":"Body_create_report_v1_reports_post"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"TeaserContact":{"type":"object","required":["shown","source","name","phone","email"],"additionalProperties":false,"description":"Completed teaser only: the exact contact values printed. Empty values have no printed label.","properties":{"shown":{"type":"boolean","description":"False when the whole contact panel is hidden."},"source":{"type":"string","enum":["request","client_default","none"],"description":"Request contact, saved client contact, or none. A partial request is not filled from defaults."},"name":{"type":"string","description":"Printed value, or an empty string when not shown."},"phone":{"type":"string","description":"Printed value, or an empty string when not shown."},"email":{"type":"string","description":"Printed value, or an empty string when not shown."}}},"AnnualSavingsDisplay":{"type":"object","required":["low","high","text","basis"],"properties":{"low":{"type":["string","null"],"description":"Lower display-only annual endpoint, rounded to the nearest $10, or nearest $1 when both $10 endpoints match; halves round up."},"high":{"type":["string","null"],"description":"Upper display-only annual endpoint, rounded to the nearest $10, or nearest $1 when both $10 endpoints match; halves round up."},"text":{"type":"string","description":"Exact PDF display text; empty means this value is not printed."},"basis":{"type":"string","enum":["single_estimate","single_estimate_margin","existing_range","not_savings","no_savings","message"]}}},"TeaserSavingsRange":{"type":"object","properties":{"low":{"type":"string","description":"Decimal string, without currency or percent symbols."},"high":{"type":["string","null"],"description":"Decimal string, without currency or percent symbols."},"estimated":{"type":"boolean"},"available":{"type":"boolean"},"caption":{"type":"string"},"in_fair_range":{"type":"boolean"},"display_value":{"type":"string","description":"When present, print this instead of a dollar amount. An empty value suppresses the figure."}},"required":["low","high","estimated","caption","in_fair_range"],"description":"Annual savings rounded after annualizing, matching the fair-pricing tile. Measured provider-percentage savings exclude separate fixed/per-item and Level 2/3 opportunities."},"TeaserCashPath":{"type":"object","properties":{"amount":{"type":"string","description":"Decimal string, without currency or percent symbols."},"estimated":{"type":"boolean"},"available":{"type":"boolean"},"reason":{"type":"string"},"caption":{"type":"string"}},"required":["amount","estimated","available","reason","caption"],"description":"Alternative annual savings based on supported remaining costs, otherwise a 95% fallback, capped at 95% of current card fees. Display amounts are rounded after annualizing. Always available subject to eligibility review; not an eligibility approval. Do not add this path to current-model savings."},"TeaserBar":{"type":"object","properties":{"key":{"type":"string","enum":["overall","network","provider"]},"label":{"type":"string"},"subtitle":{"type":"string"},"value_pct":{"type":["string","null"]},"low_pct":{"type":["string","null"]},"high_pct":{"type":["string","null"]},"unmeasurable":{"type":"boolean"},"estimated":{"type":"boolean","description":"True when the compared cost is modeled, not separately itemized."},"fair_range_estimated":{"type":"boolean"},"status":{"type":"string","enum":["normal","outside","can_be_lowered","unmeasurable"],"description":"Network: normal means NORMAL; can_be_lowered means MAY BE LOWER (the may_be_lower display state). Network never uses outside. Overall/provider use normal or outside."},"status_label":{"type":"string","enum":["NORMAL","OUTSIDE RANGE","MAY BE LOWER","ESTIMATE","NOT MEASURED","GOOD","FAIR","HIGH"],"description":"Exact text printed in the status pill."},"unrounded":{"anyOf":[{"type":"null"},{"type":"object","properties":{"value_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."},"low_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."},"high_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."}},"required":["value_pct","low_pct","high_pct"]}]},"grade":{"type":"string","enum":["good","fair","high","not_shown"]}},"required":["key","label","subtitle","value_pct","low_pct","high_pct","unmeasurable","estimated","fair_range_estimated","status","status_label","unrounded"],"description":"Printed percentage points and fair-range endpoints, to two decimals. The network band spans supported optimized cost to current cost; its dot is at current cost. Overall printed endpoints sum the rounded network and provider components."},"TeaserTile":{"type":"object","properties":{"low":{"type":"string","description":"Decimal string, without currency or percent symbols."},"high":{"type":["string","null"],"description":"Decimal string, without currency or percent symbols."},"estimated":{"type":"boolean"},"available":{"type":"boolean"},"caption":{"type":"string"},"in_fair_range":{"type":"boolean"},"display_value":{"type":"string","description":"When present, print this instead of a dollar amount. An empty value suppresses the figure."},"key":{"type":"string","enum":["fair_pricing","business_cards","extra_fees","cash_discount","statement_snapshot"]},"rows":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"]}},"title":{"type":"string"},"description":{"type":"string"}},"required":["key","title","description","low","high","caption","available","estimated"],"description":"Annual savings matching the top boxes. Equal endpoints print once; a zero lower bound and positive upper bound prints Up to. Use display_value for in-range or no-dollar states. Captions use 'estimated savings per year'. The cash tile is always shown with IF ELIGIBLE; high is null and low is the annual amount. The statement_snapshot tile contains facts, not savings."},"TeaserFigures":{"type":"object","properties":{"gross_monthly":{"type":"string","description":"Decimal string, without currency or percent symbols."},"total_fees_monthly":{"type":"string","description":"Decimal string, without currency or percent symbols."},"transactions_monthly":{"type":["string","null"],"description":"Monthly transactions; null when count and average ticket are unavailable."},"network_monthly":{"type":["string","null"],"description":"Monthly dollar amount; null when unavailable."},"provider_monthly":{"type":["string","null"],"description":"Monthly dollar amount; null when unavailable."},"provider_low":{"type":["string","null"],"description":"Monthly dollar amount; null when unavailable."},"provider_high":{"type":["string","null"],"description":"Monthly dollar amount; null when unavailable."},"overall_low":{"type":"string","description":"Decimal string, without currency or percent symbols."},"overall_high":{"type":"string","description":"Decimal string, without currency or percent symbols."},"flat_fees_monthly":{"type":"string","description":"Decimal string, without currency or percent symbols."},"flat_fee_fair_low":{"type":"string","description":"Decimal string, without currency or percent symbols."},"flat_fee_fair_high":{"type":"string","description":"Decimal string, without currency or percent symbols."},"flat_fee_fair_scope":{"type":"string","description":"Decimal string, without currency or percent symbols."},"business_share_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."},"business_one_in":{"type":["integer","null"],"description":"Printed 1-in-N business-card share, when available."},"fair_savings_low":{"type":"string","description":"Decimal string, without currency or percent symbols."},"fair_savings_high":{"type":"string","description":"Decimal string, without currency or percent symbols."},"business_savings_low":{"type":"string","description":"Decimal string, without currency or percent symbols."},"business_savings_high":{"type":"string","description":"Decimal string, without currency or percent symbols."},"extra_fee_savings_low":{"type":"string","description":"Decimal string, without currency or percent symbols."},"extra_fee_savings_high":{"type":"string","description":"Decimal string, without currency or percent symbols."},"cash_savings_annual":{"type":"string","description":"Decimal string, without currency or percent symbols."},"network_estimated":{"type":"boolean"},"provider_estimated":{"type":"boolean"},"transactions_estimated":{"type":"boolean"},"transactions_known":{"type":"boolean"},"per_transaction_allowance_included":{"type":"boolean"},"savings_estimated":{"type":"boolean"},"fair_ranges_estimated":{"type":"boolean"}},"required":["gross_monthly","total_fees_monthly","transactions_monthly","network_monthly","provider_monthly","provider_low","provider_high","overall_low","overall_high","flat_fees_monthly","flat_fee_fair_low","flat_fee_fair_high","flat_fee_fair_scope","business_share_pct","business_one_in","fair_savings_low","fair_savings_high","business_savings_low","business_savings_high","extra_fee_savings_low","extra_fee_savings_high","cash_savings_annual","network_estimated","provider_estimated","transactions_estimated","savings_estimated","fair_ranges_estimated"],"description":"Unrounded monthly statement inputs and provider targets, but rounded ANNUAL savings components. fair_savings_*, business_savings_* and extra_fee_savings_* are annual dollars; cash_savings_annual matches the annual cash path and tile. business_share_pct is a percentage; other numeric strings are dollars or transaction counts. The flat-fee range follows the recorded pricing tier. Preserve decimal precision; use bars, paths and tiles for rounded page values. *_estimated flags distinguish observed inputs from estimates."},"TeaserSummary":{"type":"object","properties":{"report_type":{"type":"string","const":"teaser"},"display_name":{"type":"string"},"savings_period":{"type":"string","const":"year","description":"All savings values and captions use annual units. Older saved reports may omit this field."},"mode":{"type":"string","enum":["basic","detailed","flat_rate","interchange_plus","direct_billed"],"description":"Direct-billed network statements do not imply an IC+ conversion offer; unsupported alternatives are unavailable."},"platform":{"type":["string","null"],"description":"Statement-supported platform name; null when unidentified."},"detected_plan":{"anyOf":[{"type":"null"},{"type":"object","properties":{"label":{"type":"string"},"percentage":{"type":"string","description":"Decimal string, without currency or percent symbols."},"per_item":{"type":"string","description":"Decimal string, without currency or percent symbols."},"display":{"type":"string"},"estimated":{"type":"boolean"},"match_delta_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."},"compatible_plans":{"type":"integer"},"method":{"type":"string"}},"required":["label","percentage","per_item","display","estimated","match_delta_pct","compatible_plans","method"]}],"description":"Compatible flat-rate schedule inferred from aggregate fees, not a verified contract."},"proposed_flat_rate":{"anyOf":[{"type":"null"},{"type":"object","properties":{"low_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."},"high_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."},"per_item":{"type":"string","description":"Decimal string, without currency or percent symbols."},"display":{"type":"string"},"available":{"type":"boolean"}},"required":["low_pct","high_pct","per_item","display","available"]}],"description":"Presentation-ready alternative flat-rate comparison; absent when not applicable."},"snapshot":{"type":"object","properties":{"processor":{"type":"string"},"months_covered":{"type":"array","items":{"type":"string"}},"covered_months":{"type":"string","description":"Decimal string, without currency or percent symbols."},"gross_monthly":{"type":"string","description":"Decimal string, without currency or percent symbols."},"transactions_monthly":{"type":"string","description":"Decimal string, without currency or percent symbols."},"average_ticket":{"type":"string","description":"Decimal string, without currency or percent symbols."},"total_fees_monthly":{"type":"string","description":"Decimal string, without currency or percent symbols."},"effective_rate_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."},"card_mix":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"share_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."}},"required":["label","share_pct"]}},"top_fee_lines":{"type":"array","maxItems":2,"items":{"type":"object","properties":{"label":{"type":"string"},"amount_monthly":{"type":"string","description":"Decimal string, without currency or percent symbols."}},"required":["label","amount_monthly"]}},"rows":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"]}},"currency":{"type":"string","enum":["CAD","USD"]}},"required":["months_covered","covered_months","gross_monthly","total_fees_monthly","effective_rate_pct","rows"],"description":"Statement snapshot. Unknown optional figures are omitted, not replaced with placeholders. Fee lines and card shares come from printed evidence."},"fee_rulebook":{"type":"object","description":"Compatible fee comparison metadata."},"per_item_fee_benchmarks":{"type":"array","items":{"type":"object"}},"per_item_fee_comparisons":{"type":"array","items":{"type":"object"}},"details_note":{"type":["string","null"]},"covered_months":{"type":"string","description":"Decimal string, without currency or percent symbols."},"merchant_name":{"type":"string"},"months":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"string"}},"annual_savings_display":{"type":"object","description":"Customer-only annual savings displays matching the PDF. Cash-discount annual estimates are always one computed amount, rounded to the nearest $10 subject to the existing savings cap; low and high both contain that amount and basis is single_estimate. Current/Fair pricing and Level 2/3 single positive estimates use minus/plus 7.5%, with each endpoint rounded to the nearest $10. When rounded range endpoints match, round the original endpoints to the nearest $1, halves up. Existing ranges are not widened. Text-only states stay unchanged. Original computed amounts remain unchanged and must be used for proposals, billing and calculations. Existing-program costs and customer funding are not savings.","properties":{"current":{"$ref":"#/components/schemas/AnnualSavingsDisplay"},"cash_discount":{"$ref":"#/components/schemas/AnnualSavingsDisplay"},"level_23":{"$ref":"#/components/schemas/AnnualSavingsDisplay"},"tiles":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AnnualSavingsDisplay"}}}},"months_count":{"type":"integer","minimum":1,"maximum":3},"submitted_months_count":{"type":"integer","minimum":1,"maximum":3},"excluded_months":{"type":"array","description":"Verified zero-sales months excluded from teaser averages.","items":{"type":"object","properties":{"month":{"type":"string"},"source_file":{"type":["string","null"]},"reason":{"type":"string","const":"zero_card_sales"},"gross":{"type":"string","description":"Decimal string, without currency or percent symbols."},"fees":{"type":"string","description":"Decimal string, without currency or percent symbols."}},"required":["month","source_file","reason","gross","fees"]}},"headline":{"type":"string"},"narrative":{"type":"string"},"win_25_percent":{"type":"boolean"},"pricing_target":{"type":"object","description":"Compatible comparison metadata. Use paths.current for the presentation-ready annual range."},"level_23":{"type":"object","description":"Separate Level 2/3 data line: available, low/high (annual dollars), caption, estimated, commercial_volume, commercial_share_pct, reduction_low_pct/high_pct and shown_in_blue_box. Estimated 0.50–0.80% of itemized commercial volume for evidenced CNP/B2B merchants with 10%+ share; named products and codes qualify. included_in_current_pricing, included_in_win_test and additive_with_cash_discount are false: never add it to other savings or quoted bills. Already-fair provider savings stay zero; the Level 2/3 estimate remains separate and shown_in_blue_box is false."},"fair_pricing_tier":{"type":"object","properties":{"id":{"type":"string"},"basis":{"type":"string","const":"average_monthly_gross"},"gross_monthly":{"type":"string","description":"Decimal string, without currency or percent symbols."},"markup_low_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."},"markup_high_pct":{"type":"string","description":"Decimal string, without currency or percent symbols."},"per_transaction_low":{"type":"string","description":"Decimal string, without currency or percent symbols."},"per_transaction_high":{"type":"string","description":"Decimal string, without currency or percent symbols."},"monthly_low":{"type":"string","description":"Decimal string, without currency or percent symbols."},"monthly_high":{"type":"string","description":"Decimal string, without currency or percent symbols."}},"required":["id","basis","gross_monthly","markup_low_pct","markup_high_pct","per_transaction_low","per_transaction_high","monthly_low","monthly_high"],"description":"Volume-based pricing band, or a statement-supported business-category adjustment."},"high_risk":{"type":"boolean"},"high_risk_reason":{"type":"string","description":"One-line explanation of the owner-approved risk classification. Alcohol, wine, liquor and beer merchants use standard-risk bands."},"high_risk_evidence":{"type":"array","items":{"type":"object"},"description":"Actual merchant-category/MCC evidence, not incidental statement text."},"identity_mismatch":{"type":"boolean","description":"Submitted and printed names differ; readable, reconciled reports still complete for the printed business. Not a hold."},"submitted_name":{"type":"string"},"statement_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"identity_mismatches":{"type":"array","items":{"type":"object"}},"identity_verified":{"type":"boolean","description":"Whether the selected identity is independently printed. Missing names use non-blocking presentation fallbacks; financial safeguards remain unchanged."},"statement_issued_to":{"type":"array","items":{"type":"string"},"description":"Printed legal names shown as a small statement-issued-to line when the submitted name labels the same business."},"outside_count":{"type":"integer","minimum":0,"maximum":2,"description":"Counts overall/provider comparisons only, never the network opportunity."},"bars":{"type":"array","minItems":1,"maxItems":3,"items":{"$ref":"#/components/schemas/TeaserBar"},"description":"New reports retain all three comparisons in every mode; historical responses may differ."},"cash_discount":{"type":"string","const":"show","readOnly":true,"description":"Response-only compatibility marker; the program is always shown."},"tile_variant":{"type":"string","enum":["business_cards","extra_fees","statement_snapshot"],"description":"New reports use statement_snapshot as the second card. Other values remain for historical compatibility."},"paths":{"type":"object","properties":{"current":{"$ref":"#/components/schemas/TeaserSavingsRange"},"cash_discount":{"$ref":"#/components/schemas/TeaserCashPath"}},"required":["current","cash_discount"]},"tiles":{"type":"array","minItems":3,"maxItems":3,"items":{"$ref":"#/components/schemas/TeaserTile"}},"contact":{"type":"object","required":["shown","source","name","phone","email"],"additionalProperties":false,"description":"The same printed contact as the top-level contact object, plus specialist_* compatibility aliases and the contact label/note. All contact values are fixed at submission.","properties":{"shown":{"type":"boolean","description":"False when the whole contact panel is hidden."},"source":{"type":"string","enum":["request","client_default","none"],"description":"Request contact, saved client contact, or none. A partial request is not filled from defaults."},"name":{"type":"string","description":"Printed value, or an empty string when not shown."},"phone":{"type":"string","description":"Printed value, or an empty string when not shown."},"email":{"type":"string","description":"Printed value, or an empty string when not shown."},"specialist_name":{"type":"string"},"specialist_phone":{"type":"string"},"specialist_email":{"type":"string"},"label":{"type":"string"},"note":{"type":"string"}}},"partner_label":{"type":"string"},"credit_line":{"type":"string"},"footnote":{"type":"string"},"figures":{"$ref":"#/components/schemas/TeaserFigures"},"evidence":{"type":"array","items":{"type":"object"},"description":"Per-month financial inputs: month, gross, fees, transactions and their source/estimated flag, network cost estimate with method/assumptions, business volume/count, and flat fees. Supported l2_low/l2_high savings are annualized for each source period, not monthly dollar amounts."},"currency":{"type":"string","enum":["CAD","USD"],"description":"Statement currency. Volume tiers use the stated currency, without FX conversion."},"currency_conversion_applied":{"type":"boolean"},"on_program":{"type":"boolean"},"program":{"type":"object","description":"Existing cash-discount/surcharge program. Customer funding is measured, not new conversion savings.","properties":{"on_program":{"type":"boolean"},"kind":{"type":"string"},"funding_verified":{"type":"boolean"},"working":{"type":"boolean"},"customer_funded_period":{"type":["string","null"]},"customer_funded_monthly":{"type":["string","null"]},"gross_cost_monthly":{"type":["string","null"]},"merchant_paid_monthly":{"type":["string","null"]},"residual_cost_annual":{"type":["string","null"]}}},"comparison_type":{"type":"string","description":"blended_vs_interchange_plus for flat-platform comparisons."},"refunds_period":{"type":["string","null"]},"show_net_effective_rate":{"type":"boolean"},"net_effective_rate_pct":{"type":["string","null"]},"net_effective_rate_note":{"type":["string","null"]},"figures_estimated":{"type":"boolean"},"figures_notice":{"type":["string","null"]},"high_effective_rate":{"type":"boolean"},"high_effective_rate_note":{"type":["string","null"]},"teaser_pricing_profile":{"type":"string","description":"Optional server-selected teaser comparison profile; not a request option."},"teaser_pricing_profile_name":{"type":"string"},"grades":{"type":"object","properties":{"markup":{"type":"string","enum":["good","fair","high","not_shown"]},"authorization":{"type":"string","enum":["good","fair","high","not_shown"]},"avs":{"type":"string","enum":["good","fair","high","not_shown"]}},"required":["markup","authorization","avs"]},"pricing_policy":{"$ref":"#/components/schemas/PricingPolicy"},"pricing_policies":{"type":"array","items":{"$ref":"#/components/schemas/PricingPolicy"}}},"required":["report_type","display_name","savings_period","mode","fee_rulebook","per_item_fee_benchmarks","per_item_fee_comparisons","details_note","covered_months","merchant_name","months","annual_savings_display","months_count","headline","narrative","outside_count","bars","cash_discount","tile_variant","paths","tiles","contact","partner_label","credit_line","footnote","figures","evidence"],"description":"A one-page Card Processing Snapshot with two alternative annual savings paths (current pricing or a cash discount program), three cost comparisons (overall rate, card network cost, and provider markup and fees), and three cards (fair pricing, statement snapshot, and a cash discount program). All savings amounts are annual; the five-row snapshot shows totals for the included statement period. Cash discount is always shown with 'if eligible'. Eligibility for a cash discount program is established upon review. Monthly inputs are averaged across distinct statement months; rates use combined fees divided by combined gross card sales."},"TeaserCompleteResponse":{"type":"object","properties":{"job_id":{"type":"string"},"reference":{"type":["string","null"]},"report_type":{"type":"string","const":"teaser"},"status":{"type":"string","const":"complete"},"created_at":{"type":"string"},"finished_at":{"type":"string"},"pdf_url":{"type":"string"},"contact":{"$ref":"#/components/schemas/TeaserContact"},"summary":{"$ref":"#/components/schemas/TeaserSummary"},"teaser_pdf_url":{"type":"string","description":"Optional authenticated merchant-facing companion PDF URL; present only when available on a reviewed complete job."},"internal_pdf_url":{"type":"string","description":"Optional authenticated INTERNAL companion PDF URL. Not for customer use; present only when available on a reviewed complete job."},"files":{"type":"array","description":"All delivered files; primary aliases are not counted twice.","items":{"type":"object","required":["name","role","download_url"],"properties":{"name":{"type":"string","description":"Stored download filename."},"role":{"type":"string","enum":["merchant","internal"]},"download_url":{"type":"string","format":"uri","description":"Full authenticated download URL."},"url":{"type":"string","description":"Compatible URL alias; the files endpoint retains its relative form."}}}},"file_count":{"type":"integer","minimum":0,"description":"Number of entries in files."}},"required":["job_id","reference","report_type","status","created_at","finished_at","pdf_url","contact","summary"],"description":"Completed teaser financial response. Other common job-status metadata may also be present. No workbook_url is provided."},"ReportStatusNotice":{"type":"object","properties":{"notice_url":{"type":"string","description":"Authenticated PDF download URL. Resolve relative URLs against the API origin. Completed name_differs reports retain an action-needed confirmation notice; other completion retires the hold notice."},"notice_status":{"type":"string","enum":["under_review","action_needed","final"]},"customer_reason_code":{"type":"string","enum":["priced_too_low","evidence_chunk_incomplete","layout_not_supported","fee_total_missing","unreadable_statement","fees_do_not_match","identity_unconfirmed","months_do_not_match","details_not_shown","not_merchant_statement","file_cannot_open","no_card_sales","unsupported_file","under_review","name_differs","proposal_below_absolute_floor","authorization_count_unverified","square_sales_summary"],"description":"An accepted job with no printed business name or valid caller/owner identity defaults to under_review, not identity_unconfirmed. Its customer_reason_text is: Our team is reviewing the statement to make sure every figure is accurate before a report is shared. identity_unconfirmed concerns statement period/account confirmation."},"identity_mismatch":{"type":"boolean","description":"Report delivered for the printed statement business; confirm before sharing."},"submitted_name":{"type":"string"},"statement_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Verified printed business name, or null when the submitted-name fallback is used."},"identity_mismatches":{"type":"array","items":{"type":"object"}},"identity_verified":{"type":"boolean","description":"False for a valid caller-supplied name without verified printed identity. Delivery still requires all financial and review checks; missing printed/caller/owner identity holds before rendering."},"identity_note":{"type":"string","description":"Explains the submitted-name fallback."},"identity_fallbacks":{"type":"array","items":{"type":"object"}},"identity_reconciliation":{"type":"array","items":{"type":"object"},"description":"Per-statement business-equivalence verdict and reason. Same-business variants do not create a notice."},"statement_issued_to":{"type":"array","items":{"type":"string"}},"action_needed":{"type":"string","description":"For a completed name_differs notice: confirm_business. Confirm the business before sharing the delivered report. A name mismatch alone is not a hold; missing valid printed/caller/owner identity is a hold."},"customer_reason_text":{"type":"string","description":"Customer-safe explanation, identical to the notice PDF."},"customer_next_steps":{"type":"string","description":"Customer-safe next steps, identical to the notice PDF."}},"description":"Free one-page notice for a held/unsuccessful job or a completed report needing business-name confirmation. name_differs is not a hold and its notice remains available alongside the completed report. Notices are not separately billed; optional fields depend on the reason."},"ReportStatusNoticeWebhook":{"allOf":[{"$ref":"#/components/schemas/ReportStatusNotice"},{"type":"object","properties":{"event":{"type":"string","enum":["report.complete","report.failed"]},"job_id":{"type":"string"},"status":{"type":"string"}}}],"description":"These notice fields are included additively in existing signed webhook events. Existing event fields are unchanged."},"IssuedInvoiceSummary":{"type":"object","required":["number","state","month","from_month","to_month","totals","pdf_url","csv_url"],"properties":{"id":{"type":"string"},"client_id":{"type":"string"},"number":{"type":"string"},"state":{"type":"string","enum":["issued"]},"month":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}],"description":"UTC billing month, YYYY-MM. Null only for a preserved legacy multi-month document."},"from_month":{"type":"string","description":"Stored period start month; equals month for monthly invoices."},"to_month":{"type":"string","description":"Stored period end month; equals month for monthly invoices. Retained for immutable legacy documents."},"period_start":{"type":"string","format":"date"},"period_end":{"type":"string","format":"date"},"issue_date":{"type":"string","format":"date"},"due_date":{"type":"string","format":"date"},"pages":{"type":"integer","minimum":1},"totals":{"type":"object","properties":{"license_amount":{"type":"string","description":"Exact decimal USD amount."},"overage_amount":{"type":"string","description":"Exact decimal USD amount."},"adjustment_total":{"type":"string","description":"Exact decimal USD amount."},"subtotal":{"type":"string","description":"Exact decimal USD amount."},"tax":{"type":"string","description":"Exact decimal USD amount."},"total_due":{"type":"string","description":"Exact decimal USD amount."},"included_reports":{"type":"integer"},"completed_reports":{"type":"integer"},"extra_reports":{"type":"integer"}}},"pdf_url":{"type":"string","description":"Authenticated, same-origin PDF download path."},"csv_url":{"type":"string","description":"Authenticated, same-origin itemized CSV download path."}}},"PricingPolicy":{"type":"object","description":"All seven report types, JSON summaries, PDFs, preview images, private/owner editions and portfolio XLSX/CSV use one shared pricing policy. pricing_policy is the common comparison; pricing_policies contains separate comparisons for multiple merchants. quoted_policy/quoted_policies describe an explicit offer and may differ from the benchmark range. Program-performance actuals remain observed bills, not hypothetical quotes. Classifications retain exact source amounts; savings are annual, with display amounts rounded to $10. All monthly service/statement, batch, minimum, gateway and PCI compliance fees are shown in the proposed comparison. Current-pricing comparisons use the fair-range ceiling, not the lowest available tariff. Provider savings combine supported percentage, per-item and other provider-fee reductions once, with identifiable components. Already-fair percentage pricing has zero percentage-component savings but can still have other fee savings. Use the returned presentation-ready values rather than reconstructing the private pricing rulebook. Every result records high_risk and high_risk_reason. Alcohol, wine, liquor and beer merchants always use standard-risk volume tiers; restricted categories include CBD/hemp, firearms/ammunition, peptides/research chemicals, supplements, vape/tobacco, adult businesses, online gambling, debt collection, travel, timeshares, cryptocurrency, telemarketing, pawn and bail bonds. Travel requires actual merchant industry or MCC, not incidental statement text. At 10%+ itemized commercial volume, CNP/B2B Level 2/3 estimates use 0.50–0.80% of that volume. Named products and native codes are recognized. These estimates stay separate from markup savings, quoted bills and cash discount. For already-fair merchants, eligible Level 2/3 savings remain separate (level_23.shown_in_blue_box=false), with no markup reduction. Reconcile names before warnings: same-business variants use the preferred printed name without an identity_mismatch flag or confirmation notice, with a small Statement issued to line when strings differ. The name-comparison verdict and reason remain private. A genuine name difference does not hold a readable, reconciled report: it completes for the printed business, with identity_mismatch, submitted_name, statement_name and identity_mismatches in the summary and completion metadata. The footnote asks the partner to confirm the business. Business-name priority is printed DBA, printed legal name, source-bound owner confirmation, valid caller merchant_name, merchant mailing addressee, cleaned upload filename, then a processor/period title. Missing or unverifiable identity alone never holds a report. The optional merchant_name is recommended; empty names, placeholders such as test/n/a/unknown and names longer than 120 characters are skipped, not silently truncated. Name provenance is private owner metadata, never a public response/webhook/report field. Fallback names have no unverified label on customer reports. A genuine completed name mismatch retains its name_differs confirmation notice. Existing fair unit fees and unverified charges are preserved. Platform estimates remain qualified. Reconciled printed interchange, wholesale and network fees take precedence over modeled costs. An excessive network estimate does not hold delivery: it is capped below total fees after a minimum provider allowance, stays labeled estimated and carries a footnote. Unreadable pages and failed printed-total reconciliation still hold delivery. Component cross-checks allow the larger of $5 or 0.5% of the printed total; larger gaps hold. Printed or exact source-proven composed totals remain authoritative. Financial source citations, conflicting printed totals, period, missing data and pricing safeguards remain strict. Estimated comparisons never waive source proof. For the supported reconciled card-processing/account-activity layout, separately printed dated processor charges such as chargeback/dispute processing fees count once and fee-related refund credits reduce fees. Reconciled debit/credit signs govern; repeated summaries and already-included card fees are not added twice. Dispute principal and sales refunds are not processing fees. Unrecognized fee activity or inconsistent evidence requires review. Without qualifying account activity, the supported complete card table's Fees Adjusted total is used; funding-summary Refund Adjustments and Other Adjustments are ignored, neither added nor subtracted. These reconciled card-processing/account-activity and adjusted-table layouts retain processor-fee-covered sales in gross, including direct-settled Amex. When the source says fees 'do not include American Express fees', the disclosure states: Amex sales remain included in gross. The processor's Amex processing fees are included; American Express's own fees are billed separately. Outside that scope, proven direct settlement with missing brand discount fees excludes the brand's gross from the fee-covered rate/comparison basis, with Excluded direct-settled volume disclosed; billed ancillary fees and processor-billed Amex/OptBlue remain. For Amex direct Merchant Financial Activity Statements with a Summary for Settlement Period, current fees equal Discount Amount plus signed Fees & Incentives from the period-summary Totals row; negative incentives reduce fees. Both columns need independent reconciliation and source proof. Gross is Total Charges before Credits. A prior-month Paid-in-Gross Debit Summary debit is not a current fee. network_cost_policy_version identifies this policy. Cash-discount estimates use residual costs where supported, otherwise 95%, and never exceed 95%. Zero-sales months never drive numbers. Missing unit evidence is not invented. Holds are polled, not sent to partner webhooks; under-review notices remain available. Prior completed jobs are immutable. Pilot quick start: use report_type=teaser, one complete PDF per merchant per month plus merchant_name, and reference=rep name + merchant (tracking only, not an idempotency key). Save the job_id; poll GET /v1/reports/{job_id} no more than every 15 seconds. For needs_review the owner is reviewing it: show the notice and do not resubmit. Upload 503 responses use Retry-After: 30; wait at least 30 seconds with jitter and bounded backoff, and never resubmit after a job ID. Default limit is 120 reports/hour per client key. Optional webhooks are report.complete/report.failed only. PDF, XLSX, XLS and CSV, default 100 MiB per file / 300 MiB combined (1 MiB = 1,048,576 bytes); configured limits may differ. Size/type errors are 413/415. See the partner reference for the minimal curl example. v1.40.20 adds generic component-reconciliation tolerance; it is not deployed by this change. The owner confirmed v1.40.19 is live and healthy. v1.40.15–v1.40.18 pilot recap: caller-supplied business-name disclosure, missing-name review holds, once-only chargeback processing fees and fee-refund credits, complete Amex direct period fees, with original-cell proof required for spreadsheet statements.","properties":{"rules":{"type":"object"},"floors_applied":{"type":"object"},"fee_classifications":{"type":"array","items":{"type":"object"}},"savings_components":{"type":"object"},"hold_reasons":{"type":"array","items":{"type":"object"}},"pricing_target":{"type":"object"},"win_25_percent":{"type":"boolean"},"high_risk":{"type":"boolean"},"high_risk_reason":{"type":"string"}},"example":{"savings_components":{"current_pricing":{"low":"600.00","high":"600.00","in_fair_range":false,"savings_basis":"provider_pricing","available":true,"estimated":true,"caption":"estimated savings per year"},"business_data":{"low":"1200.00","high":"1920.00","estimated":true},"cash_discount":{"amount":"30210.00","estimated":true,"available":true,"reason":"","caption":"estimated savings per year · if eligible"},"extra_fees_low":"600.00","extra_fees_high":"600.00"},"high_risk":false,"high_risk_reason":"Wine/alcohol merchant; standard-risk category under owner policy — treated as standard risk","savings_period":"year"}},"PricingPolicyRules":{"type":"object","description":"Compatible policy metadata. Use presentation-ready report values; internal calibration is not part of this partner guide."}}}}