Files
sxchnge/backend/contracts/sendico/api/payments/by_multiquote.yaml
T

38 lines
1.6 KiB
YAML

post:
tags: [Payments]
summary: Initiate payment batch by quote reference
description: |
Executes batch payment from a previously created multi-quote reference. If any quoted item
uses a raw `card` destination, that item's original quote must already include `exp_month`
and `exp_year`. Card-recipient AML screening occurs during execution, not quotation. An
unchanged payment item reuses its persisted compliance decision on idempotent execution
replay, avoiding a duplicate AML call. A definitive denial terminates that payment with
public `failureCode: failure_restriction` and `failureReason: aml_denied`.
operationId: paymentsInitiateBatchByQuote
security:
- bearerAuth: []
parameters:
- $ref: ../parameters/organizations_ref.yaml#/components/parameters/OrganizationsRef
requestBody:
$ref: ./bodies/payment.yaml#/components/requestBodies/InitiatePaymentsBody
responses:
'200':
description: Payment batch initiated
content:
application/json:
schema:
allOf:
- $ref: ../response/response.yaml#/components/schemas/BaseResponse
- type: object
properties:
data:
$ref: ./response/payment.yaml#/components/schemas/PaymentsData
'400':
$ref: ../response/operation.yaml#/components/responses/BadRequest
'401':
$ref: ../response/operation.yaml#/components/responses/Unauthorized
'403':
$ref: ../response/operation.yaml#/components/responses/Forbidden
'500':
$ref: ../response/operation.yaml#/components/responses/InternalServerError