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

# Assign one of the merchant's unmatched bank payins to an account

> Attributes the payin to the selected account's active payin method on the payin's rail; PaymentGW replays it as a normal settlement. The account must belong to the authenticated merchant.



## OpenAPI

````yaml post /api/v1/account/unmatched-bank-payins/{id}/assign
openapi: 3.0.1
info:
  title: RALIO API
  description: Banking as a service API.
  contact:
    name: Tropipay Support
    url: https://help.tropipay.com/contacto/
    email: support@tropipay.com
  version: '1.0'
servers:
  - url: https://sandbox-revo-api.raliopay.com/
security: []
paths:
  /api/v1/account/unmatched-bank-payins/{id}/assign:
    post:
      tags:
        - account-unmatched-bank-payins
      summary: Assign one of the merchant's unmatched bank payins to an account
      description: >-
        Attributes the payin to the selected account's active payin method on
        the payin's rail; PaymentGW replays it as a normal settlement. The
        account must belong to the authenticated merchant.
      parameters:
        - name: id
          in: path
          description: Unmatched bank payin id
          required: true
          schema:
            type: integer
      requestBody:
        description: Payin method to attribute the funds to
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dto.AssignUnmatchedBankPayinRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.UnmatchedBankPayinResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httperror.ErrResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httperror.ErrResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httperror.ErrResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httperror.ErrResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httperror.ErrResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httperror.ErrResponse'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httperror.ErrResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    dto.AssignUnmatchedBankPayinRequest:
      required:
        - accountId
      type: object
      properties:
        accountId:
          type: string
          example: 6bfb8f77-cd67-4379-a508-4227af2e5c7f
    dto.UnmatchedBankPayinResponse:
      type: object
      properties:
        amount:
          type: integer
          example: 150000
        concept:
          type: string
          example: REF-UNKNOWN
        createdAt:
          type: string
          example: '2026-07-08T12:34:56.789Z'
        currency:
          type: string
          example: EUR
        destinationAbaRoutingCode:
          type: string
          example: '271582611'
        destinationAccountHolder:
          type: string
          example: TechStore MX S.A.
        destinationAccountNumber:
          type: string
          example: '84121024291'
        destinationBankName:
          type: string
          example: Nilos Bank
        destinationIban:
          type: string
          example: ES9821000418450200051332
        destinationSwift:
          type: string
          example: ZEITPRSJXXX
        id:
          type: integer
          example: 42
        merchant:
          $ref: '#/components/schemas/dto.MerchantSummary'
        order:
          $ref: '#/components/schemas/dto.UnmatchedOrderSummary'
        rail:
          type: string
          example: SEPA
        reason:
          type: string
          example: NO_MATCHING_METHOD
        rejectReason:
          type: string
          example: Sender not recognized
        resolvedAt:
          type: string
          example: '2026-07-08T13:00:00.000Z'
        resolvedPayinMethodId:
          type: string
          example: 6bfb8f77-cd67-4379-a508-4227af2e5c7f
        senderAccount:
          type: string
          example: ES9121000418450200051332
        senderName:
          type: string
          example: Jane Doe
        state:
          type: string
          example: PENDING
    httperror.ErrResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/httperror.ErrorData'
    dto.MerchantSummary:
      type: object
      properties:
        id:
          type: integer
          example: 305
        name:
          type: string
          example: TechStore MX
    dto.UnmatchedOrderSummary:
      type: object
      properties:
        amount:
          type: integer
          example: 5720
        createdAt:
          type: string
          example: '2026-07-09T14:07:59.000Z'
        currency:
          type: string
          example: EUR
        id:
          type: string
          example: 9c1b8f77-cd67-4379-a508-4227af2e5c7f
        reference:
          type: string
          example: TPX-2026-000123
        settledAt:
          type: string
          example: '2026-07-09T14:07:59.000Z'
        state:
          type: string
          example: SETTLED
    httperror.ErrorData:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/httperror.ErrorCode'
        details:
          type: array
          items:
            $ref: '#/components/schemas/httperror.ErrorDetails'
        message:
          type: string
        type:
          $ref: '#/components/schemas/httperror.ErrorType'
    httperror.ErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - UNAUTHORIZED
        - FORBIDDEN
        - NOT_FOUND
        - INTERNAL_SERVER_ERROR
        - UNKNOWN_ERROR
        - NOT_IMPLEMENTED
        - TOO_MANY_REQUESTS
        - QUOTE_EXPIRED
        - BAD_GATEWAY
      x-enum-varnames:
        - InvalidRequestCode
        - UnauthorizedCode
        - ForbiddenCode
        - NotFoundCode
        - InternalServerCode
        - UnknownErrorCode
        - NotImplementedCode
        - TooManyRequestsCode
        - QuoteExpiredCode
        - BadGatewayCode
    httperror.ErrorDetails:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
    httperror.ErrorType:
      type: string
      enum:
        - VALIDATION_ERROR
        - CONFLICT_ERROR
        - UNPROCESSABLE_ERROR
        - AUTHENTICATION_ERROR
        - AUTHORIZATION_ERROR
        - NOT_FOUND_ERROR
        - INTERNAL_ERROR
        - NOT_IMPLEMENTED_ERROR
        - UNKNOWN_ERROR
        - RATE_LIMIT_ERROR
        - BAD_GATEWAY_ERROR
      x-enum-varnames:
        - ValidationError
        - ConflictError
        - UnprocessableError
        - AuthenticationError
        - AuthorizationError
        - NotFoundError
        - InternalError
        - NotImplementedError
        - UnknownError
        - RateLimitError
        - BadGatewayError
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Key for accessing management endpoints
      x-mint-auth-type: bearer

````