Queries
Object: ApprovalRequest
approvalRequests
Paginated list of approval requests with optional filters.
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
filter.status | String | — | Exact match (e.g. "pending", "approved", "denied") |
filter.customer_name | String | — | Partial match on customer name |
filter.sales_region | String | — | Exact match on sales region |
filter.request_type | String | — | Exact match on request type |
filter.request_date_from | Date | — | Requests on or after this date (Y-m-d) |
filter.request_date_to | Date | — | Requests on or before this date (Y-m-d) |
first | Int | 15 | Items per page |
page | Int | 1 | Page number |
{
approvalRequests(
filter: { status: "pending", customer_name: "Acme" }
first: 10
page: 1
) {
data {
id
sales_contact
request_type
request_date
sales_region
validity_period
customer_name
project_name
account_number
end_customer_name
rep_firm
expected_delivery_date
reviewed_by
review_date
status
other_details
created_at
updated_at
opportunities {
id
partnumber
quote_quantity
requested_price
competitor_name
competitor_product
requested_discount
loa
approved_price
approval_level
approved_discount
pii_cost
pii_margin_requested_price
pii_margin_approved_price
tariff_surcharge
review_date
status
other_details
product {
id
partnumber
description
list_price
}
}
}
paginatorInfo {
currentPage
lastPage
total
}
}
}
approvalRequest
Find a single approval request by ID, including its line items (opportunities).
{
approvalRequest(id: "01ABC123") {
id
customer_name
status
request_date
opportunities {
id
partnumber
requested_price
approved_price
status
product {
partnumber
description
list_price
}
}
}
}
opportunitiesreturns Request Detail records nested under the request — see that page for the full field list. Request Detail has no top-level query of its own.
Method
Path