POST api/Facturas

Request Information

URI Parameters

None.

Body Parameters

Facturas
NameDescriptionTypeAdditional information
FacturaID

integer

None.

Secuencial

string

Required

String length: inclusive between 15 and 15

DateFactura

date

None.

ClienteID

integer

None.

FacturaStatus

OrderStatus

None.

PorIva

decimal number

Required

Data type: Currency

SubTotal

decimal number

Required

Data type: Currency

PorDescuento

decimal number

Required

Data type: Currency

Descuento

decimal number

Required

Data type: Currency

SubDescuento

decimal number

Required

Data type: Currency

Base0

decimal number

Required

Data type: Currency

BaseIva

decimal number

Required

Data type: Currency

Iva

decimal number

Required

Data type: Currency

Otros

decimal number

Required

Data type: Currency

Total

decimal number

Required

Data type: Currency

Saldo

decimal number

Required

Data type: Currency

ClaveAcceso

string

String length: inclusive between 0 and 49

Autorizacion

string

String length: inclusive between 0 and 49

Notas

string

Required

String length: inclusive between 3 and 200

EstadoRecepcion

string

String length: inclusive between 0 and 20

EstadoAutorizacion

string

String length: inclusive between 0 and 20

EmpresasID

integer

None.

SucursalID

integer

None.

BodegaID

integer

None.

Cliente

Cliente

None.

Sucursales

Sucursales

None.

Bodegas

Bodegas

None.

FacturasDetalles

Collection of FacturasDetalle

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'Bodegas' with type 'Modelos.Modelo.Bodegas'. Path 'Bodegas.Orders[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'Bodegas' with type 'Modelos.Modelo.Bodegas'. Path 'Bodegas.Orders[0]'.

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 'Facturas'.

Response Information

Resource Description

Facturas
NameDescriptionTypeAdditional information
FacturaID

integer

None.

Secuencial

string

Required

String length: inclusive between 15 and 15

DateFactura

date

None.

ClienteID

integer

None.

FacturaStatus

OrderStatus

None.

PorIva

decimal number

Required

Data type: Currency

SubTotal

decimal number

Required

Data type: Currency

PorDescuento

decimal number

Required

Data type: Currency

Descuento

decimal number

Required

Data type: Currency

SubDescuento

decimal number

Required

Data type: Currency

Base0

decimal number

Required

Data type: Currency

BaseIva

decimal number

Required

Data type: Currency

Iva

decimal number

Required

Data type: Currency

Otros

decimal number

Required

Data type: Currency

Total

decimal number

Required

Data type: Currency

Saldo

decimal number

Required

Data type: Currency

ClaveAcceso

string

String length: inclusive between 0 and 49

Autorizacion

string

String length: inclusive between 0 and 49

Notas

string

Required

String length: inclusive between 3 and 200

EstadoRecepcion

string

String length: inclusive between 0 and 20

EstadoAutorizacion

string

String length: inclusive between 0 and 20

EmpresasID

integer

None.

SucursalID

integer

None.

BodegaID

integer

None.

Cliente

Cliente

None.

Sucursales

Sucursales

None.

Bodegas

Bodegas

None.

FacturasDetalles

Collection of FacturasDetalle

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'Bodegas' with type 'Modelos.Modelo.Bodegas'. Path 'Bodegas.Orders[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'Bodegas' with type 'Modelos.Modelo.Bodegas'. Path 'Bodegas.Orders[0]'.