mirror of
https://github.com/valitydev/swag-payments.git
synced 2024-11-06 09:35:22 +00:00
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
post:
|
|
description: Погасить указанный инвойс.
|
|
tags:
|
|
- Invoices
|
|
operationId: fulfillInvoice
|
|
parameters:
|
|
- $ref: '#/parameters/requestID'
|
|
- $ref: '#/parameters/deadline'
|
|
- $ref: '#/parameters/invoiceID'
|
|
- name: fulfillInvoice
|
|
in: body
|
|
description: Произвольная причина совершения операции
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/Reason'
|
|
responses:
|
|
'204':
|
|
description: Инвойс погашен
|
|
'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:
|
|
- invalidInvoiceStatus
|
|
- invalidPartyStatus
|
|
- invalidShopStatus
|
|
- invalidRequest
|
|
- invalidDeadline
|
|
message:
|
|
description: Человекочитаемое описание ошибки
|
|
type: string
|
|
example: Invalid invoice status
|