Files
sendico/interface/api/payment_methods/update.yaml
2026-02-24 21:26:31 +03:00

33 lines
1.1 KiB
YAML

put:
tags: [PaymentMethods]
summary: Update payment method
operationId: paymentMethodsUpdate
security:
- bearerAuth: []
requestBody:
$ref: ./bodies/payment_method.yaml#/components/requestBodies/PaymentMethodBody
responses:
'200':
description: Payment method updated
content:
application/json:
schema:
allOf:
- $ref: ../response/response.yaml#/components/schemas/BaseResponse
- type: object
properties:
data:
$ref: ./response/payment_method.yaml#/components/schemas/PaymentMethodsAuthData
'400':
$ref: ../response/operation.yaml#/components/responses/BadRequest
'401':
$ref: ../response/operation.yaml#/components/responses/Unauthorized
'403':
$ref: ../response/operation.yaml#/components/responses/Forbidden
'404':
$ref: ../response/operation.yaml#/components/responses/NotFound
'409':
$ref: ../response/operation.yaml#/components/responses/Conflict
'500':
$ref: ../response/operation.yaml#/components/responses/InternalServerError