mirror of
https://github.com/valitydev/swag-payments.git
synced 2024-11-06 17:45:24 +00:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
put:
|
|
description: Отозвать заявку по её идентификатору.
|
|
operationId: revokeClaimByID
|
|
tags:
|
|
- Claims
|
|
parameters:
|
|
- $ref: '#/parameters/requestID'
|
|
- $ref: '#/parameters/deadline'
|
|
- $ref: '#/parameters/claimID'
|
|
- $ref: '#/parameters/claimRevision'
|
|
- name: reason
|
|
in: body
|
|
schema:
|
|
$ref: '#/definitions/Reason'
|
|
responses:
|
|
'204':
|
|
description: Заявка отозвана
|
|
'404':
|
|
$ref: '#/responses/NotFound'
|
|
'400':
|
|
description: Ошибка отзыва заявки
|
|
schema:
|
|
type: object
|
|
required:
|
|
- code
|
|
- message
|
|
properties:
|
|
code:
|
|
description: |
|
|
[Код ошибки](#tag/Error-Codes)
|
|
type: string
|
|
enum:
|
|
- invalidClaimStatus
|
|
- invalidClaimRevision
|
|
- invalidPartyStatus
|
|
message:
|
|
description: Человекочитаемое описание ошибки
|
|
type: string
|
|
example: Invalid claim status
|