Pakk Documentation
More HelpSubmit TicketPakk.io
  • Docs Home
  • Pakk Explained in 2 Minutes
  • Account Setup
    • Brands
    • Shipping Methods
      • Restricting Shipping Methods
      • Shipping Calculations
    • Payment Methods
      • Stripe
      • Paypal
      • Paytriot
      • VivaWallet
    • Admin Panel
      • Beginner Tutorial Series
        • Part 1: Overview of the Main Menu and Auxiliary Functions
        • Part 2: Overview of the Main Menu and Entities in the Admin Panel
        • Part 3: Overview of Data Management Features: Sorting, Filtering, and Bulk Actions
        • Part 4: Warnings and Detail Views
        • Part 5: Auxiliary Functionality
      • List Views
        • List View FAQs
      • Troubleshooting
  • Suppliers and Purchasing
    • Purchase Orders
      • Item Types
      • Stock Receipts
      • Invoicing and Payment
    • Demand Planning
      • Approaching the Demand Planner
      • Data Sources
      • Concepts
      • The Maths Behind the Predictions
      • Order Screen
  • Customers and Sales
    • Leads
    • Orders
      • Order Sources
        • Telephone Orders
        • In-Person Sales
      • Item Types
      • Order Status
        • Committed
        • Invoiced/Cash Saled
        • Dispatched
        • Paid
      • Order FAQs
    • Sales
      • Limitations of Sales
      • Entering and Processing Sales
      • Invoicing
      • Cancellation, Returns, Credits and Refunds
    • Credit Management
      • Payment Methods and Flows
      • Credit Terms
      • Credit Management
      • Credit Control
    • Credits, Refunds, Returns and Replacements
      • Customer Credits
        • Raising a Credit
        • The Impact of a Credit
        • Using a Credit
        • Checking Your Logic
      • Returns
      • Common Scenarios
    • Help Desk
      • Tickets
      • Configuring your Help Desk
      • Ticket Creation
      • Ticket Management
    • Loyalty Program
      • Set up Your Loyalty Program
      • Activate Your Loyalty Program on Site(s)
      • Administer your Loyalty Program
      • Accounting Considerations
  • Accounting, Bookkeeping and Finance
    • Accounting Overview
    • Accountants Guide to Pakk
    • Journal Entries
    • Rounding
    • Period Locking
    • Reconciliations
      • Create a Reconciliation
      • Build the Reconciliation
      • Completing Reconciliations
    • Cost of Goods Sold (COGS)
    • Multi-Currency
      • Exchange Rates
  • Products and Inventory
    • Pricing
      • Base Price
      • Bulk Pricing
      • Pricing Schemes
      • Per-Site Pricing
      • Web Discounts
      • Discount Adjustment Lines
      • Composite Products
    • Stock Control
      • Batches
        • Reusing Batches
    • Custom Product Attributes
      • Attribute Types
      • Attribute Setup
      • Apply to Products
    • Stock Adjustments
      • Stock Valuation
      • Assembly Builds
    • Multi-Location
      • Setting Up Locations
      • Items, Batches and Locations
      • Moving Stock between Locations
      • Incoming Stock
      • Outgoing Stock
    • Gross Margin Calculation and Control
      • Set up Default Variable Cost Parameters and Target Margin
      • Overrides
      • Margin Calculations
  • Websites
    • Visual Style Guide
      • Logo
      • Colour
      • Typography
      • Header
      • Custom CSS
      • Imagery
      • Icons
    • Configuration and Customisation
      • Website Development
      • Navigation Menus
        • Menus
        • Slots
          • Aux Bar Menu
          • Main Menu
          • Footer Menu
    • Product Categorisation
      • Related Groups
      • Product Variants
        • Variant Axes
        • Custom Attributes
        • Variant Category
        • Category List Page
        • Variant Shell Page
      • Category Warnings
    • Filtering and Sorting
      • Sorting
      • Filtering
    • Content
      • FAQs
        • Setting up FAQs
        • Using FAQs Around Your Site
      • Pages
      • Posts
      • Forms
        • How Customer Forms Work
        • Advanced Customisation
        • Confirmations, Notifications and Form Submissions
        • Use Cases and Examples
      • Feature Blocks
      • Feed Posts
      • Videos
    • SEO
      • What you need to do
      • What you don't need to worry about
    • Google Services
      • Analytics
      • Merchant Centre and Shopping Feed
      • Search Console and Sitemap
      • Adwords
    • GDPR, Privacy and Cookies
      • GDPR
      • Cookies
    • Reviews
      • Merchant Reviews
        • Shopping Experience Reviews
      • Product Reviews
    • Checkout
      • New Customers
      • Invoice Options
      • Custom Checkout Questions
      • Signup Options
    • Passwordless Login
    • Webstore Features
    • Email Sending
  • Admin and Reporting
    • Document Storage
    • Email Sending and Receiving
      • Postmark Setup
    • PDFs and Printing
  • Data and Integrations
    • Using Pakk with Other Systems
      • Pakk Integrated to Legacy Stock System
    • Data Import and Export
      • Export
        • CSV Conventions
        • List Fields
      • Import
        • Referencing Other Records
        • Test then Commit
        • Advanced
        • Importing Images & Documents
      • Tips and Tricks
    • API
      • Integrations
      • API Keys
      • Authentication
      • Integration Data (Key-Value Store)
      • Exploring API Requests and Responses
      • API Structure
        • Utility Endpoints
        • Generic Entity API
        • RPC API
        • CSV API
        • Document API
    • Webhooks
      • Setting Up a Webhook
      • Configuring the Webhook
      • Webhook Signature Verification
      • Data Transformation
      • Testing the Webhook
      • Webhook Execution Log
  • Pakk Services
    • Fulfilled by Pakk (FBP)
      • Overview of the Integration
      • Configuration
      • The FBP Tab
      • Products
      • Orders
      • Purchase Orders/ASNs
      • List Views
    • PakkPay
      • How to Setup PakkPay
Powered by GitBook
On this page
Export as PDF
  1. Data and Integrations
  2. Data Import and Export
  3. Import

Advanced

Advanced Stuff, Corner Cases, Exceptions and Entity-Specific Advice

Stamping

Stamping is a somewhat advanced concept, but important if you intend to import particularly complex transactions like Purchase Orders and Sales Orders.

Stamping is where data from one entity record is 'stamped' into the transaction you are creating. Stamping is done in many places automatically by the admin panel. For example, when you create an order and choose a customer, multiple fields from the Customer record are 'stamped' into the order - like their name, email address and even payment terms.

You need to know that 'stamping' is not done automatically in CSV imports. In other words you need to import the field that 'connects' the Order to the Customer (the primary identifier of the customer) as well as all the above mentioned fields that would normally be stamped by admin panel. As always, the easiest way to get to grips with this is to do an export first, examine the fields that are there, test some imports and see what is missing, then add those fields.

Calculated Fields

Similar to 'stamped' fields, but technically very different, are server-calculated fields, like line or transaction totals. These are fields that are automatically calculated by the server when you save a transaction. These fields are calculated when doing an import (in contrast to stamped fields). You can't import them, and even if you could they'd be overwritten when the transaction was saved. The most common examples of calculated fields are:

  • Line totals on transaction lines

  • Transaction totals

  • Customer and supplier balance fields

  • Stock levels

Validations

Some of the failure messages you might see when running imports are not simple 'required field missing' errors, but more complex 'validations'. Validations are checks that are run by the server when you an attempt to import - they are guarding against bad data and impossible situations. When taken out of context however, they can be a bit cryptic. For example, if you are editing a Sales Order via CSV Import and you end up seeing a message about 'Dispatching more items than are committed' or something similar - you might not realise that the reason is because the edit you are making is essentially 'invalid'. The validations you might see after a CSV import are the exact same error messages you are liable to see in the admin panel if you tried to make the same edit.

Importing Sales Orders

Given that importing orders to the system from external sources is by far the most common import requirement, we feel the subject deserves special attention. Here are some pointers:

  • Remember to import all the customer 'stamped fields': name, email, billing email, payment terms etc

  • Due to a technical difference the payment method and shipping method on Orders need to be set in a specific way. Use the column headers shippingMethod._id and paymentMethod._id with the internal ID (the ones that looks like 5f75a30ada066b516dfaa96d). Shipping and payment surcharges will be auto-calculated for new records, but not for edits

  • On Order lines, set the product sky, name, weight, price, tax code and percentage, but don't set any of the line calculations - those will be done automatically

  • Definitely don't try to set the order totals

PreviousTest then CommitNextImporting Images & Documents

Last updated 8 months ago