Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

API Documentation
Check out all details in our Swagger documentation. https://api.planandgo.di.no/swagger-ui.html

Info

Login
Plan & Go API has it’s own login endpoint, see https://api.planandgo.di.no/swagger-ui.html#/login

Introduction

For integration purposes there are some APIs that are useful to import data into Plan & Go and also to be able to export.

...

Code Block
# Example 1) Posting JSON (when logged in, we send the token in the header)
curl https://api.planandgo.di.no/external/plan/v-1/create \
  -H "Content-Type:application/json" \
  -H "X-Auth-Token:olof:5f9a3609a5a295eff861d930a0c75bbee7991842" \
  -d "{ \
    \"companyId\": 1, \
    \"distrDate\": \"2015-12-04\", \
    \"distrNo\": 0,
    \"name\": \"Utkjoring uke 9\" \
  }"


# Example 2) posting FILE (when logged in, we send the token in the header)
curl https://api.planandgo.di.no/external/plan/v-1/importOrderFile/1234/5678 \
  -H "Content-Type: multipart/form-data" \
  -H "X-Auth-Token: olof:5f9a3609a5a295eff861d930a0c75bbee7991842" \
  -F file=@my_import_file_in_this_dir.csv

Environments

...

DEV: https://dev-planandgo.aws.di.no

...

Environment

  • PROD: https://api.planandgo.di.no

...