swag-payments/spec/paths/processing@invoice-templates.yaml

49 lines
1.5 KiB
YAML
Raw Normal View History

post:
description: Создать новый шаблон инвойса.
tags:
- InvoiceTemplates
operationId: createInvoiceTemplate
parameters:
- $ref: '#/parameters/requestID'
2018-09-27 06:44:49 +00:00
- $ref: '#/parameters/deadline'
- 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'
'400':
description: Ошибочные данные для создания шаблона
schema:
type: object
required:
- code
- message
properties:
code:
description: |
[Код ошибки](#tag/Error-Codes)
type: string
enum:
- invalidPartyID
- invalidRequest
2018-10-19 09:26:21 +00:00
- invalidDeadline
- invalidShopID
- invalidPartyStatus
- invalidShopStatus
- invalidInvoiceCart
- ambiguousPartyID
message:
description: Человекочитаемое описание ошибки
type: string
example: Lifetime cannot be zero
'409':
$ref: '#/responses/ExternalIDConflict'