36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
post:
|
|
tags: [Payment Methods]
|
|
summary: Create payment method
|
|
description: Creates a payment method in the organization identified by `organizations_ref`.
|
|
operationId: paymentMethodsCreate
|
|
security:
|
|
- bearerAuth: []
|
|
parameters:
|
|
- $ref: ../parameters/organizations_ref.yaml#/components/parameters/OrganizationsRef
|
|
requestBody:
|
|
$ref: ./bodies/payment_method.yaml#/components/requestBodies/PaymentMethodBody
|
|
responses:
|
|
'201':
|
|
description: Payment method created
|
|
content:
|
|
application/json:
|
|
schema:
|
|
allOf:
|
|
- $ref: ../response/response.yaml#/components/schemas/BaseResponse
|
|
- type: object
|
|
properties:
|
|
data:
|
|
$ref: ./response/payment_method.yaml#/components/schemas/Payment MethodsAuthData
|
|
'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
|