Versions Compared

Key

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

...

Name

Mandatory

Example

Description

ownerPartyKey

(tick)

owner-party-name

Unique owner party identifier in DI database

shop

(tick)

Shop object which will be persisted

customerSystemaddressCollector

(tick)

Data to create a

true

Address collection can be set to true or false for the new customer system connected to , which is automatically generated for the new shop.

transportSolutionIds

(tick)

[1, 2, 3]

Collection of already existing transport solutions to be connected to the new shop; can’t be empty

...

Name

Mandatory

Example

Description

street

Normannsgata

Warehouse’s street name

streetNumber

5

Warehouse’s street number

entrance

A

Warehouse’s entrance name, up to 5 characters

zipCode

1265

Warehouse’s zip code; 4 digits in Norway, 5 digits in Sweden

city

Oslo

Warehouse’s city

countryCode

NO

Warehouse’s country code; valid values: NO, SE, DE, EN, FI, SV

Customer system

Name

Mandatory

Example

Description

name

(tick)

shortName

(tick)

Must be unique; max. 5 characters

customerFacingName

addressCollector

Curl request example
Code Block
curl --location 'https://staging-ws.di.no/ws/json/shop/v-1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer TOKEN' \
--data-raw '{
    "ownerPartyKey": "ownerPartyKey",
    "shop": {
        "organizationNumber": "543 123 345",
        "email": "email@email.com",
        "address": {
            "street": "Street gata",
            "streetNumber": 5,
            "zipCode": 55555,
            "city": "The City",
            "countryCode": "NO"
        },
        "legalName": "Legal Name2",
        "shortName": "sn1",
        "delivererEDI": "delivererEDI",
        "vatLiable": false,
        "webShopPlatform": "web shop platform",
        "ceo": "Ceo Ceo",
        "customerManager": "Kristine",
        "externalCustomerIds": [{
            "freightProductId": 1,
            "customerNumber": 3799475
        }]
    },
    "customerSystem": {
        "name": " customer system",
        "shortName": "abcd"
    },
    "transportSolutionsIds": [1]
}'

...