---
title: "Create the location in the courier's system."
method: POST
path: "/api/Courier/Location/GenerateId/{locationId}/{courierId}"
tags: ["Courier"]
---

# Create the location in the courier's system.

`POST /api/Courier/Location/GenerateId/{locationId}/{courierId}`

## Path parameters

- `locationId` integer, required
- `courierId` integer, required

## Query parameters

- `api-version` string, required

## Headers

- `api-version` string

## Request body

- InnoshipApiCoreCourierServicesEntitiesGenerateCourierLocationIdRequest
  - `address` InnoshipApiCoreCourierServicesEntitiesCourierLocationAddress
    - `name` string, nullable
    - `contactPerson` string, nullable
    - `phone` string, nullable
    - `email` string, nullable
    - `localityName` string, nullable
    - `addressText` string, nullable
    - `streetType` string, nullable
    - `streetName` string, nullable
    - `streetNumber` string, nullable
    - `postalCode` string, nullable
    - `countyName` string, nullable
    - `countryCode` string, nullable
    - `countryName` string, nullable

## Response `200`

Returns the generated courier location id, with Configured telling whether it also became the id on the credentials

- InnoshipApiCoreCourierServicesEntitiesGenerateCourierLocationIdResponse
  - `courierLocationId` integer
  - `created` boolean
  - `configured` boolean
  - `error` string, nullable

## Other responses

- `400` — Unable to generate the courier location id due to errors
- `401` — Unable to authorize request

---

[API](https://skmtc.net/innoship/apis/innoship-api.md) · [All operations](https://skmtc.net/innoship/apis/innoship-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/innoship/innoship-api/revisions/1c6e785395d6/schema)
