v1
latestOpenAPI 3.0.32026-07-24770565.1 KBCompras y gastos electrónicos
Emitir Compras Electrónicas (41)
Emitir Compras Electrónicas (41)
post/purchases
Request body
Example request
{
"company": {
"id": "01FVJ1528AQRBC7D6K2TGVE5S5"
},
"idDoc": {
"encf": "E410000000005",
"sequenceDueDate": "1990-12-31",
"taxAmountIndicator": 1,
"paymentDeadline": "1990-12-31",
"paymentTerm": "72 horas",
"paymentFormsTable": [
{
"paymentAmount": 24300
}
],
"bankPayment": "Banco estatal",
"totalPages": 3
},
"sender": {
"rnc": "133109124",
"companyName": "Mi compañía",
"tradename": "Mi compañía S.A.",
"branchOffice": "Mi sucursal",
"address": "30 De Marzo 9 Sd",
"municipality": "020101",
"province": "020000",
"economicActivity": "Componenetes electrónicos",
"internalInvoiceNumber": "2023",
"internalOrderNumber": "202",
"additionalInformationIssuer": "Información adicional de emisor...",
"stampDate": "1990-12-31"
},
"buyer": {
"rnc": "133109124",
"companyName": "Su compañía",
"contact": "David Pérez",
"address": "30 De Marzo 9 Sd",
"municipality": "020101",
"province": "020000",
"internalCode": "A0001212",
"additionalInformation": "Informacion adicional del proveedor..."
},
"totals": {
"totalTaxedAmount": 4000,
"i1AmountTaxed": 1000,
"i2AmountTaxed": 1000,
"i3AmountTaxed": 1000,
"exemptAmount": 1000,
"itbisS1": 18,
"itbisS2": 16,
"itbisTotal": 340,
"itbis1Total": 180,
"itbis2Total": 160,
"totalAmount": 88757.68,
"amountPeriod": 88757.68,
"previousBalance": 88757.68,
"amountAdvancePayment": 88757.68,
"payValue": 2000,
"itbisTotalRetained": 2000,
"isrTotalRetention": 2000,
"itbisTotalPerception": 2000,
"isrTotalPerception": 2000
},
"otherCurrency": {
"currencyType": "USD",
"exchangeRate": 100.8,
"totalTaxedAmountOtherCurrency": 2000,
"amountTaxed1OtherCurrency": 2000,
"amountTaxed2OtherCurrency": 2000,
"amountTaxed3OtherCurrency": 2000,
"exemptAmountOtherCurrency": 2000,
"itbisTotalOtherCurrency": 2000,
"itbis1TotalOtherCurrency": 2000,
"itbis2TotalOtherCurrency": 2000,
"itbis3TotalOtherCurrency": 2000,
"totalAmountOtherCurrency": 24300
},
"itemDetails": [
{
"lineNumber": 1,
"itemCodeTable": [
{
"codeType": "Interna",
"itemCode": "A001212"
}
],
"retention": {
"itbisAmountWithheld": 24300,
"isrAmountWithheld": 24300
},
"itemName": "Caja de madera",
"itemDescription": "Fabricado con madera de arce canadience",
"quantityItem": 24300,
"elaborationDate": "1990-12-31",
"expirationDateItem": "1990-12-31",
"unitPriceItem": 24300,
"discountAmount": 24300,
"subDiscounts": [
{
"subDiscountAmount": 24300
}
],
"surchargeAmount": 24300,
"subSurcharge": [
{
"subSurchargeAmount": 24300
}
],
"otherCurrencyDetail": {
"priceOtherCurrency": 24300,
"discountOtherCurrency": 24300,
"surchargeAnotherCurrency": 24300,
"amountItemOtherCurrency": 24300
},
"itemAmount": 24300
}
],
"subtotals": [
{
"subTotalNumber": 1,
"subtotalDescription": "Subtotal 1",
"order": 1,
"subTotalAmountTaxedTotal": 24300,
"subTotalAmountTaxedI1": 24300,
"subTotalAmountTaxedI2": 24300,
"subTotalAmountTaxedI3": 24300,
"itbisSubTotal": 24300,
"itbis1SubTotal": 24300,
"itbis2SubTotal": 24300,
"itbis3SubTotal": 24300,
"subTotalAdditionalTax": 24300,
"subTotalExempt": 24300,
"subTotalAmount": 24300,
"lines": 1
}
],
"discountsOrSurcharges": [
{
"lineNumber": 1,
"descriptionDiscountOrSurcharge": "Descuendo por el día de la madre",
"discountAmountOrSurcharge": 24300,
"discountAmountOrSurchargeOtherCurrency": 24300,
"indicatorBillingDiscountOrSurcharge": 1
}
],
"pagination": [
{
"pageNo": 1,
"noLineFrom": 1,
"noLineUntil": 1,
"subtotalAmountTaxedPage": 24300,
"subtotalAmountTaxed1Page": 24300,
"subtotalAmountTaxed2Page": 24300,
"subtotalAmountTaxed3Page": 24300,
"exemptSubtotalPage": 24300,
"itbisSubtotalPage": 24300,
"itbis1SubtotalPage": 24300,
"itbis2SubtotalPage": 24300,
"itbis3SubtotalPage": 24300,
"subtotalAmountPage": 24300
}
],
"informationReference": {
"rncOtherTaxpayer": "101212154",
"ncfModifiedDate": "1990-12-31",
"modificationCode": 4
},
"config": {
"pdf": {
"type": "generic",
"note": "Nota de prueba"
}
}
}Response
Éxito en la creación del documento
Example response
{
"id": "01G021Z3QSRZ58GSTBH7TPGD2J",
"stampDate": "1990-12-31",
"status": "REGISTERED",
"encf": "E310000001727",
"xml": "https://api-alanube-e-provider-dom-test.s3.amazonaws.com/users/baa08af2-5924-4892-8554-0fe8ef561ab8/companies/f92f1ec0-80eb-4873-b06a-57534c678a04/fiscalInvoice/01G02X48J00NBR7GY1DMJ7CJXP.xml?AWSAccessKeyId=ASI...&Expires=1649368860&Signature=QB7y...&x-amz-security-token=IQoJb3J...",
"pdf": "https://api-alanube-e-provider-dom-test.s3.amazonaws.com/users/baa08af2-5924-4892-8554-0fe8ef561ab8/companies/f92f1ec0-80eb-4873-b06a-57534c678a04/fiscalInvoice/pdf/01G02X48J00NBR7GY1DMJ7CJXP.pdf?AWSAccessKeyId=ASI...&Expires=1649368860&Signature=QB7y...&response-content-disposition=attachment%3Bfilename%3DE310000001782.pdf&x-amz-security-token=IQoJb3J...",
"documentStampUrl": "https://ecf.dgii.gov.do/testecf/ConsultaTimbre?RncEmisor=123...&RncComprador=456...&ENCF=E310000001727&FechaEmision=04-04-2022&MontoTotal=1180&FechaFirma=07-04-2022%2016:58:25&CodigoSeguridad=MYUVCT",
"securityCode": "MYUVCT"
}