When making a purchase request, it's important to determine which fields are required based on the product type and operator configuration. This is done by calling the Get Parameters method before performing the actual purchase.🤔 Although the majority of prepaid products are mobile top-ups—making it seem like this step could be skipped—this isn't always the case. Therefore, we recommend being aware of this possibility and acting accordingly.💡 Using the Get Parameters method ensures success and prevents future development needs in case of changes from providers by making your implementation resilient to changes.
Before making a purchase, you should call the Get Parameters endpoint:Endpoint: GET /pre-paid/recharge/parameters/{terminalId}/{operatorId}This method will return a list of parameters required for the given operator and terminal. The response indicates whether the product is dynamic (dynamic: true) and provides the list of required fields in the parameters array.
Make sure to always use the Get Parameters endpoint to verify which fields to send in your purchase request. This ensures compliance with operator-specific configurations and avoids unnecessary errors.