2017-07-26 16:06:15 +00:00
|
|
|
post:
|
|
|
|
description: Создать новый шаблон инвойса.
|
|
|
|
tags:
|
|
|
|
- InvoiceTemplates
|
|
|
|
operationId: createInvoiceTemplate
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/requestID'
|
2018-09-27 06:44:49 +00:00
|
|
|
- $ref: '#/parameters/deadline'
|
2017-07-26 16:06:15 +00:00
|
|
|
- name: invoiceTemplateCreateParams
|
|
|
|
description: Параметры шаблона инвойса.
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/InvoiceTemplateCreateParams'
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
description: Шаблон инвойса создан.
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/InvoiceTemplateAndToken'
|
2018-10-22 08:45:48 +00:00
|
|
|
'401':
|
|
|
|
$ref: '#/responses/Unauthorized'
|
2017-07-26 16:06:15 +00:00
|
|
|
'400':
|
2018-05-07 13:05:18 +00:00
|
|
|
description: Ошибочные данные для создания шаблона
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- code
|
|
|
|
- message
|
|
|
|
properties:
|
|
|
|
code:
|
|
|
|
description: |
|
|
|
|
[Код ошибки](#tag/Error-Codes)
|
|
|
|
type: string
|
|
|
|
enum:
|
2020-10-19 10:17:23 +00:00
|
|
|
- invalidPartyID
|
2018-05-07 13:05:18 +00:00
|
|
|
- invalidRequest
|
2018-10-19 09:26:21 +00:00
|
|
|
- invalidDeadline
|
2018-05-07 13:05:18 +00:00
|
|
|
- invalidShopID
|
|
|
|
- invalidPartyStatus
|
|
|
|
- invalidShopStatus
|
|
|
|
- invalidInvoiceCart
|
2020-09-30 08:20:26 +00:00
|
|
|
- ambiguousPartyID
|
2018-05-07 13:05:18 +00:00
|
|
|
message:
|
|
|
|
description: Человекочитаемое описание ошибки
|
|
|
|
type: string
|
|
|
|
example: Lifetime cannot be zero
|
2021-03-30 10:51:08 +00:00
|
|
|
'409':
|
|
|
|
$ref: '#/responses/ExternalIDConflict'
|