Overview
The Plan Comercial module provides GraphQL queries to retrieve commercial plans, parametrization settings, and homologated data from external systems.Queries
getOrganizacionCanalHomologadoSp
Retrieves homologated organization and channel data from the external data warehouse. Authorization: Not required Returns:[OrganizacioneCanalHomologadoSP!]!
Sales organization code
Channel description
Client code identifier
Client name
getMaterialesHomologadosSp
Retrieves homologated materials from the external data warehouse with pricing and categorization. Authorization: Not required Returns:[MaterialesHomologadosSP!]!
Channel code
Price list identifier
Material code
Material name
Product family name
Product cluster
Product category
Business unit
Material type
Material subtype
Brand name
EXCO category classification
Material ownership classification (proprietary/private/homologated)
Current price
Public sale price (PVP)
getParametrizacionPlanComercial
Retrieves all parametrization configurations for commercial plans. Authorization: Not required Returns:[ParametrizacionPlanComercialDTO!]!
Unique identifier
Sales channel
Client identifier
Number of days before target date allowed for planning
Number of days after target date allowed for planning
Creation timestamp
Last update timestamp
getParametrizacionPlanComercialByCliente
Retrieves parametrization configuration for a specific client. Authorization: Not requiredClient identifier
ParametrizacionPlanComercialDTO
Example Query:
getPlanComercialEstados
Retrieves all available commercial plan states. Authorization: Not required Returns:[PlanComercialEstadosDTO!]!
State identifier
State name
State type (enum)
Associated approval stage identifier
Approval stage details
getPlanesComercialCreados
Retrieves all commercial plans created by the current authenticated user. Authorization: Required Returns:[PlanComercialDTO!]!
Plan identifier
Plan month
Target month
Cross-reference month
Plan year
Sales channel type
Client type
Total investment amount
Total sell-out amount
Total provision amount
Current state identifier
Current state details
User identifier who created the plan
List of promotional activities
getPlanesComercialesForApproval
Retrieves commercial plans pending approval for a specific stage. Authorization: RequiredApproval stage name
[PlanComercialDTO!]!
Example Query:
getPlanComercialApproverByStage
Retrieves approvers configured for a specific approval stage. Authorization: RequiredApproval stage name
[SateliteAprobadoresDto!]!
Example Query:
getCreatedPlanById
Retrieves a specific commercial plan by ID, accessible only by the creating user. Authorization: RequiredPlan identifier
PlanComercialDTO
Example Query:
getNegociosPlanComercial
Retrieves unique business units (Negocios) available for commercial planning. Authorization: Required Returns:[String!]!
Example Query:
getUniqueMaterialsWithNegocio
Retrieves unique materials with their associated business units. Authorization: Required Returns:[MaterialesHomologadosSP!]!
Material code
Material name
Business unit
getPlanesForProvision
Retrieves commercial plans ready for provision processing. Authorization: Not required Returns:[PlanComercialDTO!]!
Example Query:
getProvisionesForApprovalByStage
Retrieves provisions pending approval for a specific stage. Authorization: Not requiredApproval stage name for provisions
[PlanComercialDTO!]!
Example Query: