---
updatedAt: 2026-07-24T10:24:02.000Z
agentTools:
  projectIndex: https://devportal.fintensy.com/llms.txt
---

# Initializes a payment flow through Digiteal.

POST: /api/payments

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "Mozzeno API definitions",
    "description": "An overview of the API definitions used in the Mozzeno application.",
    "contact": {
      "name": "Fintensy",
      "url": "https://www.fintensy.com/"
    },
    "version": "v1"
  },
  "paths": {
    "/api/payments": {
      "post": {
        "tags": [
          "Payments"
        ],
        "summary": "Initializes a payment flow through Digiteal.",
        "description": "POST: /api/payments",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Mozzeno_Web_Api_Contracts_Models_Payments_ConnectInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Mozzeno_Web_Api_Contracts_Models_Payments_ConnectInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The entity has been created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The input model is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mozzeno_Web_Api_ErrorModel"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Mozzeno_Enums_CallerType": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "0 = Borrower, 1 = Investor, 2 = Reseller, 3 = SelfServiceObs",
        "format": "int32"
      },
      "Mozzeno_Web_Api_Contracts_Models_Payments_ConnectInputModel": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/Mozzeno_Enums_CallerType"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "reference_id": {
            "type": "string",
            "format": "uuid"
          },
          "actor_id": {
            "type": "string",
            "format": "uuid"
          },
          "reference": {
            "type": "string",
            "nullable": true
          },
          "referrer": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Mozzeno_Web_Api_ErrorInformationModel": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "nullable": true
          },
          "actual_value": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "min_length": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "max_length": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Mozzeno_Web_Api_ErrorModel": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Mozzeno_Web_Api_ErrorInformationModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}
```