Configuring Lixlog as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Lixlog option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
You’ll need the API token of your Lixlog account. Generate it in the Lixlog panel; it starts withflx_.
The following configurations are available:
- API token: The API token of your Lixlog account. It is stored encrypted and is sent to Lixlog as a bearer token.
- Initial sync date: (Advanced) The starting point for orders, pickups and freight quote history. Products, warehouses and carriers are always read in full. When left empty, orders and pickups load their entire history and freight quotes load the last 90 days.
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.
Lixlog only exposes tracking events one shipment at a time, so the Order Trackings stream makes one request per order. On accounts with a large order history the extraction takes considerably longer with this stream selected. Leave it unselected if you do not need the carrier’s event-by-event history.
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.
Orders and pickups change over their lifetime — an order created today is delivered days later — so INCREMENTAL keeps them up to date by their last update timestamp. Freight quotes are never edited after the fact, so their history only ever grows. Products, warehouses and carriers are small reference tables and are read in full on every run.
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.
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.Streams and Fields
Available streams
Some columns hold structured data that is stored as a JSON string — for example the items of an order, the packages of a product, or the carrier options of a quote. Use your warehouse’s JSON functions to expand them in a Query or Notebook.
Fields by stream
Below you’ll find all available data streams from Lixlog and their corresponding fields:Orders
Orders
The central table of the connector: one row per shipment.Key Fields:
id- Unique identifier of the order in Lixlogreference- Order identifier in your own systemtracking_code- Tracking code Lixlog assigned to the order, used to join the Order Trackings streamcarrier_tracking_code- Tracking code the carrier assigned to the shipmentstatus- Current delivery status, such asinitial,available_for_pickup,in_transit,out_for_delivery,delivered,failureorcancelled
leadtime- Number of days the carrier committed to for this deliverypickuped_at- When the carrier collected the order at the warehouseout_for_delivery_at- When the order went out for its final delivery attemptdelivered_at- When the order was delivered to the addresseearchived_at- When the order was archived in Lixlogcreated_at- When the order was created in Lixlogupdated_at- When the order was last updated (incremental replication key)
carrier_id- Identifier of the carrier moving this order, joins the Carriers streamcarrier_name- Legal name of the carriercarrier_federal_tax- CNPJ of the carrierwarehouse_id- Identifier of the warehouse the order ships from, joins the Warehouses streamwarehouse_name- Name of the warehouse the order ships fromselected_rate_id- Identifier of the freight rate chosen for this order
addressee_name- Name of the person or company receiving the shipmentaddressee_email- Email address of the addresseeaddressee_phone- Phone number of the addresseeaddressee_federal_tax- CPF or CNPJ of the addresseeaddressee_street- Street name of the delivery addressaddressee_number- Street number of the delivery addressaddressee_complement- Additional address information, such as unit or flooraddressee_neighborhood- Neighborhood of the delivery addressaddressee_city- City of the delivery addressaddressee_state- State of the delivery address, as a two-letter codeaddressee_zip- Postal code (CEP) of the delivery addressaddressee_residential- Whether the address is residential, which some carriers price differentlyaddressee_id- Identifier of the address record in Lixlogaddressee_created_at- When the address was created in Lixlogaddressee_updated_at- When the address was last updated in Lixlog
invoice_id- Identifier of the invoice (nota fiscal) attached to the orderinvoice_number- Number of the invoiceinvoice_serie- Series of the invoiceinvoice_key- Access key (chave de acesso) of the electronic invoicesupplier_invoice_id- Identifier of the supplier’s invoice, when the order carries one
company_id- Identifier of the Lixlog account the order belongs tocreated_by_id- Identifier of the Lixlog user who created the orderreview_id- Identifier of the delivery review left for this orderlink_tracking- Public URL where the addressee can follow the delivery
items- Products shipped in this order: reference (SKU), price, weight, volume, quantity and package dimensionswarehouse_address- Full address of the warehouse the order ships from
Order Trackings
Order Trackings
Tracking events reported by the carrier for each order. One row per event.Key Fields:
order_id- Identifier of the order this event belongs to, joins the Orders streamtracking_code- Lixlog tracking code the event was reported againstid- Unique identifier of the tracking eventstatus- Delivery status this event puts the shipment in:in_transit,out_for_delivery,deliveredorfailure
title- Short title of the eventmessage- Full description of what happened to the shipmentcode- Event code reported by the carrier, when the carrier sends onecity- City where the event was recordedstate- State where the event was recordedoccurred_at- When the event happeneddelivery_date- Delivery date the carrier reported with this eventcreated_at- When Lixlog recorded the event
Pickups
Pickups
Collection requests placed with the carriers, one row per request.Key Fields:
id- Unique identifier of the pickup in Lixlogstatus- Current status of the request, such asinitial,accepted,cancelledorfinishedpickup_date- Date and time scheduled with the carrier for the collectioncarrier_pickup_code- Code the carrier assigned to this requestnote- Free-text note sent to the carrier with the request
accepted_at- When the carrier accepted the requestperformed_at- When the carrier actually performed the collectionfinished_at- When the collection was closed in Lixlogcanceled_at- When the request was cancelledcreated_at- When the request was created in Lixlogupdated_at- When the request was last updated (incremental replication key)
carrier_id- Identifier of the carrier asked to collect, joins the Carriers streamcarrier_name- Legal name of the carriercarrier_federal_tax- CNPJ of the carrierwarehouse_id- Identifier of the warehouse the collection happens at, joins the Warehouses streamwarehouse_name- Name of the warehouse the collection happens at
integration_status- Outcome of the automated request Lixlog sent to the carrier’s own systemcompany_id- Identifier of the Lixlog account the pickup belongs tocreated_by_id- Identifier of the Lixlog user who requested the collectionlink_public_url- Public URL the carrier uses to see and confirm this collection
integration_request- Payload Lixlog sent to the carrier’s system to book the collectionintegration_response- Response the carrier’s system returned for the bookingwarehouse_address- Full address of the warehouse the collection happens at
Quotation Logs
Quotation Logs
Every freight quote Lixlog answered, with all the carrier options it returned. This is the freight-pricing history: what a shipment could have cost, next to what it did cost in the Orders stream.Key Fields:
id- Unique identifier of the quote request, and its incremental replication keychannel- Sales channel the quote was requested from, when the caller identified onezip_from- Origin postal code (CEP) the freight was quoted fromzip_to- Destination postal code (CEP) the freight was quoted to
quoted_options_count- Number of carrier options returned. Zero means no carrier could serve the route, which is the signal to look for coverage gapsmin_freight_value- Cheapest final freight price among the options returned
request- What was asked to be quoted. Itsparcelsarray carries one entry per package with the declared price, weight, dimensions, quantity and product referenceresponse- Every carrier option returned: the final freight price, Lixlog’s own cost, the delivery estimate in days, the cubed weight, the carrier (id, code and service) and the freight rules applied
Products
Products
Products registered in Lixlog, with the measurements freight is priced from. This is the table to check when a shipment is quoted heavier or bulkier than expected.Key Fields:
id- Unique identifier of the product in Lixlogreference- Product code (SKU) in your own systemdescription- Description of the product
price- Declared value of one unit, used to insure the shipmentweight- Weight of one unit, in kilogramsvolume- Total volume of the product’s packages, in cubic metersdeadline- Extra days this product adds to the delivery deadline of an order
created_at- When the product was created in Lixlogupdated_at- When the product was last updated
volumes- Packages the product ships in, with the height, length and width in meters and the quantity of identical packages
Warehouses
Warehouses
Shipping origins registered in the account.Key Fields:
id- Unique identifier of the warehouse in Lixlogname- Name of the warehousedescription- Description of the warehousezip- Postal code (CEP) freight is quoted from for this warehousedefault- Whether this is the warehouse used when an order does not name one
address_street- Street name of the warehouse addressaddress_number- Street number of the warehouse addressaddress_complement- Additional address informationaddress_neighborhood- Neighborhood of the warehouse addressaddress_city- City of the warehouse addressaddress_state- State of the warehouse address, as a two-letter codeaddress_zip- Postal code (CEP) of the warehouse addressaddress_name- Contact name at the warehouseaddress_email- Contact email at the warehouseaddress_phone- Contact phone at the warehouseaddress_federal_tax- CPF or CNPJ registered for the warehouse contactaddress_residential- Whether the address is residentialaddress_id- Identifier of the address record in Lixlogaddress_created_at- When the address was created in Lixlogaddress_updated_at- When the address was last updated in Lixlog
created_at- When the warehouse was created in Lixlogupdated_at- When the warehouse was last updated
Carriers
Carriers
Carriers available to the account.Key Fields:
id- Unique identifier of the carrier in Lixlogname- Legal name of the carrierdisplay_name- Short name of the carrier as shown in the Lixlog panelcode- Lixlog code of the carrier. It is the value that appears as the carrier code in the freight quotes of the Quotation Logs stream
tms- Transport management system Lixlog integrates with to reach this carrierfederal_tax- CNPJ of the carrierstate_tax- State tax registration of the carrierphone- Contact phone number of the carrier
created_at- When the carrier was added in Lixlogupdated_at- When the carrier was last updated