Importing data into Custobar

Custobar has five different types of data.

  • Customers - Usually your registered customers or customers from your loyality program if you have one.
  • Events - Customer events, such as email subscriptions, browsing products online and participation in competitions.
  • Products - Product catalog.
  • Shops - Brick-and-mortar locations and e-commerce sites.
  • Sales - Sales order items.

The identifying fields of the five data types, such as external_id and nin of the customer, are free form strings that can be defined by you.

File transfer

To import your data to Custobar, you can use the Custobar API. Below are examples using curl to upload the data.

In all the examples below, replace mycompany with your company name as it is used in your company's Custobar app.


curl -X POST -u USER -H "Content-Type: application/json" \
    --data-binary @customers.json


curl -X POST -u USER -H "Content-Type: application/json" \
    --data-binary @events.json


curl -X POST -u USER -H "Content-Type: application/json" \
    --data-binary @products.json


curl -X POST -u USER -H "Content-Type: application/json" \
    --data-binary @shops.json


curl -X POST -u USER -H "Content-Type: application/json" \
    --data-binary @sales.json

Secure FTP

It's also possible to use sftp to transfer the files. Files are transferred to directory /srv/sftp/mycompany/tocustobar on your Custobar server.

For further details, please contact Custobar technical assistance.