Skip to main content
POST
/
suppliers
/
{supplierPublicId}
/
locations
Create a location for a supplier
curl --request POST \
  --url https://api.maalbar.dk/suppliers/{supplierPublicId}/locations \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "type": "<string>",
  "name": "<string>",
  "externalId": "<string>",
  "address": "<string>",
  "city": "<string>",
  "zip": "<string>",
  "weeksRotation": 123,
  "totalCapacity": 123,
  "shelfHeight": 123,
  "tier": "<string>",
  "own": false,
  "vatNumber": "<string>",
  "stores": 123,
  "timeperiod": "<string>"
}
'
{
  "publicId": "<string>",
  "name": "<string>",
  "type": "<string>",
  "own": false,
  "geographical": {
    "location": {
      "publicId": "<string>",
      "name": "<string>"
    }
  },
  "externalId": "<string>",
  "address": "<string>",
  "city": "<string>",
  "zip": "<string>",
  "weeksRotation": 123,
  "totalCapacity": 123,
  "shelfHeight": 123,
  "tier": "<string>",
  "vatNumber": "<string>",
  "stores": 123,
  "timeperiod": "<string>",
  "supplier": {
    "publicId": "<string>",
    "name": "<string>"
  }
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
type
string
required
geographical
object
name
string
externalId
string | null
address
string | null
city
string | null
zip
string | null
weeksRotation
number | null
totalCapacity
number | null
shelfHeight
number | null
tier
string | null
own
boolean
default:false
vatNumber
string | null
stores
number | null
timeperiod
string | null

Response

Successful response

publicId
string
required
name
string
required
type
string
required
own
boolean
default:false
required
geographical
object
required
externalId
string | null
address
string | null
city
string | null
zip
string | null
weeksRotation
number | null
totalCapacity
number | null
shelfHeight
number | null
tier
string | null
vatNumber
string | null
stores
number | null
timeperiod
string | null
supplier
object