---
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

## Changes

- **2026-08-23** `1c6e785395d6` — 1 info
  - added optional request body
- **2026-08-21** `466b4b2bd991` — 1 info
  - added the optional property `configured` to the response with the `200` status
- **2026-08-19** `7647b190b5db` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/innoship/apis/innoship-api/changes/api/Courier/Location/GenerateId/:locationId/:courierId/post.md)

---

[API](https://skmtc.dev/innoship/apis/innoship-api.md) · [All operations](https://skmtc.dev/innoship/apis/innoship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/innoship/apis/innoship-api/revisions/625a92a67e74?raw)
