# createDeliveryMethod

Source: <https://telegafirst.com/docs/api-op-createdeliverymethod>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: 5a61fe3d5e6c06a204feff48d0aa8dad2dfb3034f45f1ae543192fb20a9c0faf
Version: 2

# createDeliveryMethod

`POST /api/v1/delivery-methods`

createDeliveryMethod

## Авторизация и права

Scopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.

| Поле | Значение |
| - | - |
| security.0.hubApiKey | \[] |
| security.1.hubBearer | \[] |
| securitySchemes.hubApiKey.in | "header" |
| securitySchemes.hubApiKey.name | "X-Api-Key" |
| securitySchemes.hubApiKey.type | "apiKey" |
| securitySchemes.hubBearer.scheme | "bearer" |
| securitySchemes.hubBearer.type | "http" |
| x-required-scopes | \["orders:write"] |

## Параметры запроса

| Поле | Значение |
| - | - |
| 0.description | "Required for POST with a body. Same-key replay; changed body returns 422." |
| 0.in | "header" |
| 0.name | "Idempotency-Key" |
| 0.required | true |
| 0.schema | [0.schema](https://telegafirst.com/docs/schema-9ac136edb99a2063b3091602181c8d2022fdccb5b514991319d58544c2e57e95) |

## Тело запроса

| Поле | Значение |
| - | - |
| content.application/json.schema | [DeliveryMethodCreateRequest](https://telegafirst.com/docs/schema-8a3e4a5e77d3bc76a1edafe1d085884ebc9e9824da1e0fdfb90401bfe0c7c520) |
| required | true |

## Ответы

| Поле | Значение |
| - | - |
| 201.content.application/json.schema | [ManageDeliveryMethodsResponse](https://telegafirst.com/docs/schema-ca8261a2e1e732b4dab5963b9be6cd2d63b5c91d8375c393b8c094e1c0c07d95) |
| 201.description | "Create a delivery method; a paid kind needs a complete tax\_profile (DELIVERY\_TAX\_PROFILE\_INCOMPLETE)." |

## Ошибки

| Поле | Значение |
| - | - |
| 400.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-cb940dbba4894d830b2ff33a2fbf4d6382de295156cd5a9ab88564d4c14aa2ab) |
| 400.description | "A strict body, path or query is rejected" |
| 401.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-cb940dbba4894d830b2ff33a2fbf4d6382de295156cd5a9ab88564d4c14aa2ab) |
| 401.description | "Missing, invalid, expired or revoked authentication" |
| 403.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-cb940dbba4894d830b2ff33a2fbf4d6382de295156cd5a9ab88564d4c14aa2ab) |
| 403.description | "Missing scope, or a credential that names no actor (FORBIDDEN)" |
| 404.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-cb940dbba4894d830b2ff33a2fbf4d6382de295156cd5a9ab88564d4c14aa2ab) |
| 404.description | "The addressed object is not in this business" |
| 409.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-cb940dbba4894d830b2ff33a2fbf4d6382de295156cd5a9ab88564d4c14aa2ab) |
| 409.description | "A conflict with the current state" |
| 422.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-cb940dbba4894d830b2ff33a2fbf4d6382de295156cd5a9ab88564d4c14aa2ab) |
| 422.description | "A domain refusal with its own code" |
| 429.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-cb940dbba4894d830b2ff33a2fbf4d6382de295156cd5a9ab88564d4c14aa2ab) |
| 429.description | "Per-tool rate limit exceeded" |
| 500.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-cb940dbba4894d830b2ff33a2fbf4d6382de295156cd5a9ab88564d4c14aa2ab) |
| 500.description | "Unexpected failure" |

## Дополнительные условия

| Поле | Значение |
| - | - |
| description | "Create a delivery method; a paid kind needs a complete tax\_profile (DELIVERY\_TAX\_PROFILE\_INCOMPLETE)." |
| operationId | "createDeliveryMethod" |
| tags | \["delivery"] |
| x-idempotency | "generic-cache" |
