mirror of
https://github.com/valitydev/swag-payments.git
synced 2024-11-06 17:45:24 +00:00
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
post:
|
|
description: Создать новый инвойс по шаблону.
|
|
tags:
|
|
- InvoiceTemplates
|
|
operationId: createInvoiceWithTemplate
|
|
parameters:
|
|
- $ref: '#/parameters/requestID'
|
|
- $ref: '#/parameters/deadline'
|
|
- $ref: '#/parameters/invoiceTemplateID'
|
|
- name: invoiceParamsWithTemplate
|
|
description: Параметры создаваемого инвойса
|
|
in: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/InvoiceParamsWithTemplate'
|
|
responses:
|
|
'201':
|
|
description: Инвойс создан
|
|
schema:
|
|
$ref: '#/definitions/InvoiceAndToken'
|
|
'404':
|
|
$ref: '#/responses/NotFound'
|
|
'401':
|
|
$ref: '#/responses/Unauthorized'
|
|
'400':
|
|
description: Ошибочные данные для создания инвойса
|
|
schema:
|
|
type: object
|
|
required:
|
|
- code
|
|
- message
|
|
properties:
|
|
code:
|
|
description: |
|
|
[Код ошибки](#tag/Error-Codes)
|
|
type: string
|
|
enum:
|
|
- invalidPartyStatus
|
|
- invalidShopStatus
|
|
- invalidRequest
|
|
- invalidDeadline
|
|
message:
|
|
description: Человекочитаемое описание ошибки
|
|
type: string
|
|
example: Invalid party status
|
|
'409':
|
|
$ref: '#/responses/ExternalIDConflict'
|