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

# Crear Cuenta Bancaria

Crear una nueva cuenta bancaria de un cliente.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Versión 1",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.appsat.net/v1/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/ClientesCuentasBancarias/": {
      "post": {
        "summary": "Crear Cuenta Bancaria",
        "description": "Crear una nueva cuenta bancaria de un cliente.",
        "operationId": "crear-cuenta-bancaria",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "empresa_id",
                  "sucursal_id",
                  "cliente_id",
                  "cliente_cuenta_bancaria_iban",
                  "cliente_cuenta_bancaria_swift_bic",
                  "cliente_cuenta_bancaria_titular",
                  "cliente_cuenta_bancaria_entidad",
                  "cliente_cuenta_bancaria_principal"
                ],
                "properties": {
                  "empresa_id": {
                    "type": "integer",
                    "default": 1,
                    "format": "int32"
                  },
                  "sucursal_id": {
                    "type": "integer",
                    "default": 1,
                    "format": "int32"
                  },
                  "cliente_id": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "cliente_cuenta_bancaria_iban": {
                    "type": "string"
                  },
                  "cliente_cuenta_bancaria_swift_bic": {
                    "type": "string"
                  },
                  "cliente_cuenta_bancaria_titular": {
                    "type": "string"
                  },
                  "cliente_cuenta_bancaria_entidad": {
                    "type": "string"
                  },
                  "cliente_cuenta_bancaria_principal": {
                    "type": "string",
                    "description": "(Opciones: 0 = alternativa | 1 = cuenta de facturación)",
                    "enum": [
                      "0",
                      "1"
                    ]
                  },
                  "cliente_cuenta_bancaria_fecha_add": {
                    "type": "string",
                    "format": "date"
                  },
                  "cliente_cuenta_bancaria_fecha_upd": {
                    "type": "string",
                    "format": "date"
                  },
                  "cliente_cuenta_bancaria_custom_id": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "[{\n  \"status\": \"1\",\n  \"cliente_id\": 5751,\n  \"cliente_cuenta_bancaria_id\": 19996,\n  \"info\": \"Creado\"\n}]"
                  }
                },
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "example": "1"
                      },
                      "cliente_id": {
                        "type": "integer",
                        "example": 5751,
                        "default": 0
                      },
                      "cliente_cuenta_bancaria_id": {
                        "type": "integer",
                        "example": 19996,
                        "default": 0
                      },
                      "info": {
                        "type": "string",
                        "example": "Creado"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "[{\n  \"status\": \"0\",\n  \"info\": \"Motivo del error.\"\n}]"
                  }
                },
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "example": "0"
                      },
                      "info": {
                        "type": "string",
                        "example": "Motivo del error."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6249a970e7ba9200a7260544:5f70c011c59be20027606187"
}
```