Difference between revisions of "Automatic Tariff Import"
Line 1: | Line 1: | ||
<big><big>NOTICE: functionality is identical | <big><big>NOTICE: this is an add-on. Its functionality is identical in M2/MOR softswitches. M2 screenshots are used in this guide. It looks similar in MOR.</big></big> | ||
= Introduction = | = Introduction = |
Revision as of 08:15, 19 May 2020
NOTICE: this is an add-on. Its functionality is identical in M2/MOR softswitches. M2 screenshots are used in this guide. It looks similar in MOR.
Introduction
An important task is the timely management of Provider Tariff Plans. While business practices differ, commonly, each Provider will deliver an initial Spreadsheet file detailing their prices to the range of Destination Codes that they are providing. This initial Spreadsheet will then be followed by update notification spreadsheets. These will be received at regular agreed-upon intervals identifying amendments to the previous prices. The format and content of these notifications are not standardized and differs from one Provider to another. This information is vital from a commercial and financial management point of view. It is important therefore that the rating information received from a Provider is uploaded regularly in order that the System can correctly calculate Provider rating costs for calls. It is also important to analyze Tariff/Rating Plan updates received from partners in order to ensure that any errors in the information are noticed early and resolved before causing Billing disputes.
To solve this necessity Tariff Import system should be used. Let's start by defining the major terms used in this process.
Workflow schema
The workflow can be visualized using the following schema:
Template
The Provider Import Template is the primary object that requires configuring so that the Provider Rating Import can occur. The Provider Import Template contains the settings that the System uses to convert the information from the Spreadsheet into the System.
Rate Import Rules
The Rate Import Rules feature enhances the analysis of the Providers rates by identifying rates that do not meet a specific criterion (for example a rate increase with less than 7 days’ notice) and then potentially either alerting the Administrator or rejecting the rate. One (or more) sets of Rate Import Rules can be defined on the System and assigned to many Tariff Import Rules.
Tariff Import Rules
Tariff Import Rules assign Rate Import Rules, Notifications, and Template to the received Email/Attachment in order to properly convert received Tariff and upload rates to the System.
Notifications
Notifications will generate an email to the desired recipient when configured for various events. Such as:
- Tariff is received
- Tariff is analyzed and waiting for confirmation before Import
- Tariff is imported or rejected
- and others
Import Job
The Import Job is an auditing object that is created by the import and provides information about what occurred during execution. The Import Job means that, when necessary, it is possible to go back and see what happened on previous imports. For that reason there is a Tariff Jobs table in the Tariff Jobs List window which can be reached by going to Menu -> Billing -> Tariff Import -> Jobs.
Tariff Jobs table columns:
- Id: Tariff job identification number.
- Created at: Date when the job was created.
- Status: The state of the import process. Can be:
- Assigned - import process was started.
- Converting - rates are being converted.
- Failed Conversion - there was an error in rate conversion.
- Converted - rates were successfully converted.
- Importing into Temporary Table - rates are being uploaded from attachment to the system.
- Failed to Import into Temporary Table - there was an error in rates uploading process.
- Imported into Temporary Table - rates have been loaded to the system.
- Analyzing - rates are being analyzed.
- Failed Analysis - there was an error in the analysis.
- Analyzed - analysis process has been completed.
- Rejected - rates did not match requirements and were rejected.
- Waiting for confirmation - import is stopped until it will be confirmed by admin.
- Cancelled - import was canceled by admin.
- Imported - rates were successfully imported.
- Import Rules - the name of the Tariff Import Rule used in import and the link to its edit view.
- Rate Import Rules - the name of the Rate Import Rules used in import and the link to its edit view.
- Tariff - Tariff name which is being changed in import and the link to its edit view.
- Attachment - the name of the attachment that was used in import.
- Import Type - the type of import. Can be:
- Update - rates will be added or updated.
- Full - rates will be replaced.
- Auto:
- ‘Yes’ means that tariff import will be done without any request for confirmation.
- ‘-’ means that confirmation will be needed after the analysis.
- Email:
- ‘Yes’ email about Tariff Job creation has been sent successfully.
- ‘-’ email has not been sent.
- Rate Changes - number of how many rates were changed during analysis.
- Rejected Rates - number of how many rates were rejected during analysis.
- Analysis (only in analyzed jobs) - link to analysis details.
- Delete - button to delete one job.
Note: yellow-colored Tariff Jobs rows show that they are waiting for confirmation.
Automatic Deletion
Old Tariff Jobs are periodically deleted by the system. The period of deletion can be found and changed in Settings -> Various -> Delete Tariff Jobs older than. The default value is 30 days. It means that Tariff Jobs which were created before 30 days or more will be deleted.
Analysis
Detailed Analysis can be reached from the Tariff Jobs table by pressing on the ANALYSIS link.
On the top right corner there are buttons:
- Confirm: results of the analysis are confirmed and tariff import will continue to proceed.
- Canceled: tariff import will be canceled.
- Refine Results: allows filtering table by selected parameters.
Parameters:
- Rate Increase, Oldest Effective date, Max Decrease, Duplicate Rate, Date Decrease, Maximum Effective Date, Max Rate, Min Times, New Rate, Max Increase, Zero Rate, Increments - can be filtered by values: All (default), None, Alert, Rejected.
- Non Importable Reasons - can be filtered by values All (default), None, Any, Could not determine direction code, Rate price invalid, Effective from invalid.
Tariff Job Analysis table:
Table columns:
- Prefix: prefix on which the rate will be applied.
- Destination: destination name.
- Rate: rate value.
- Connection fee: How the Connection fee works
- Increment: What is increment
- Minimal time: What is increment
- Effective from: Rate Effective From
Tooltip: If the mouse is on the table, additional import rule information will be presented.
Row colors:
- If the row is red-colored, the rate is not importable. Non-Importable Reason can be found by moving mouse over the rate.
- If the row is yellow-colored, the rate analysis was successful but there were some warnings. In the tooltip, the word ‘alert’ will be next to the parameter which caused the alert.
- If the row is white-colored, the rate analysis was successful.
Analysis execution order: If the analysis is being executed on several jobs which includes the same tariff, these jobs will be resolved consistently and the oldest job will have the highest priority. The next analysis of the job will be started only after the previous one is completed.
Understanding and Working with Provider Import Templates
A Template is created when a Tariff/Rating Plan first needs importing, and can then be reused every time an update is required. Templates can also be amended at a later point if the format of the original file is altered. Import Templates are highly flexible and support many Rating Plan formats; they, therefore, include many options that may not need configuring for the more common simpler Tariffs/Rating Plans.
The Templates work by mapping the contents of an Excel sheet, and its format, to the information required in the Database. By configuring this information the data is then uploaded into the System and converted into the correct format.
This is illustrated in the diagram below:
Tip Before You Begin: Import Templates are specific to individual Tariffs/Rating Plans, so when creating a new Import Template for the first time it is important to have easy access to the Tariff/Rating Plan involved. A good tip for working with this - if you happen to have two monitors on your computer - is to display the Tariff/Rating Plan for which the Template is being constructed on one monitor, and System GUI on the other. Alternatively, if only one monitor is available, open the Tariff/Rating Plan in Excel and use Alt+Tab to switch directly between the applications.
The next section is going to describe each of the settings available for configuring an Import Template.
The screenshot below shows the Template Settings in the default basic view:
In this view, we can see the basic summary of the Template highlighting each of the sections that may be required to import the Tariff/Rating Plan.
Tip: Remember that if the Tariff/Rating Plan being imported does not include information relating to a particular section of the Template, then that section can simply be left blank. Many Import Templates will be very simple configuring only four or five settings from the available options.
Name
- Name of the Template can be set to any, but for better management suggested to be the name of Provider.
Rate Sheet
- The Rate Sheet field requires to be set to the corresponding Worksheet in Excel that the Rating Plan information is held on.
- This means that Rating Plans that contain multiple sheets can still be imported.
- Example:
- In provided Tariff/Rating Plan below - Destinations, Prefixes, and Rates are stored in the second (“Numberplan”) Worksheet.
- Accordingly, Template’s Rate Sheet value must be set to 2.
Header Rows
- Header Rows setting requires to be set to inform the System of the rows at the top of the Tariff/Rating Plan that are to be ignored when importing meaningful data.
- If Header Rows are set incorrectly, there is a possibility that the Tariff/Rating Plan will not be imported at all or with errors because of wrongly processed data.
- Example 1:
- Provided Tariff/Rating Plan below meaningful data starts from Row 1.
- This means there are no rows to skip/ignore for the Header Rows setting.
- Accordingly, Template’s Header Rows value must be set to 0.
- Example 2:
- Provided Tariff/Rating Plan below meaningful data starts from Row 23.
- This means there are 22 rows to skip/ignore for the Header Rows setting.
- Accordingly, Template’s Header Rows value must be set to 22.
Prefix/Code
- Prefix/Code requires to be set to match the Tariff/Rating Plan Prefix column.
- On some occasions, there may be two columns (like Country Code, City Code) which the System is also able to handle if Template settings are correct.
- Sometimes provided multiple Prefixes are displayed in singular cell format like “71-76”, “55,551,552,55257” or “370, 371, 372-376, 3772”, such formats are parsed automatically and does not require additional configuration.
- Example 1:
- Provided Tariff/Rating Plan below has only one Prefix column which is B.
- Accordingly, Template’s Prefix/Code value must be set to B.
- Example 2:
- Provided Tariff/Rating Plan below has two Prefix columns which are C and D.
- Accordingly, Template’s Prefix/Code values must be set to C and D in exact order.
Destination/Zone
- The Zone drop-down list box identifies the Column in the Excel sheet that contains the Zone name.
- If there is only one Column containing this information then only one of the dropdown boxes needs to be completed. However, if the Zone is in two Columns then both of the drop-down boxes can be completed to identify this. In this scenario, the blank fields either side of the second box can be used to format the Zone name.
- Example: A Rate Plan includes the following information:
- The Zone import is configured with the Columns A and B and the separator fields with space “Column B”, as shown:
- This means that the Zone name will be displayed as Brazil Mobile
- Example 1:
- Provided Tariff/Rating Plan below has only one Destination/Zone column which is A.
- Accordingly, Template’s Destination/Zone value must be set to A.
- Example 2:
- Provided Tariff/Rating Plan below has two Destination/Zone columns which are A and B.
- Accordingly, Template’s Destination/Zone values must be set to A and B in exact order.
Connection Fee
- While uncommon in wholesale, some Rating Plans being imported may still include a fixed Connection Charge - a one-off charge applied when the call is connected.
- If required, the Connection Charge drop-down list box can be used to identify the Column containing such a charge in the Rate Plan being imported.
Effective Date
- The Effective Date options determine in which Column(s) the Date and Time information for the imported rates can be found.
- Multiple options are provided to support different Spreadsheet formats.
- Some Tariff/Rating Plan Providers split Effective Date data between two Worksheets, whereas in the first Worksheet there are Destinations with Effective Date and in the second Worksheet - Destination, Prefix, Rate data. Configuration of such cases is provided in Example 3.
- Example 1:
- Provided Tariff/Rating Plan below has an Effective Date column which is F.
- Accordingly, Template’s Effective Date value can be set to F.
- Example 2:
- Provided Tariff/Rating Plan below has an Effective Date column which is F and Effective Time which is G.
- Accordingly, Template’s Effective Date values can be set to F and G.
- Example 3:
- Provided Tariff/Rating Plan below in the first Worksheet shows Destination (Column A) and Effective Date (Column D).
- In the second Worksheet, there are Destination (Column A), Prefix (Column B), and Rate/Price (Column C).
- The first dropdown configures from which Worksheet takes Effective Date data (which in this example’s case is Worksheet 1 (Rates)).
- The second dropdown configures the Effective Date column from the secondary Worksheet.
- The third dropdown configures by which secondary Worksheet column do the mapping with primary Worksheet (which in this example’s case is Destination from Worksheet 1 (Rates) Column A).
- The fourth dropdown configures by which the primary Worksheet column does the mapping with secondary Worksheet (which in this example’s case is Destination from Worksheet 2 (Numberplan) Column A).
- Accordingly, Template’s Effective Date values can be set to 1, D, A = A.
Effective Date Format
- After selecting the Column, the Format field is used to specify the format the information is held in the Rate Plan.
- Some suggested formats already exist in the dropdown, which can be selected or used as an example to create a custom one if it is not present in the dropdown.
- Example:
- Provided Tariff/Rating Plan below has an Effective Date column which is F.
- Accordingly, Template’s Effective Date Format value can be selected from the dropdown with suggested formats.
Rate
- Rate requires to be set to match the Tariff/Rating Plan Rate/Price column.
- Example:
- Provided Tariff/Rating Plan below has a Price column which is E.
- Accordingly, Template’s Rate value must be set to E.
Minimal Time
- Minimal Time can be set to match the Tariff/Rating Plan Minimal Time column.
- Example 1:
- Provided Tariff/Rating Plan below has a Minimal Time column which is E.
- Accordingly, Template’s Minimal Time value can be set to E.
- Example 2:
- Provided Tariff/Rating Plan below has a Minimal Time column which is D and in the first place of “x/y/z/” fields.
- Accordingly, Template’s Minimal Time value can be set to D and field 1.
Increment
- Increment can be set to match the Tariff/Rating Plan Increment column.
- Example 1:
- Provided Tariff/Rating Plan below has an Increment column which is F.
- Accordingly, Template’s Increment value can be set to F.
- Example 2:
- Provided Tariff/Rating Plan below has an Increment column which is D and in the second place of “x/y/z/” fields.
- Accordingly, Template’s Increment value can be set to D and field 2.
Exceptions
- Exceptions allow additional data manipulation when specific rules are defined separately in the provided Tariff/Rating Plan.
Creating and Configuring Rate Import Rules
Rate Import Rules are relevant to the importing of Provider Rates and specify actions to be taken if the rule is broken.
The actions available are:
- None (ignore this rule)
- Alert (notify the Administrator)
- Reject Rate (automatically reject the rate which breaches this rule)
Example: The first Rate Import Rule is the rate increase rule. The variable for this rule is a number of days, 7 days by default. What this means is that when a Provider Tariff/Rating Plan is uploaded and a rate increase is detected with an Effective Date less than 7 days into the future the action that has been configured will be triggered. The rate could be automatically rejected, or an alert about this rating entry was raised.
Available Rate Import Rules with explanation to each one of them:
Rate Increase
- If updating existing Rate, whose Rate (Price) increases and takes into effect earlier (by days compared to importing effective from) than set in Rule, then set action will be taken.
- Value can be set to any integer between 0 and 30 which represents the day(s).
Rate Decrease
- If updating existing Rate, whose Rate (Price) decreased and takes into effect earlier (by days compared to importing effective from) than set in Rule, then set will be taken.
- Value can be set to any integer between 0 and 30 which represents the day(s).
New Rate
- If creating a new non-existing Rate, which takes into effect earlier (by days compared to importing effective from) than set in Rule, then set action will be taken.
- Value can be set to any integer between 0 and 30 which represents the day(s).
Oldest Effective Date
- If updating existing or creating a new Rate, whose new Effective Date is earlier (by days) than set in Rule, then set action will be taken.
- Value can be set to any integer between 0 and 365 which represents the day(s).
Maximum Effective Date
- If updating existing or creating a new Rate, whose new Effective Date is later (by days) then set in Rule, then set action will be taken.
- Value can be set to any integer between 0 and 365 which represents the day(s).
Max Increase
- If updating existing Rate, whose Rate (Price) increased more by percentages than set in Rule, then set action will be taken.
- Value can be set to any decimal between 0 and 500 which represents Rate’s (Price’s) percentages.
Max Decrease
- If updating existing Rate, whose Rate (Price) decreased more by percentages than set in Rule, then set action will be taken.
- Value can be set to any decimal between 0 and 100 which represents Rate’s (Price’s) percentages.
Max Rate
- If updating existing or creating a new Rate, whose Rate (Price) is higher than set in Rule, then set action will be taken.
- Value can be set to any decimal between 0 and 100 which represents Rate’s (Price’s) value.
Zero Rate
- If updating existing or creating a new Rate, whose Rate (Price) is zero, then set action will be taken.
Min Times Not Equal
- If updating existing or creating a new Rate, whose new Min Time value does not match any from set Rule, then set action will be taken.
- Acceptable value format is: “x,y,z,w”
- Where x, y, z, and w must be integer values between 0 and 7200.
- Must be separated by comma (,).
- Must not have any spaces.
- Must not have leading zeros, unless it is only a zero.
- Examples:
- 0,100,60,7200
- 0,1,60
- 1,60
- 1
Increment Not Equal
- If updating existing or creating a new Rate, whose new Increment value does not match any from set Rule, then set action will be taken.
- If updating existing or creating a new Rate, whose new Min Time value does not match any from set Rule, then set action will be taken.
- Acceptable value format is: “x,y,z,w”
- Where x, y, z, and w must be integer values between 0 and 7200.
- Must be separated by comma (,).
- Must not have any spaces.
- Must not have leading zeros, unless it is only a zero.
- Examples:
- 0,100,60,7200
- 0,1,60
- 1,60
- 1
Tariff Import Rules
The main Tariff Import Rules page shows all the Tariff Import specific rules in the system. Here you can add new rules by clicking the button at the upper-right corner. Also, you can Edit/Delete selected Rules with the relevant buttons. The first column ACTIVE? allows to activate or deactivate a specific Rule by clicking the YES/NO buttons. If you would like to change the order of the Rules, Drag&Drop functionality is available.
Follow the steps below to create Tariff Import Rules:
By clicking the ADD NEW TARIFF IMPORT RULES button, you are presented with the following settings screen:
- Name - Name of the Rules
- Rate Import Rules - Select the Rate Import Rules you would like to use
- Target Tariff - The Tariff for which the changes will be applied
- Import Type - you can choose between 2 options: Add/Update and Replace All Rates
- Add/Update - new rates will be added from file and existing ones will be updated
- Replace All Rates - existing rates will be deleted and new ones imported from file
- Import Template - Template to be used
- Effective Date - Effective Date value to be used with Rates
- Template - Inline - Use Effective Date from File set by Template setting (see: Template)
- Subject - Use Effective Date from Email Subject
- File Name - Use Effective Date from File (Attachment) Name
- Manual Review - Import automatically or wait for manual confirmation
- Reject Import if errors found - Tariff Import will be rejected if at least one error will be found * after analyzing
- Stop processing more Rules - Matching with Email Details and Active Tariff Import Rules will be in specific order (from Tariff Import Rules List, from top to bottom). Email assigning will be stopped on this Rule if this option is enabled
- Default Effective From - Effective From value in Rates, when invalid value supplied from file
- Default Connection Fee - Set Connection Fee for Rates if it is not present or invalid in Import File
- Default Increment - Set Increment for Rates if it is not present or invalid in Import File
- Default Minimal Time - Set Minimal Time for Rates if it is not present or invalid in Import File
Email/Attachment Validation
Email/Attachment Validation section is used for specifying which emails where will be used by Tariff Import Rules. There are five fields. The first four are for email and the fifth is for attachment.
- Mail From - Email Address(es). Multiple emails can be separated by ;.
- Sender Name - Senders name.
- Mail subject - Emails subject.
- Mail text - Emails text.
- File Name - Attachments file name.
Wildcard % is allowed, which substitutes any character with any length. Example is shown in the image below
- Mail From has two values %@gmail.com and john@%.%.
- %@gmail.com specifies it is any Gmail email address.
- john@%.% specifies it is john from any email client.
- Sender Name J% any value That starts with uppercase J
- Mail Subject %Rates Subject ends with word Rates
- Mail Text Hello Mail Text Starts with word Hello
- File Name %.csv filename ends with .csv
Notifications
Email Notifications are used to generate email notifications to an internal or external list of recipients.
Follow the steps below to create and configure a notification Template.
- Create Email Template. Manual how to create Email Templates can be found here: M2 Emails. Additional Email variables: tariff_job_id, tariff_job_analysis_url.
- Select created Email Template from Email Template dropdown. Subject field will fill in automatically.
- Enter Email Address(es) in the Recipients field. Multiple Email Addresses must be separated by ;.
- Repeat the same process for desired Import Triggers.
Inbox
The Inbox is a type of email inbox available within the System that allows the Rating. Administrator to view and manage Provider Tariffs/Rate Notifications that have been sent to the System's Email Address.
Caution: The Inbox functions in a similar way to the email inbox of your desktop or web-based email client, with emails sent to the platform’s email address being displayed and stored in the inbox. The inbox also includes additional functionality to support Providers Rate Import procedures and processes. However, it is important to understand that the Rate Inbox is designed to manage received emails and not to be a “full email client”. This means that it is not possible to Reply To or Forward emails that are received into the Rate Inbox.
Inbox Interface:
The Inbox consists of 3 views: Inbox, Completed, and Junk.
Inbox - is the primary working inbox. It is this view that will show emails that have been received that have an associated task that requires carrying out. That task might be to review and commit an update, assign Tariff Import settings, or a number of other actions. Emails will remain visible in the Action Required view until the associated rate update is committed, or they are manually completed or deleted.
Completed - Fully processed emails are shown in the completed tab. Fully processed means that all of the email attachments had been assigned to at least one of Tariff Import Rules and Tariff Job which is completed.
Junk - Emails that are deleted from Junk will be removed permanently, not displayed in the deleted view.
Tariff Inbox basics
- Email column - Sender name, email address and subject
- Email details button - toggles email details
- Attachments list
- Attachments file type list
- Import jobs associated with attachments
- Import jobs button - toggles import jobs(if there are more than one tariff import job)
- Attachment mapping status
- Processing note
- Inbox view tab
- Completed view tab
- Junk view tab
- Select all emails checkbox
- Select single email checkbox
- Delete Selected emails
- Refine Results - shows fields to filter emails
Email Details
Email details are toggled by pressing the arrow button in the Email column. There are four sections: Email Details, Message, Attachments, and function buttons.
- Email Details section shows detailed email information such as ID, Received, From, Sender, Subject, To, Reply to, and CC.
- Message section contains emails message.
- Attachments section shows attachments associated with email.
- the Last Section represents three function buttons.
Filter Emails
Email filtering is done by pressing the Refine Results button in the top right corner of the Tariff Inbox.
There are four fields:
- Period - the period between emails were received.
- From - email or sender name.
- Subject - email subject.
- Message - email message.
Press Refine button to see results.
Press clear to clear fields.
Delete Emails
To delete emails, select emails by clicking their checkboxes.
Then press Delete Selected button on top right side of Tariff Inbox
After that, selected emails will be in a Junk view. To delete permanently, repeat the process in Junk view.
To select all emails, click on the top checkbox near the Email column heading.
Also, email can be deleted by toggling Email Details and pressing Delete button
Manually assign Tariff Import Settings
It is possible to manually Assign Tariff Import Settings.
- Toggle Email Details
- Select Tariff Import Rules for specific attachment
- Press Assign Import settings
Retry Rules mapping
If an email with multiple attachments has attachments with no import rules it is possible to retry rules mapping. It's simple, press Retry Rules mapping.
Note: It’s not possible to Retry Rules mapping if all email attachments will have at least one import rule assigned to it.
Attachment mapping status
Attachment mapping status(Status column in Emails list) indicates if Tariff Import Rules mapping was successful or not.
Import Rules Found - attachment was mapped successfully with at least one of the Tariff Import Rules. Import Rules Not Found - attachment was not mapped to any of the Tariff Import Rules or there were no Tariff Import Rules to map. Invalid Effective Date/Format for Tariff Import Rules - Invalid attachment date or it’s format compared to Tariff Import Rules settings. Numbers after status text represent Tariff Import Rules IDs.
Email Example
Email can have one or multiple attachments. Every attachment will be processed individually. Attachment can have one or multiple Import Jobs which are dependent on the number of mapped Tariff Import Rules.
If there are multiple Tariff Jobs they will be shown as a toggle list. To toggle the list, simply press the arrow button next to Jobs list caption.
To see Job details click on any Import Job. The page will be redirected to the Tariff Jobs list.
Examples
Rate upload from TATA
2. Create template for a tariff in BILLING → Tariff import → Import Rules → Templates
3. Select appropriate fields according to the tariff cells:
4. Create Rate Import Rules in BILLING → Tariff import → Import Rules → Rate Import Rules
5. Fill cells according your needs:
6. Create Tariff Import Rules in BILLING → Tariff import → Import Rules
8. Check the Inbox for a new email at Billing → Tariff Import → Inbox
9. Enter the mail, select Tariff Import Rules and press Assign Import Settings to continue the import:
10. Tariff job is created now, you can see it in BILLING → Tariff Import → Jobs
11. Job is now waiting for confirmation. You can view analysis before confirming:
12. Point to the line you want to analyze to see more information:
13. If you are satisfied, press confirm to finish the import procedure, otherwise cancel it.
14. If you pressed confirm, you will see that job was successfully confirmed:
15. Go back to Jobs page in BILLING → Tariff Import → Jobs to see the status of the Job:
16. Tariff import is finished. As a targeted tariff in this example was “SUPPLIER PREMIUM”, you can verify rates checking page BILLING → Tariffs.
Speedflow Tariff Import configuration
1. Create an import template. Go to BILLING > Tariff Import > Import Rules > Templates. Click "ADD NEW TEMPLATE" at the top-right corner of the page.
Set "Name" to "speedflow". It can be any name, but "speedflow" will represent for which Provider tariffs this template is used. Set "Rate Sheet" to "1", as this tariff files contains only one worksheet. Set "Header Rows" to "22", as this tariff has 4 rows before actual rates data begins. Set "Refix/Code" to column "A"; Set "Destination/Zone" to column "B"; Set "Effective Date" to column "E"; Set "Effective Date Format" to "%d.%m.%y"; Set "Rate" to column "C"; Set "Minimal Time" to column "E" and value "1"; Set "Increment" to column "E" and value "2";
Click "Create" to save changes.
2. Create Rate Import Rules Go to BILLING > Tariff Import > Import Rules > Rate Import Rules Click "ADD NEW RATE IMPORT RULES" at the top-right corner of the page.
This example shows how to create Rate Import Rule which will inform the admin about new rates above 1.0 in price and will reject rates where the price is equal to 0.
Set "Name" to "speedflow"; Set "Max Rate" to value "1.0" and action "Alert"; Set "Zero Rate" to action "Reject Rate".
Click "Create" to save changes.
3. Create Tariff Import Rules Go to BILLING > Tariff Import > Import Rules Click "ADD NEW TARIFF IMPORT RULES" at the top-right corner of the page.
Set fields like this: "Name":"speedflow"; "Rate Import Rules":"speedflow"; "Target Tariff":"speedflow (EUR)". This is tariff assigned to speedflow Termination Point; "Import Type":"Add/Update"; "Import Template":"speedflow"; "Effective Date":"Template - Inline" "Mail From":"rates@speedflow.com". This is not actual email from which speedflow sends rates. Set correct email address from which you get tariffs. "File Name":"%.xls"
Click "Create" to save changes
At this point, the system is ready to receive email from speedflow.
5. Once email from speedflow is received you will see a new Tariff Job waiting for confirmation in Billing > Tariff Import > Jobs.
Click "ANALYSIS" to see rates to be imported. By default, the ANALYSIS page does not show new rates. Click "REFINE RESULTS", uncheck "Show Only Rejected" and click REFINE to see all received rates.
Click "CONFIRM" at the top-right corner of the page to proceed with the import of rates.
In BILLING > Tariffs List, Tariff Import is completed and new Rates are now visible.
Step by step example for VoiceTrading Tariff
1. Review VoiceTrading XLSX tariff structure
We can see that the XLSX document consists of two Worksheets: Worksheet 1 (Rates) and Worksheet 2 (Numberplan). 2. Go to BILLING > Tariff Import > Import Rules > Templates to create a new Template
3. Configure Template for VoiceTrading XLSX structure
As you can see, there are two tabs on this page: Primary Data and Secondary Data. Do not confuse them with Worksheets, they are not related. Some Providers do not want to exceed a certain limit of rows in the XLSX file, so data is placed in two regions on the same row(s). Let’s review the screenshot below:
Green square corresponds to Primary Data, while Blue square corresponds to Secondary Data. They both contain the same information: Destination name, Prefix, and Rate.
Lets go step by step and configure a Template for Primary Data:
Rate Sheet - 2. VoiceTrading XLSX file has two sheets, so set to 2 Header Rows - 0. VoiceTrading XLSX file has no header rows (data starts at 1st row)
Prefix/Code - B. Prefix is in Cell B for Primary Data. Destination/Zone - A. Destination is in Cell A for Primary Data. Connection Fee - Empty. There is no Connection Fee cell in VoiceTrading XLSX.
To better understand Effective Date mapping, let’s review both Worksheets again:
Effective Date is on Worksheet 1 (Rates) and on Column D. So we select 1 and D on the first and second dropdown accordingly.
Now we need to map Worksheet 1 (Rates) where Effective Date is defined with Worksheet 2 (Numberplan), where Rates and Prefixes are defined. We can do this by Destination Column, which is A in Worksheet 1 (Rates), and also A on Worksheet 2 (Numberplan). So we select A on 3rd and 4th Dropdown accordingly.
Effective Date Format for VoiceTrading is in YYY.MM.DD, so we select accordingly.
Rate - C. Prefix is in Cell C for Primary Data. There are no Minimal Time and Increment cells in VoiceTrading XLSX.
Let’s configure Secondary Data now:
Rate Sheet, Header Rows and Effective date will be the same as on Primary data.
Prefix/Code - F. Prefix is in Cell F for Secondary Data. Destination/Zone - E. Destination is in Cell E for Secondary Data. Connection Fee - Empty. There is no Connection Fee Cell in VoiceTrading XLSX.
To better understand Effective Date mapping, let’s review both Worksheets again:
Effective Date is on Worksheet 1 (Rates) and on Column D. So we select 1 and D on the first and second dropdown accordingly.
Now we need to map Worksheet 1 (Rates) where Effective Date is defined with Worksheet 2 (Numberplan), where Rates and Prefixes are defined. We can do this by Destination Column, which is A in Worksheet 1 (Rates) and E on Worksheet 2 (Numberplan). So we select A on 3rd dropdown and E on 4th dropdown accordingly.
Once the configuration is complete, press the CREATE button to create a new Template.
4. Go to BILLING > Tariff Import > Import Rules > Rate Import Rules to create Rate Import Rules
5. Configure Rate Import Rules according to your specifications
In this example we changed these values: Max Increase: 50%. If the rate increase is higher than 50%, such a rate will be automatically rejected. Max Decrease: 50%. If the rate increase is higher than 50%, such a rate will be automatically rejected. Max Rate: 1.99. If the rate is higher than 1.99, such a rate will be automatically rejected.
6. Go to BILLING > Tariff Import > Import Rules to create Tariff Import Rules
7. Configure Tariff Import Rules according to your specifications
The minimum what you should change from default: Rate Import Rules: set to Import Rules created in step 5. Target Tariff: set to Tariff you want to import rates to. Import Template: set to Template created and configured in step 3. Email/Attachment Validation: set to valid date for your Provider. Data in the screenshot is only an example and does not represent real values for VoiceTrading Provider.
8. Once email(s) will be received, you will see them in BILLING > Tariff Import > Inbox If Tariff Import Rules have been correctly entered in the previous step, Import Job will be created automatically.
9. Click on the Import Job link. This will redirect you to the Tariff Jobs page.
Here we can see that Tariff Job is waiting for confirmation and that there are 1178 rates to be updated and 0 rejected rates.
10. Click on ANALYSIS link to view detailed analysis
By default, the Tariff Job Analysis page shows only rejected Rates. There are no rejected rates, in this case, so we can press the CONFIRM button.
11. Go to BILLING > Tariff Import > Jobs to check Tariff Jobs status again. We can see that status is Imported.
12. The process is completed. Let’s go to Billing > Tariffs to confirm this
We can see that 1178 rates have been imported to Tariff Supplier VoiceTrading.