Back to Home

Documentation

Everything you need to know to get the most out of DiscountFlow. Find guides, tutorials, and API references.

Quick Start
API References
FAQs

API References

Overview

API References
/
API Endpoints
/
Queries

Queries

Object: RequestDetail

RequestDetail represents a single line item (opportunity) on an approval request. It has no top-level query of its own — it is only returned as the opportunities field on Approval Request queries.

Fields

FieldTypeDescription
idID!Unique identifier
partnumberStringPart number of the requested product
quote_quantityIntQuantity requested
requested_priceFloatPrice requested by the sales rep
competitor_nameStringCompetitor named as context for the discount
competitor_productStringCompetitor's equivalent product
requested_discountFloatDiscount requested
loaStringLevel of authority reference
approved_priceFloatPrice approved by the reviewer
approval_levelStringApproval level that reviewed this line item
approved_discountFloatDiscount approved
pii_costFloatCost figure (sensitive/PII-flagged)
pii_margin_requested_priceFloatMargin at requested price (sensitive/PII-flagged)
pii_margin_approved_priceFloatMargin at approved price (sensitive/PII-flagged)
tariff_surchargeFloatTariff surcharge applied
review_dateDateDate this line item was reviewed
statusStringLine item status
other_detailsJSONArbitrary additional data
productProductThe linked Product

Example

{
  approvalRequest(id: "01ABC123") {
    id
    opportunities {
      id
      partnumber
      requested_price
      approved_price
      status
      product {
        partnumber
        description
        list_price
      }
    }
  }
}