POST Invoice
Add a new Invoice
Request Information
URI Parameters
None.
Body Parameters
Invoice Request Model information
InvoiceRequestModelName | Description | Type | Additional information |
---|---|---|---|
ReferralGuide |
Guia de Remision (OPCIONAL) |
string |
None. |
SubtotalVat |
Subtotal Iva. Formato decimal 0.00 |
decimal number |
Required |
SubtotalVatZero |
Subtotal IVA 0. Formato decimal 0.00 |
decimal number |
Required |
SubtotalNotSubject |
Subtotal No Objeto. Formato decimal 0.00 |
decimal number |
Required |
SubtotalExempt |
Subtotal Exento. Formato decimal 0.00 |
decimal number |
Required |
Subtotal |
Subtotal. Formato decimal 0.00 |
decimal number |
Required |
TotalDiscount |
Total Descuento. Formato decimal 0.00 |
decimal number |
Required |
SpecialConsumTax |
ICE, Impuesto a los consumos especiales. Special Consum Tax. Formato decimal 0.00 |
decimal number |
Required |
ValueAddedTax |
Valor del IVA. Formato decimal 0.00 |
decimal number |
Required |
Tip |
Propina. Formato decimal 0.00 |
decimal number |
None. |
Payments |
Detalle del metodo de pago para la factura. NOTA: Si no es especificado se asume EFECTIVO. |
Collection of PaymentModel |
None. |
Details |
Detalle de productos de la factura |
Collection of InvoiceDetailModel |
None. |
IssuedOn |
Fecha de Emision del Documento (REQUERIDO) |
string |
Required |
ContributorId |
ID de la lista de Contribuyentes (Opcional, si no existe se lo crea automaticamente con la informacion enviada) |
integer |
None. |
IdentificationType |
Tipo de identificacion del Contribuyente |
string |
None. |
Identification |
Identificacion del Contribuyente |
string |
None. |
ContributorName |
Nombre del Contribuyente |
string |
None. |
Phone |
Telefono del Contribuyente |
string |
None. |
Address |
Direccion del Contribuyente |
string |
None. |
EmailAddresses |
Correos a los que se enviara el documento electronico |
string |
None. |
Currency |
Moneda (DOLAR de forma predeterminada) |
string |
None. |
Reason |
Observaciones |
string |
None. |
Total |
Importe Total del Documento. Formato decimal 0.00 |
decimal number |
None. |
AdditionalFiels |
Campos adicionales |
Collection of AdditionalFieldModel |
None. |
Status |
Estado del documento |
DocumentStatusEnum |
None. |
Request Formats
application/json, text/json
{ "ReferralGuide": "sample string 1", "SubtotalVat": 2.0, "SubtotalVatZero": 3.0, "SubtotalNotSubject": 4.0, "SubtotalExempt": 5.0, "Subtotal": 6.0, "TotalDiscount": 7.0, "SpecialConsumTax": 8.0, "ValueAddedTax": 9.0, "Tip": 10.0, "Payments": [ { "PaymentMethodCode": "sample string 1", "Name": "sample string 2", "Total": 3.0, "Term": 4, "TimeUnit": "sample string 5" }, { "PaymentMethodCode": "sample string 1", "Name": "sample string 2", "Total": 3.0, "Term": 4, "TimeUnit": "sample string 5" } ], "Details": [ { "ProductId": 1, "MainCode": "sample string 2", "AuxCode": "sample string 3", "Description": "sample string 4", "UnitPrice": 5.0, "Amount": 6.0, "Discount": 7.0, "ValueAddedTaxCode": "sample string 8", "ValueAddedTaxValue": 9.0, "SpecialConsumTaxCode": "sample string 10", "SpecialConsumTaxValue": 11.0, "SubTotal": 12.0, "Taxes": [ { "Code": "sample string 1", "PercentageCode": "sample string 2", "Rate": 3.0, "TaxableBase": 4.0, "TaxValue": 5.0 }, { "Code": "sample string 1", "PercentageCode": "sample string 2", "Rate": 3.0, "TaxableBase": 4.0, "TaxValue": 5.0 } ], "Name1": "sample string 13", "Value1": "sample string 14", "Name2": "sample string 15", "Value2": "sample string 16", "Name3": "sample string 17", "Value3": "sample string 18" }, { "ProductId": 1, "MainCode": "sample string 2", "AuxCode": "sample string 3", "Description": "sample string 4", "UnitPrice": 5.0, "Amount": 6.0, "Discount": 7.0, "ValueAddedTaxCode": "sample string 8", "ValueAddedTaxValue": 9.0, "SpecialConsumTaxCode": "sample string 10", "SpecialConsumTaxValue": 11.0, "SubTotal": 12.0, "Taxes": [ { "Code": "sample string 1", "PercentageCode": "sample string 2", "Rate": 3.0, "TaxableBase": 4.0, "TaxValue": 5.0 }, { "Code": "sample string 1", "PercentageCode": "sample string 2", "Rate": 3.0, "TaxableBase": 4.0, "TaxValue": 5.0 } ], "Name1": "sample string 13", "Value1": "sample string 14", "Name2": "sample string 15", "Value2": "sample string 16", "Name3": "sample string 17", "Value3": "sample string 18" } ], "IssuedOn": "sample string 11", "ContributorId": 12, "IdentificationType": "sample string 13", "Identification": "sample string 14", "ContributorName": "sample string 15", "Phone": "sample string 16", "Address": "sample string 17", "EmailAddresses": "sample string 18", "Currency": "sample string 19", "Reason": "sample string 20", "Total": 21.0, "AdditionalFiels": [ { "Name": "sample string 1", "Value": "sample string 2", "LineNumber": 3 }, { "Name": "sample string 1", "Value": "sample string 2", "LineNumber": 3 } ], "Status": 0 }
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Return a Response Message thaht include a HttpStatusCode and the Document Content
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |