---
updatedAt: 2026-08-23T09:05:53.000Z
agentTools:
  projectIndex: https://apidocs.mybanx.io/llms.txt
---

# /v{version}/bankaccounts/{bankAccountId}/requesttopay

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "mybanx",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://api.mybanx.io/"
    }
  ],
  "paths": {
    "/v{version}/bankaccounts/{bankAccountId}/requesttopay": {
      "post": {
        "tags": [
          "RequestToPay"
        ],
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPay"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPay"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPay"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPayResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "myBanks.API.DTO.RequestToPay": {
        "type": "object",
        "properties": {
          "redirectURL": {
            "type": "string",
            "nullable": true
          },
          "notifyEmail": {
            "type": "string",
            "nullable": true
          },
          "allowRetry": {
            "type": "boolean",
            "nullable": true
          },
          "uniqueRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/myBanks.API.DTO.UniqueRequestToPay"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "myBanks.API.DTO.RequestToPayResponse": {
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "uniqueRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/myBanks.API.DTO.UniqueRequestResponse"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "myBanks.API.DTO.UniqueRequestResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "qrCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "myBanks.API.DTO.UniqueRequestToPay": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double"
          },
          "counterpartName": {
            "type": "string",
            "nullable": true
          },
          "counterpartyBankAccount": {
            "type": "string",
            "nullable": true
          },
          "counterpartEmail": {
            "type": "string",
            "nullable": true
          },
          "counterpartCountryId": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "remittanceStructuredRef": {
            "type": "string",
            "nullable": true
          },
          "remittanceUnstructured": {
            "type": "string",
            "nullable": true
          },
          "end2EndId": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "documentURL": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "JWT Authorization header using the Bearer scheme.",
        "name": "Authorization",
        "in": "header"
      }
    }
  }
}
```