Skip to main content
PDV Mundo is a trade marketing and field execution platform: promoters visit points of sale (stores), check in and out, work for one or more business units (clients or brands) and fill in questionnaires such as shelf audits. This connector reads your PDV Mundo account through the PDV Mundo GraphQL API and brings the registers (users, products, points of sale, questions and questionnaires), the store visits and the work done in them, the planned visits of the route plans, and every questionnaire answer.
PDV Mundo is not a point-of-sale (cash register) system: its API has no sales, payments, stock or cash register data. The connector only reads data; it never creates, changes or deletes anything in PDV Mundo.

Configuring PDV Mundo as a Source

In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the PDV Mundo option from the list of connectors. Click Next and you’ll be prompted to add your access.

1. Add account access

The connector signs in with a PDV Mundo API key. PDV Mundo issues API keys on request:
1

Request the key

Contact PDV Mundo support and ask for an API key with read access to your account’s data.
2

Copy the key

Copy only the key. If PDV Mundo sends it as Bearer <key>, either form works.
The following configurations are available:
  • API Key: The PDV Mundo API key.
  • Start Date: Earliest date synced by the activity tables (Point of Sale Checks, Business Unit Checks, Work Schedule Items, Questionnaire Answers and Answers) on the first sync and on full syncs. The registers (Users, Products, Points of Sale, Questions and Questionnaires) are always read in full.
  • Lookback Days (advanced): How many days before the last sync the Questionnaire Answers and Work Schedule Items tables read again on every sync, to catch questionnaires uploaded late from offline devices and planned visits whose status changed. Default: 7.
Once you’re done, click Next.

2. Select streams

Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. You can select entire groups of streams or pick specific ones.
Tip: The stream can be found more easily by typing its name.
Select the streams and click Next.

3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.
  • Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
  • Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
  • Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
  • Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
    • Incremental: every time the extraction happens, we’ll get only the new data, which is good if, for example, you want to keep every record ever fetched.
    • Full table: every time the extraction happens, we’ll get the current state of the data, which is good if, for example, you don’t want to have deleted data in your catalog.
Once you are done configuring, click Next.

4. Configure data source

Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:
  • Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
  • Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while. For PDV Mundo it also removes planned visits that were deleted or rescheduled in PDV Mundo.
Once you are ready, click Next to finalize the setup.

5. Check your new source

You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.
For you to be able to see it on your Catalog, you need at least one successful source run.
If the API key is not allowed to read some data, the tables that need it are skipped (and not updated) and the others keep syncing; the run log names the skipped tables. Ask PDV Mundo support to extend the key, or deselect those tables.

Fields by stream

Identifiers are strings. Nested data that varies in shape is stored as JSON in a single column: the questionnaire items (items) and the value of each answer (content, a JSON array whose objects have a __typename of AnswerBoolean, AnswerChoice, AnswerDate, AnswerFile, AnswerNumeric or AnswerText and the value fields of that type). Times marked UTC are in UTC; check-in and check-out times are as recorded by PDV Mundo, with the device time zone in timezone_in and timezone_out.

Registers

People with access to your PDV Mundo account: promoters, supervisors and administrators.Table: users · Primary key: id · Sync: Incremental (updated_at)
Products registered in PDV Mundo, with their category.Table: products · Primary key: id · Sync: Incremental (updated_at)
Stores (points of sale) visited by the field team, with address, location, retail chain, channel, region, banner and contacts.Table: point_of_sales · Primary key: id · Sync: Incremental (updated_at)
Questions used in the questionnaires.Table: questions · Primary key: id · Sync: Incremental (updated_at)
Questionnaires (audits, surveys and forms) with their items in order. Read in full on every sync. If a question used by an item was deleted in PDV Mundo, that questionnaire’s items are loaded without question ids.Table: questionnaires · Primary key: id · Sync: Full table

Field activity

Store visits: each check-in and check-out of a promoter at a point of sale, with time, duration, location, distance and photos.Table: point_of_sale_checks · Primary key: id · Sync: Incremental (updated_at)
The work done for each business unit (client or brand) during a store visit, with start and end times.Table: business_unit_checks · Primary key: id · Sync: Incremental (updated_at)
Business units (the clients or brands the field team works for), with contract details and the points of sale they serve. PDV Mundo has no list of business units, so the connector finds them through the business unit checks: a business unit with no check since the start date does not appear.Table: business_units · Primary key: id · Sync: Full table
Planned visits from the route plans: which promoter should visit which point of sale on which date, and whether the visit was done (PENDING, DONE or MISSED). Each sync reads from the last sync minus the lookback up to 60 days ahead, so future visits and status changes are refreshed. PDV Mundo computes the status: a visit made offline and uploaded later turns a MISSED visit into DONE, so each sync also goes back to the oldest store visit uploaded since the previous sync. Planned visits deleted or rescheduled in PDV Mundo stay in the table (as PENDING with a past date) until a full sync: schedule a weekly Additional Full Sync for this table.Table: work_schedule_items · Primary key: id · Sync: Incremental (date)

Questionnaire answers

One row per questionnaire filled in, with who filled it in, where and for which business unit. Each sync re-reads the last Lookback Days and goes further back when questionnaires filled in offline reach PDV Mundo late.Table: questionnaire_answers · Primary key: id · Sync: Incremental (answered_at)
One row per question answered. The answer itself is in the content JSON column (empty when PDV Mundo cannot return it, for example a deleted option; the run log says how many); join with questionnaire_answers on questionnaire_answer_id and with questions on question_id.Table: answers · Primary key: id · Sync: Incremental (updated_at)