Configuring Pernambucanas as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Pernambucanas option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
You’ll need an API credential created inside the Pernambucanas Seller Center. Sign in at marketplace.pernambucanas.com.br and go to Credential Maintenance. Creating a credential asks for your Seller Center password and returns two values, both required below. The following configurations are available:- API Token: the token issued in Credential Maintenance. It is sent on every request and is stored encrypted.
- Application ID: the identifier shown next to the token. The API rejects a token sent without it.
- Seller Tenant ID: only needed when the credential belongs to a marketplace operator acting on a seller’s behalf. A seller’s own credential already resolves to its tenant, so leave this empty in the usual case.
- Start Date: the earliest record update date to sync. It applies to the streams that support incremental replication.
-
Marketplace IDs: the marketplaces whose category tree should be synced. Used only by the
marketplace_categoriesstream; leave it empty and that stream is skipped while every other stream runs normally. -
Environment: (Default:
production) the Seller Center environment to read from. Change it only if your account was explicitly given access to a test environment. - Lookback Window: (Default: 0 days) the number of days to re-read before the last synced update date, to pick up records the marketplace updated late.
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.
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.Good to know
- Rate limit. The Seller Center API accepts 100 requests per minute per credential. Nekt stays inside that budget and backs off automatically when the marketplace answers with a rate-limit error, so a large first extraction simply takes longer rather than failing.
- Page sizes are set by the marketplace. Orders are returned 50 at a time and every other endpoint 10 at a time. A first full extraction of a large catalogue is therefore slower than the order history of the same account.
-
Order Financial Detailscosts one request per order. It is the only stream that queries the marketplace once per order, so selecting it makes the run noticeably longer on accounts with a high order volume. Select it when you need commission and settlement data; leave it out otherwise. -
Nested data is stored as JSON text. Fields such as
customer_data,payment_dataorimageshold structured content and are stored as JSON strings. Read them in SQL withJSON_VALUE(customer_data, '$.name')rather thancustomer_data.name. - Streams your credential cannot reach are skipped. If the credential lacks permission for an endpoint, that stream is skipped with a message in the run log and the rest of the extraction completes normally.
Streams and Fields
Available streams
The table below lists every stream, its slug (the exact identifier to pass when creating the source via API) and a short description.Fields by stream
Below you’ll find all available data streams from Pernambucanas and their corresponding fields:Orders
Orders
Orders placed with the seller on the marketplace. Synced incrementally by
last_update.Key Fields:market_place_id- Identifier the marketplace assigned to the order (primary key)id- Identifier of the order in the seller’s own numberingstatus- Current stage of the order (approved, invoiced, sent, delivered, cancelled)last_update- Timestamp of the last change, used as the incremental replication keycreate_date- Timestamp the order was first recorded in the Seller Centerlast_event- Name of the most recent event applied to the order
order_date- Timestamp the customer placed the orderapproval_date- Timestamp the payment was approvednot_approval_date- Timestamp the payment was refused, when it wascancel_date- Timestamp the order was cancelled, when it wasmarket_place_id_order- Order identifier as shown to the customershipping_id- Identifier of the shipment the order was dispatched undersales_channel- Sales channel the order came throughplace_of_sale- Point of sale credited with the orderexclude_from_seller_index- Whether the order is left out of the seller’s performance index
order_values_items- Number of item lines in the orderorder_values_value- Total value of the items before discounts and interestorder_values_discount- Total discount appliedorder_values_interest- Total interest chargedorder_values_net_value- Value after discounts and interestorder_values_gross_value- Value including freight and every charge
commission_percentage- Percentage charged on the order’s productscommission_value- Amount charged on the order’s productsfreight_commission_percentage- Percentage charged on the order’s freightfreight_commission_value- Amount charged on the order’s freightis_external_calculation- Whether the commission was calculated outside the Seller Centerpaid_with_bonus- Whether the commission was settled with bonus credit
tenant- Identifier of the seller account that owns the orderoperator- Identifier of the marketplace operator (the hub)
marketplace_data- Marketplace name, marketplace order ID, site ID and active flagcustomer_data- Buyer name, document, e-mail, address and phone numbersinvoice_data- Invoice access key, number, series, CFOP, SEFAZ status and XML/DANFE linksdelivery_data- Carrier, tracking code and URL, shipping method, dates, address and exceptionsshipping_data- Dispatch and expiry dates and the shipping label linksfreight_data- Freight type, charged value, transit time, modal and take ratesplatform_data- Platform that originated the orderpayment_data- Payer, billing address and each payment method with its transaction identifierscancellations_data- History of cancellations applied to the orderdevolutions_data- History of returns, with reason, returned items and reverse logisticsreceiving_period- Delivery window agreed with the buyercampaigns,integrators,postage_data,credit_information_data,price_monitoring_data,marketing- Additional data the marketplace attaches to the order
Order Items
Order Items
One row per item line of an order. The lines come from the order payload, so this stream
adds no extra requests to the marketplace.Key Fields:
market_place_id- Marketplace identifier of the order (part of the primary key)item_index- Position of the line inside the order, starting at 0 (part of the primary key)order_id- Identifier of the order in the seller’s own numberingorder_last_update- Timestamp of the last change to the parent ordertenant- Identifier of the seller account
id- Identifier of the SKU sold on this linesku- Seller’s SKU codesku_name- Name of the SKU as publishedsku_original- Original SKU code, when the marketplace remapped itgtin- Global trade item number (EAN/GTIN)model- Manufacturer modelproduct_type- Product type assigned to the itemproduct_condition- Condition of the item soldactive- Whether the item was active when the order was placedcrossdocking_days- Days the seller needs to hand the item to the carriersupplier_code,erp_code,establishment_code,platform_id,ref_id- External codes for the itemmoderation_status- Marketplace moderation statusmoderation_date- Timestamp of the last moderation decisiondescription,description_html- Descriptions of the itemmeasurement_unit- Unit the item is sold inunit_multiplier- How many base units one sold unit represents
unit_price- Price of a single unit before discountsdiscount_unit- Discount applied to a single unitnet_price- Line value after discountsgross_price- Line value including every chargequantity- Units sold on this linereturned_quantity- Units of this line that were returned
stock_stock- Stock balance recorded when the order was placedstock_min_stock- Minimum stock configured for the SKUstock_move- Whether the order moved the SKU’s stock balance
freight_data- Freight attributed to this line, with type, charged value and take ratesproduct_data- Product the SKU belongs to, when the marketplace sends itvendors,campaigns,operator_campaigns,monitored_price_data- Additional data attached to the line
Order Financial Details
Order Financial Details
Commission, promotional subsidies and settlement entries for each order. This stream
queries the marketplace once per order, so it makes the run longer on accounts with a
high order volume.Key Fields:
market_place_id- Marketplace identifier of the order (primary key)order_id- Identifier of the order in the seller’s own numbering
itens_commission_percent- Commission percentage applied to the productsitens_commission_value- Commission amount charged on the productsfreight_commission_percent- Commission percentage applied to the freightfreight_commission_value- Commission amount charged on the freighttotal_commission_value- Total commission charged on the order
total_transfer_seller- Amount to be transferred to the seller for this orderfinancial_cicle_type- Settlement cycle the order was assigned tofinancial_transfer_days_after_end_cicle- Days after the cycle closes before the transfer is released
commission_origins- Per-SKU commission breakdown with product and freight percentages and valuesdiscounts- Promotions applied and how their subsidy was split between marketplace and sellerfinancial_statements- Ledger entries generated by the order, with type, status, value, release date and instalment position
Products
Products
Products the seller publishes to the marketplace. Synced incrementally by
last_update.
Stock is always requested fresh, so the SKU rows match the Seller Center.Key Fields:id- Unique identifier of the product (primary key)product_name- Commercial name of the productactive- Whether the product is currently activelast_update- Timestamp of the last change, used as the incremental replication keycreate_date- Timestamp the product was created
description- Plain-text descriptiondescription_html- HTML description as publishedbrand- Brand the product belongs totags- Tags attached to the productwarranty- Warranty period offered, in monthsvariant- Whether the product is sold in variants (more than one SKU)unit- Unit the product is sold inunit_initials- Abbreviation of that unit
product_width,product_height,product_depth,product_gross_weight- Dimensions of the product itselfpackage_width,package_height,package_depth,package_gross_weight- Dimensions of the shipping package
category_id,category_code,category_name- The seller’s own category for the producttenant- Identifier of the seller accountoperator- Identifier of the marketplace operator (the hub)account- Identifier of the seller’s account the product belongs to
tax_data- ICMS origin and the NCM code the product is declared undercodes- Additional codes registered for the productcategories- Marketplace category paths, up to eight levels per channelattributes- Product specifications, with whether the marketplace requires each onemarketplaces- Marketplaces the product is published to, with commission and active flag
Product SKUs
Product SKUs
Variants of each product, with price and stock. The SKUs come from the product payload,
so this stream adds no extra requests.Key Fields:
product_id- Identifier of the parent product (part of the primary key)id- Unique identifier of the SKU (part of the primary key)sku- Seller’s own SKU codesku_name- Name of the SKU as publishedactive- Whether the SKU is currently activeproduct_last_update- Timestamp of the last change to the parent producttenant- Identifier of the seller account
from_price- Reference (struck-through) price shown for the SKUprice- Selling pricecost_price- Cost price registered by the sellerstock- Current stock balancemin_stock- Minimum stock configured
gtin- Global trade item number (EAN/GTIN)model- Manufacturer modelproduct_type- Product type assigned to the SKUproduct_condition- Condition the SKU is sold incrossdocking_days- Days the seller needs to hand the SKU to the carriersupplier_code,erp_code,establishment_code- External codes for the SKUmoderation_status- Marketplace moderation status of the listingmoderation_date- Timestamp of the last moderation decisiondescription,description_html- Descriptions of the SKU
package_width,package_height,package_depth,package_gross_weight- Dimensions of the shipping package
codes- Additional codes registered for the SKUerrors- Errors the marketplace returned for this SKU’s listingimages- Images in each rendered size, with the main-image flag and display orderattributes- Specifications specific to the SKUmarketplaces- Marketplaces the SKU is published to, with commission and active flag
Brands
Brands
Brands registered by the seller. Synced incrementally by
last_update.Key Fields:id- Unique identifier of the brand (primary key)code- Code registered for the brandname- Display name of the brandtenant- Identifier of the seller accountoperator- Identifier of the marketplace operator (the hub)create_date- Timestamp the brand was createdlast_update- Timestamp of the last change, used as the incremental replication key
Marketplace Brands
Marketplace Brands
Brands the marketplace recognises for the seller’s listings. Same fields as
brands.Key Fields:id- Unique identifier of the brand (primary key)code- Code registered for the brandname- Display name of the brandtenant- Identifier of the seller accountoperator- Identifier of the marketplace operator (the hub)create_date- Timestamp the brand was createdlast_update- Timestamp of the last change, used as the incremental replication key
Variants
Variants
Variant axes such as colour or size. Synced incrementally by
last_update.Key Fields:id- Unique identifier of the variant axis (primary key)code- Code registered for the axisname- Display name of the axis, such as Colour or Sizetenant- Identifier of the seller accountoperator- Identifier of the marketplace operator (the hub)create_date- Timestamp the axis was createdlast_update- Timestamp of the last change, used as the incremental replication key
values- Allowed values of the axis, each with its code, name and nickname
Marketplace Categories
Marketplace Categories
The marketplace’s category tree and the attributes each category requires. This stream
only runs when Marketplace IDs is filled in; otherwise it is skipped with a note in
the run log.Key Fields:
marketplace- Marketplace whose tree the row belongs to (part of the primary key)id- Unique identifier of the category (part of the primary key)channel- Sales channel the category belongs toean_required- Whether the marketplace requires an EAN for products in this categorylast_update- Timestamp of the last change, used as the incremental replication keycreate_date- Timestamp the category was createdtenant- Identifier of the seller account the category was read foroperator- Identifier of the marketplace operator (the hub)
category_channel- Channel recorded inside the category pathcategory_tag- Tag the marketplace uses for the pathcategory_id1…category_id8- Identifier of each level of the pathcategory_name1…category_name8- Name of each level of the path
attributes- Attributes the marketplace defines for the category, with whether each is required and the accepted values
Financial Entries
Financial Entries
Manual financial entries recorded against the seller’s settlement cycle. The endpoint
accepts no filters, so this stream is always a full table.Key Fields:
id- Unique identifier of the entry (primary key)type- Type of the entry, such as a sale or an adjustmentstatus- Current status of the entryvalue- Amount of the entrydescription- Description recorded with the entry
type_of_cycle- Type of settlement cycle the entry belongs tofinancial_cycle_status- Status of that cyclebeginning_of_cycle- Event that opens the cycleend_of_cycle- Event that closes the cyclepayment_status- Payment status of the entrypayment_error- Reason the payment failed, when it didtransfer_date- Date the amount is transferred to the sellerrelease_date- Date the amount is released for transferstatements- Statement the entry was consolidated intostatement_id- Identifier of that statement
order_id- Order the entry relates to, in the seller’s own numberingmarketplace_id- Marketplace identifier of that ordertenant- Identifier of the seller accountseller_tenant- Identifier of the seller the entry settlesoperator- Identifier of the marketplace operator (the hub)operator_name- Name of that operatorapplication_id- Identifier of the API credential that created the entrycreate_date- Timestamp the entry was createdlast_update- Timestamp of the last change to the entry
typed_label- Classification of the entry, with type identifier, label and description