POST api/Clientes2

Request Information

URI Parameters

None.

Body Parameters

Tb_Clientes
NameDescriptionTypeAdditional information
Id_Cliente

decimal number

None.

Identificacion

decimal number

None.

Id_TipoIdentificacion

integer

None.

Nombres

string

None.

Apellidos

string

None.

Celular

string

None.

Id_compania

decimal number

None.

Direccion

string

None.

Correo

string

None.

Id_Resp_Tributaria

integer

None.

Id_Resp_Fiscal

integer

None.

Predeterminado

string

None.

Tb_TipoIdentificacion

Tb_TipoIdentificacion

None.

Tb_Devoluciones

Collection of Tb_Devoluciones

None.

Request Formats

application/json, text/json

Sample:
{
  "Id_Cliente": 1.0,
  "Identificacion": 2.0,
  "Id_TipoIdentificacion": 3,
  "Nombres": "sample string 4",
  "Apellidos": "sample string 5",
  "Celular": "sample string 6",
  "Id_compania": 7.0,
  "Direccion": "sample string 8",
  "Correo": "sample string 9",
  "Id_Resp_Tributaria": 1,
  "Id_Resp_Fiscal": 1,
  "Predeterminado": "sample string 10",
  "Tb_TipoIdentificacion": {
    "Id_TipoIdentificacion": 1,
    "Tipo_Identificacion": "sample string 2",
    "Tb_Clientes": []
  },
  "Tb_Devoluciones": [
    {
      "Id_Devolucion": 1.0,
      "Fecha_Ventas": "2025-12-29T07:15:31.5503041-05:00",
      "Id_Cliente": 3.0,
      "Consecutivo": 4.0,
      "Id_Factura": 5.0,
      "Estado_Devolucion": "sample string 6",
      "Id_Cajero": 7.0,
      "Id_Compania": 8.0
    },
    {
      "Id_Devolucion": 1.0,
      "Fecha_Ventas": "2025-12-29T07:15:31.5503041-05:00",
      "Id_Cliente": 3.0,
      "Consecutivo": 4.0,
      "Id_Factura": 5.0,
      "Estado_Devolucion": "sample string 6",
      "Id_Cajero": 7.0,
      "Id_Compania": 8.0
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Softmarket_Api.Models.Tb_Devoluciones' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Softmarket_Api.Models.Tb_Devoluciones' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Tb_Clientes'.

Response Information

Resource Description

Tb_Clientes
NameDescriptionTypeAdditional information
Id_Cliente

decimal number

None.

Identificacion

decimal number

None.

Id_TipoIdentificacion

integer

None.

Nombres

string

None.

Apellidos

string

None.

Celular

string

None.

Id_compania

decimal number

None.

Direccion

string

None.

Correo

string

None.

Id_Resp_Tributaria

integer

None.

Id_Resp_Fiscal

integer

None.

Predeterminado

string

None.

Tb_TipoIdentificacion

Tb_TipoIdentificacion

None.

Tb_Devoluciones

Collection of Tb_Devoluciones

None.

Response Formats

application/json, text/json

Sample:
{
  "Id_Cliente": 1.0,
  "Identificacion": 2.0,
  "Id_TipoIdentificacion": 3,
  "Nombres": "sample string 4",
  "Apellidos": "sample string 5",
  "Celular": "sample string 6",
  "Id_compania": 7.0,
  "Direccion": "sample string 8",
  "Correo": "sample string 9",
  "Id_Resp_Tributaria": 1,
  "Id_Resp_Fiscal": 1,
  "Predeterminado": "sample string 10",
  "Tb_TipoIdentificacion": {
    "Id_TipoIdentificacion": 1,
    "Tipo_Identificacion": "sample string 2",
    "Tb_Clientes": []
  },
  "Tb_Devoluciones": [
    {
      "Id_Devolucion": 1.0,
      "Fecha_Ventas": "2025-12-29T07:15:32.1111066-05:00",
      "Id_Cliente": 3.0,
      "Consecutivo": 4.0,
      "Id_Factura": 5.0,
      "Estado_Devolucion": "sample string 6",
      "Id_Cajero": 7.0,
      "Id_Compania": 8.0
    },
    {
      "Id_Devolucion": 1.0,
      "Fecha_Ventas": "2025-12-29T07:15:32.1111066-05:00",
      "Id_Cliente": 3.0,
      "Consecutivo": 4.0,
      "Id_Factura": 5.0,
      "Estado_Devolucion": "sample string 6",
      "Id_Cajero": 7.0,
      "Id_Compania": 8.0
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Softmarket_Api.Models.Tb_Devoluciones' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Softmarket_Api.Models.Tb_Devoluciones' contains cycles and cannot be serialized if reference tracking is disabled.