Guide för dataexport

Exportera din data från CRMdata till CSV

Axel Bäckström

Senast uppdaterad för 19 dagar sedan

Den här dokumentationen ger en steg-för-steg-guide för alla användare av API:et om hur man exporterar data till CSV-filer. Det finns olika alternativ för att exportera data. Följ dokumentationen för mer information och se vilka funktioner som finns för att exportera data.

Request Parameters

Varje API-anrop måste innehålla följande parametrar i förfrågan för att autentisera användaren och därmed lyckas med anropet:

Endpoints
URL: /export/contacts
Method: GET
Description: Laddar ner en csv-fil med all kontaktdata som sparats i databasen.
Request Parameters:

  • schema (required): The schema to connect to the database.
  • username (required): The API username.
  • password (required): The API user password.

URL: /export/customers

Method: GET
Description: Laddar ner en csv-fil med all kunddata som sparats i databasen.
Request Parameters:

  • schema (required): The schema to connect to the database.
  • username (required): The API username.
  • password (required): The API user password.

URL: /export/notes
Method: GET
Description: Laddar ner en csv-fil med all data för anteckningar som sparats i databasen.
Request Parameters:

  • schema (required): The schema to connect to the database.
  • username (required): The API username.
  • password (required): The API user password.

URL: /export/orders
Method: GET
Description: Laddar ner en csv-fil med all orderdata som sparats i databasen.
Request Parameters:
  • schema (required): The schema to connect to the database.
  • username (required): The API username.
  • password (required): The API user password.
URL: /export/orderrows
Method: GET
Description: Laddar ner en csv-fil med all order-detaljdata som sparats i databasen.
Request Parameters:

  • schema (required): The schema to connect to the database.
  • username (required): The API username.
  • password (required): The API user password.

URL: /export/todos
Method: GET
Description: Laddar ner en csv-fil med all todo-data som sparats i databasen.
Request Parameters:

  • schema (required): The schema to connect to the database.
  • username (required): The API username.
  • password (required): The API user password.

How to download a CSV file
Via din browser
  1. Skapa en API-användare för att få åtkomst till data.
  2. Öppna din favoritwebbläsare, till exempel Google Chrome.
  3. Skapa URL:en för den data du vill hämta:
    • Börja med base URL: https://api.crmdata.se
    • Lägg till endpoint-URL:en för den data du vill hämta (t.ex. för att ladda ner alla artiklar används /export/articles)
    • Lägg till de parametrar som behövs för att göra förfrågan, genom att först lägga till ett ? i slutet av URL:en (t.ex. https://api.crmdata.se/export/articles?). De obligatoriska parametrarna finns listade i dokumentationen för den endpoint du vill använda.
    • Varje parameter skrivs som ett par i följande form: schema=foo@003. De kopplas ihop med ett & (t.ex. schema=foo@003&username=foo&password=foopw).
    • URL:en skulle kunna se ut så här:
https://api.crmdata.se/export/articles?schema=foo@001&username=foo@001_foo&password=foopw

4. Klistra in URL:en i adressfältet och tryck på Enter:

5. The csv file will be downloaded to your computer, and you will find the file in your downloaded files on your computer. 

Via Postman

  1. Skapa ett Postman-konto via Postman-webbplatsen och klicka på "Sign Up for Free".
  2. När du har skapat ditt konto, logga in på Postman.
  3. När du är inloggad klickar du på New Request under Get Started och bredvid Send an API request.
4. Choose GET and paste in you URL in the that consists of the base url : https://api.crmdata.se and your chosen endpoint (e.g. https://api.crmdata.se/export/articles )
  1. Click on Params and there you can fill in the name of the parameters according to the documentation.

    • Under key write the name of the parameter (e.g. schema 
    • Under value write the value of the parameter (e.g. foo@001)  

6. Click on send and you will get a response with the csv data in the body 

7. Click on the three dots in the left corner of the response body, choose save response to file and save the file on your computer. You can choose where this file will be saved. 

Var den här artikeln användbar?

0 av 0 gillade den här artikeln

Behöver du mer hjälp? Kontakta oss