> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cadanapay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit RFI documents

> Respond to a request for information (RFI) on a transaction held for compliance review.
Upload each document first with **POST /v1/files/upload-url** (purpose `compliance-document`)
and pass the returned `fileId` values here. Provide `fileIds`, `information`, or both.
Only accepted while the payout is in progress (`initiated` or routed to a provider).
On success the RFI moves to `RFI_PROVIDED` and the `transaction.rfi.updated` webhook fires.




## OpenAPI

````yaml /openapi/embedded-payments.yaml post /v1/disbursements/{disbursementId}/documents
openapi: 3.0.0
info:
  description: APIs for interacting with Cadana Global Payments
  version: 1.0.0
  title: Embedded Payments
  termsOfService: https://cadanapay.com/terms-and-conditions
  contact:
    email: api@cadanapay.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.cadanapay.com
    description: Prod Server
  - url: https://dev-api.cadanapay.com
    description: Dev Server
security:
  - Authorization: []
tags:
  - name: Beneficiaries
    description: APIs for managing beneficiaries
  - name: Payouts
    description: APIs for managing payouts
  - name: Balances
    description: APIs for managing account balances
  - name: FX
    description: APIs for managing foreign exchange rates
  - name: Resources
    description: Resource APIs to access and manage foundational data
  - name: Virtual Accounts
    description: APIs for managing virtual accounts
paths:
  /v1/disbursements/{disbursementId}/documents:
    post:
      tags:
        - Payouts
      summary: Submit RFI documents
      description: >
        Respond to a request for information (RFI) on a transaction held for
        compliance review.

        Upload each document first with **POST /v1/files/upload-url** (purpose
        `compliance-document`)

        and pass the returned `fileId` values here. Provide `fileIds`,
        `information`, or both.

        Only accepted while the payout is in progress (`initiated` or routed to
        a provider).

        On success the RFI moves to `RFI_PROVIDED` and the
        `transaction.rfi.updated` webhook fires.
      parameters:
        - $ref: '#/components/parameters/disbursementId'
        - $ref: '#/components/parameters/XMultiTenantKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitDisbursementDocumentsRequest'
            examples:
              invoice:
                summary: Invoice with a note
                value:
                  fileIds:
                    - 3f2b8c1e-7a4d-4e5b-9c6a-1d2e3f4a5b6c
                  information: Invoice for the March engagement
      responses:
        '204':
          description: Documents submitted for review
        '400':
          $ref: '#/components/responses/BadRequestError'
        '403':
          $ref: '#/components/responses/ForbiddenError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        5XX:
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    disbursementId:
      name: disbursementId
      in: path
      description: The transaction `id` from the `transaction.rfi.updated` webhook
      required: true
      schema:
        type: string
        format: uuid
        example: b4c5d6e7-f8a9-0123-bcde-f45678901234
    XMultiTenantKey:
      name: X-MultiTenantKey
      in: header
      required: false
      schema:
        type: string
      description: >-
        Required when using a Platform API token. The tenant key identifying
        which business to operate on.
  schemas:
    SubmitDisbursementDocumentsRequest:
      type: object
      description: At least one of `fileIds` or `information` is required.
      minProperties: 1
      properties:
        fileIds:
          type: array
          description: >-
            File ids from POST /v1/files/upload-url (purpose
            `compliance-document`)
          items:
            type: string
            format: uuid
        information:
          type: string
          description: Written answer to the request, sent with or instead of documents
    BadRequestError:
      description: Bad input provided by client
      allOf:
        - $ref: '#/components/schemas/Error'
        - type: object
          properties:
            params:
              description: A map for meta data around the error that occurred
              type: object
      example:
        code: invalid_request_body
        message: The request body provided is not valid
        params:
          field: Value is invalid.
    ForbiddenError:
      description: Caller is not permitted to perform this action
      allOf:
        - $ref: '#/components/schemas/Error'
    NotFoundError:
      description: Not Found
      allOf:
        - $ref: '#/components/schemas/Error'
      example:
        code: resource_not_found
        message: Requested resource could not be found.
    InternalError:
      description: Internal server error
      allOf:
        - $ref: '#/components/schemas/Error'
      example:
        code: internal_error
        message: An unexpected error occurred. Please try again later.
    Error:
      type: object
      properties:
        code:
          description: A machine parsable error code
          type: string
          enum:
            - invalid_request_body
            - resource_not_found
            - forbidden
            - internal_error
        message:
          description: A human readable message describing the error
          type: string
  responses:
    BadRequestError:
      description: Bad input provided by client
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BadRequestError'
    ForbiddenError:
      description: Caller is not permitted to perform this action
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenError'
    NotFoundError:
      description: Requested resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFoundError'
    InternalError:
      description: Internal error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InternalError'
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      bearerFormat: API_SECRET_KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.