---
agentTools:
  projectIndex: https://upblock.readme.io/llms.txt
---

# /api/transactions/pay-ins

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/api/transactions/pay-ins": {
      "post": {
        "operationId": "PayInController_create",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PayInCardCreateArgs"
                  },
                  {
                    "$ref": "#/components/schemas/PayInCreateArgs"
                  }
                ],
                "discriminator": {
                  "propertyName": "flow",
                  "mapping": {
                    "CARD": "#/components/schemas/PayInCardCreateArgs",
                    "BANK": "#/components/schemas/PayInCreateArgs"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PayInCardEntity"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "flow",
                    "mapping": {
                      "CARD": "#/components/schemas/PayInCardEntity"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "pay-ins"
        ],
        "security": [
          {
            "API-Key": []
          },
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "Upblock",
    "description": "Upblock API description",
    "version": "1.0",
    "contact": {}
  },
  "servers": [],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      },
      "API-Key": {
        "type": "apiKey",
        "in": "header",
        "name": "API-Key"
      }
    },
    "schemas": {
      "Currency": {
        "type": "string",
        "enum": [
          "EUR",
          "RON"
        ]
      },
      "TransactionType": {
        "type": "string",
        "enum": [
          "PAY_IN",
          "PAY_OUT"
        ]
      },
      "PayInFlow": {
        "type": "string",
        "enum": [
          "CARD",
          "BANK"
        ]
      },
      "PayInStatus": {
        "type": "string",
        "enum": [
          "CREATED",
          "PROCESSING",
          "SUCCESS",
          "FAILURE"
        ]
      },
      "PayInCardAcquirer": {
        "type": "string",
        "enum": [
          "CLEARHAUS"
        ]
      },
      "PayInCardEntity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "accountId": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/TransactionType"
          },
          "creationDate": {
            "format": "date-time",
            "type": "string"
          },
          "modificationDate": {
            "format": "date-time",
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "flow": {
            "$ref": "#/components/schemas/PayInFlow"
          },
          "status": {
            "$ref": "#/components/schemas/PayInStatus"
          },
          "acquirer": {
            "$ref": "#/components/schemas/PayInCardAcquirer"
          }
        },
        "required": [
          "id",
          "accountId",
          "type",
          "creationDate",
          "modificationDate",
          "value",
          "currency",
          "flow",
          "status",
          "acquirer"
        ]
      },
      "PayInCardCreateArgs": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "flow": {
            "$ref": "#/components/schemas/PayInFlow"
          },
          "acquirer": {
            "$ref": "#/components/schemas/PayInCardAcquirer"
          }
        },
        "required": [
          "accountId",
          "value",
          "currency",
          "flow",
          "acquirer"
        ]
      },
      "PayInCreateArgs": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "flow": {
            "$ref": "#/components/schemas/PayInFlow"
          }
        },
        "required": [
          "accountId",
          "value",
          "currency",
          "flow"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 65,
      "2": 213,
      "3": 244,
      "4": 21,
      "5": 73,
      "6": 149,
      "7": 0,
      "8": 16,
      "9": 33,
      "10": 54,
      "11": 251
    }
  }
}
```