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

## Response `200`

Returns the generated courier location id, or Created=false with the reason it was not generated

- InnoshipApiCoreCourierServicesEntitiesGenerateCourierLocationIdResponse
  - `courierLocationId` integer
  - `created` 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-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/7647b190b5db?raw)
