POST api/vouchers/assign-voucher
Request Information
URI Parameters
None.
Body Parameters
AssignVoucherToSaleData| Name | Description | Type | Additional information |
|---|---|---|---|
| SaleType | SaleTypeEnum |
None. |
|
| SaleNumber | integer |
None. |
|
| Concepto | integer |
None. |
|
| DocTipo | integer |
None. |
|
| DocNro | integer |
None. |
|
| CbteDesde | integer |
None. |
|
| CbteHasta | integer |
None. |
|
| CbteFch | string |
None. |
|
| ImpTotal | decimal number |
None. |
|
| ImpTotConc | decimal number |
None. |
|
| ImpNeto | decimal number |
None. |
|
| ImpOpEx | decimal number |
None. |
|
| ImpTrib | decimal number |
None. |
|
| ImpIVA | decimal number |
None. |
|
| FchServDesde | string |
None. |
|
| FchServHasta | string |
None. |
|
| FchVtoPago | string |
None. |
|
| MonId | string |
None. |
|
| MonCotiz | decimal number |
None. |
|
| CodAutorizacion | string |
None. |
|
| EmisionTipo | string |
None. |
|
| FchVto | string |
None. |
|
| FchProceso | string |
None. |
|
| Observaciones | Collection of string |
None. |
|
| PtoVta | integer |
None. |
|
| CbteTipo | integer |
None. |
|
| SaleID | integer |
None. |
|
| VoucherID | integer |
None. |
|
| SalePointID | integer |
None. |
|
| ClientID | integer |
None. |
|
| PriceListID | integer |
None. |
|
| CbteNumero | string |
None. |
|
| CbteFecha | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"SaleType": 0,
"SaleNumber": 1,
"Concepto": 1,
"DocTipo": 1,
"DocNro": 1,
"CbteDesde": 1,
"CbteHasta": 1,
"CbteFch": "sample string 1",
"ImpTotal": 1.1,
"ImpTotConc": 1.1,
"ImpNeto": 1.1,
"ImpOpEx": 1.1,
"ImpTrib": 1.1,
"ImpIVA": 1.1,
"FchServDesde": "sample string 2",
"FchServHasta": "sample string 3",
"FchVtoPago": "sample string 4",
"MonId": "sample string 5",
"MonCotiz": 1.1,
"CodAutorizacion": "sample string 6",
"EmisionTipo": "sample string 7",
"FchVto": "sample string 8",
"FchProceso": "sample string 9",
"Observaciones": [
"sample string 1",
"sample string 2"
],
"PtoVta": 1,
"CbteTipo": 1,
"SaleID": 1,
"VoucherID": 1,
"SalePointID": 1,
"ClientID": 1,
"PriceListID": 1,
"CbteNumero": "00001-00000001",
"CbteFecha": " s/le/samp"
}
text/xml
Sample:
<AssignVoucherToSaleData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data.AFIP">
<CbteDesde>1</CbteDesde>
<CbteFch>sample string 1</CbteFch>
<CbteHasta>1</CbteHasta>
<CbteTipo>1</CbteTipo>
<ClientID>1</ClientID>
<CodAutorizacion>sample string 6</CodAutorizacion>
<Concepto>1</Concepto>
<DocNro>1</DocNro>
<DocTipo>1</DocTipo>
<EmisionTipo>sample string 7</EmisionTipo>
<FchProceso>sample string 9</FchProceso>
<FchServDesde>sample string 2</FchServDesde>
<FchServHasta>sample string 3</FchServHasta>
<FchVto>sample string 8</FchVto>
<FchVtoPago>sample string 4</FchVtoPago>
<ImpIVA>1.1</ImpIVA>
<ImpNeto>1.1</ImpNeto>
<ImpOpEx>1.1</ImpOpEx>
<ImpTotConc>1.1</ImpTotConc>
<ImpTotal>1.1</ImpTotal>
<ImpTrib>1.1</ImpTrib>
<MonCotiz>1.1</MonCotiz>
<MonId>sample string 5</MonId>
<Observaciones xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Observaciones>
<PriceListID>1</PriceListID>
<PtoVta>1</PtoVta>
<SaleID>1</SaleID>
<SalePointID>1</SalePointID>
<VoucherID>1</VoucherID>
<SaleNumber>1</SaleNumber>
<SaleType>SALE</SaleType>
</AssignVoucherToSaleData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VoucherDeepData| Name | Description | Type | Additional information |
|---|---|---|---|
| VoucherItems | Collection of VoucherItemData |
None. |
|
| PaymentList | Collection of TransactionPaymentData |
None. |
|
| IVAExcentoAmount | decimal number |
None. |
|
| IVA025Amount | decimal number |
None. |
|
| IVA05Amount | decimal number |
None. |
|
| IVA105Amount | decimal number |
None. |
|
| IVA21Amount | decimal number |
None. |
|
| IVA27Amount | decimal number |
None. |
|
| SaleID | integer |
None. |
|
| SalePointID | integer |
None. |
|
| SalePointNumber | integer |
None. |
|
| VoucherTypeID | integer |
None. |
|
| VoucherAfipCodeEnum | VoucherAfipCodeEnum |
None. |
|
| Date | date |
None. |
|
| Number | integer |
None. |
|
| ClientID | integer |
None. |
|
| ClientName | string |
None. |
|
| CityName | string |
None. |
|
| ProvinceName | string |
None. |
|
| StreenNameAndNumber | string |
None. |
|
| IdentificationDocumentTypeID | integer |
None. |
|
| IdentificationDocumentTypeCode | string |
None. |
|
| IdentificationDocumentValue | string |
None. |
|
| ResponsibleTypeAfipCode | integer |
None. |
|
| ResponsibleTypeName | string |
None. |
|
| NetoGravado | decimal number |
None. |
|
| NetoExcento | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| TotalWithoutTax | decimal number |
None. |
|
| IVAAmount | decimal number |
None. |
|
| IIBBAlicuota | decimal number |
None. |
|
| IIBBPerception | decimal number |
None. |
|
| Total | decimal number |
None. |
|
| Comment | string |
None. |
|
| AFIPValidated | boolean |
None. |
|
| DateOfAFIPValidate | date |
None. |
|
| DateOfCAEExpire | date |
None. |
|
| CAE | string |
None. |
|
| ResponseOfAFIP | string |
None. |
|
| VoucherTypeToStr | string |
None. |
|
| SalePointNumberToStr | string |
None. |
|
| NumberToStr | string |
None. |
|
| IsElectronic | boolean |
None. |
|
| HasElectronicBarCode | boolean |
None. |
|
| DateToStr | string |
None. |
|
| TimeToStr | string |
None. |
|
| NetoGravadoWithSign | decimal number |
None. |
|
| NetoExcentoWithSign | decimal number |
None. |
|
| TotalWithSign | decimal number |
None. |
|
| IVAAmountVoucherType | decimal number |
None. |
|
| Subtotal_VoucherA | decimal number |
None. |
|
| Subtotal_VoucherBoC | decimal number |
None. |
|
| TaxITCAmount | decimal number |
None. |
|
| TaxIDCAmount | decimal number |
None. |
|
| RG5329Alicuota | decimal number |
None. |
|
| RG5329Ammount | decimal number |
None. |
|
| TaxPerRetGanancias | decimal number |
None. |
|
| TaxPerRetIIBB | decimal number |
None. |
|
| TaxPerRetIVA | decimal number |
None. |
|
| TaxInternals | decimal number |
None. |
|
| TaxMunicipales | decimal number |
None. |
|
| TotalOtherTaxs_VoucherA | decimal number |
None. |
|
| TotalOtherTaxs_VoucherBoC | decimal number |
None. |
|
| ID | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"VoucherItems": [
{
"VoucherID": 1,
"Code": "sample string 1",
"Description": "sample string 2",
"Lote": "sample string 3",
"ExpirationDate": "2026-02-04T03:01:27.339448+00:00",
"Quantity": 1.0,
"Price": 1.0,
"SubTotal": 1.0,
"PercentageDiscount": 1.0,
"AmountDiscount": 1.0,
"IVAAlicuota": 1.0,
"IVAAmount": 1.0,
"TaxITCAmount": 1.0,
"TaxIDCAmount": 1.0,
"Total": 1.0,
"ConceptCode": "sample string 4",
"BarCode": "sample string 5",
"TotalAmountByUnit": 1.0,
"PriceWithDiscount": 0.0,
"UnitNetPrice_VoucherA": 1.99,
"TotalNetPriceWithDiscount": -2.0,
"TotalConIVASinOtrosImpuestos": -1.0,
"ID": 1
},
{
"VoucherID": 1,
"Code": "sample string 1",
"Description": "sample string 2",
"Lote": "sample string 3",
"ExpirationDate": "2026-02-04T03:01:27.339448+00:00",
"Quantity": 1.0,
"Price": 1.0,
"SubTotal": 1.0,
"PercentageDiscount": 1.0,
"AmountDiscount": 1.0,
"IVAAlicuota": 1.0,
"IVAAmount": 1.0,
"TaxITCAmount": 1.0,
"TaxIDCAmount": 1.0,
"Total": 1.0,
"ConceptCode": "sample string 4",
"BarCode": "sample string 5",
"TotalAmountByUnit": 1.0,
"PriceWithDiscount": 0.0,
"UnitNetPrice_VoucherA": 1.99,
"TotalNetPriceWithDiscount": -2.0,
"TotalConIVASinOtrosImpuestos": -1.0,
"ID": 1
}
],
"PaymentList": [
{
"SaleID": 1,
"PurchaseID": 1,
"MethodOfPayment": 0,
"Date": "2026-02-04T03:01:27.339448+00:00",
"CurrencyCode": 0,
"Ammount": 3.0,
"ConvertionRatio": 1.0,
"Description": "sample string 1",
"Comment": "sample string 2",
"AmmountToDecimal": 3.0,
"AmmountInPesosToDecimal": 3.0,
"AmmountToStr": "3,00",
"ID": 1
},
{
"SaleID": 1,
"PurchaseID": 1,
"MethodOfPayment": 0,
"Date": "2026-02-04T03:01:27.339448+00:00",
"CurrencyCode": 0,
"Ammount": 3.0,
"ConvertionRatio": 1.0,
"Description": "sample string 1",
"Comment": "sample string 2",
"AmmountToDecimal": 3.0,
"AmmountInPesosToDecimal": 3.0,
"AmmountToStr": "3,00",
"ID": 1
}
],
"IVAExcentoAmount": 0.0,
"IVA025Amount": 0.0,
"IVA05Amount": 0.0,
"IVA105Amount": 0.0,
"IVA21Amount": 0.0,
"IVA27Amount": 0.0,
"SaleID": 1,
"SalePointID": 1,
"SalePointNumber": 1,
"VoucherTypeID": 1,
"VoucherAfipCodeEnum": 1,
"Date": "2026-02-04T03:01:27.339448+00:00",
"Number": 1,
"ClientID": 1,
"ClientName": "sample string 1",
"CityName": "sample string 2",
"ProvinceName": "sample string 3",
"StreenNameAndNumber": "sample string 4",
"IdentificationDocumentTypeID": 1,
"IdentificationDocumentTypeCode": "sample string 5",
"IdentificationDocumentValue": "sample string 6",
"ResponsibleTypeAfipCode": 7,
"ResponsibleTypeName": "sample string 8",
"NetoGravado": 1.0,
"NetoExcento": 1.0,
"Discount": 1.0,
"TotalWithoutTax": 1.0,
"IVAAmount": 1.0,
"IIBBAlicuota": 1.0,
"IIBBPerception": 1.0,
"Total": 1.0,
"Comment": "sample string 9",
"AFIPValidated": true,
"DateOfAFIPValidate": "2026-02-04T03:01:27.339448+00:00",
"DateOfCAEExpire": "2026-02-04T03:01:27.339448+00:00",
"CAE": "sample string 10",
"ResponseOfAFIP": "sample string 11",
"VoucherTypeToStr": "Factura A",
"SalePointNumberToStr": "00001",
"NumberToStr": "00000001",
"IsElectronic": true,
"HasElectronicBarCode": true,
"DateToStr": "04/02/2026",
"TimeToStr": "03:01",
"NetoGravadoWithSign": 1.0,
"NetoExcentoWithSign": 1.0,
"TotalWithSign": 1.0,
"IVAAmountVoucherType": 1.0,
"Subtotal_VoucherA": 0.0,
"Subtotal_VoucherBoC": 5.0,
"TaxITCAmount": 1.0,
"TaxIDCAmount": 1.0,
"RG5329Alicuota": 1.0,
"RG5329Ammount": 1.0,
"TaxPerRetGanancias": 1.0,
"TaxPerRetIIBB": 1.0,
"TaxPerRetIVA": 1.0,
"TaxInternals": 1.0,
"TaxMunicipales": 1.0,
"TotalOtherTaxs_VoucherA": 8.0,
"TotalOtherTaxs_VoucherBoC": 5.0,
"ID": 1
}
text/xml
Sample:
<VoucherDeepData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data">
<ID>1</ID>
<AFIPValidated>true</AFIPValidated>
<CAE>sample string 10</CAE>
<CityName>sample string 2</CityName>
<ClientID>1</ClientID>
<ClientName>sample string 1</ClientName>
<Comment>sample string 9</Comment>
<Date>2026-02-04T03:01:27.339448+00:00</Date>
<DateOfAFIPValidate>2026-02-04T03:01:27.339448+00:00</DateOfAFIPValidate>
<DateOfCAEExpire>2026-02-04T03:01:27.339448+00:00</DateOfCAEExpire>
<Discount>1</Discount>
<IIBBAlicuota>1</IIBBAlicuota>
<IIBBPerception>1</IIBBPerception>
<IVAAmount>1</IVAAmount>
<IdentificationDocumentTypeCode>sample string 5</IdentificationDocumentTypeCode>
<IdentificationDocumentTypeID>1</IdentificationDocumentTypeID>
<IdentificationDocumentValue>sample string 6</IdentificationDocumentValue>
<NetoExcento>1</NetoExcento>
<NetoGravado>1</NetoGravado>
<Number>1</Number>
<ProvinceName>sample string 3</ProvinceName>
<RG5329Alicuota>1</RG5329Alicuota>
<RG5329Ammount>1</RG5329Ammount>
<ResponseOfAFIP>sample string 11</ResponseOfAFIP>
<ResponsibleTypeAfipCode>7</ResponsibleTypeAfipCode>
<ResponsibleTypeName>sample string 8</ResponsibleTypeName>
<SaleID>1</SaleID>
<SalePointID>1</SalePointID>
<SalePointNumber>1</SalePointNumber>
<StreenNameAndNumber>sample string 4</StreenNameAndNumber>
<TaxIDCAmount>1</TaxIDCAmount>
<TaxITCAmount>1</TaxITCAmount>
<TaxInternals>1</TaxInternals>
<TaxMunicipales>1</TaxMunicipales>
<TaxPerRetGanancias>1</TaxPerRetGanancias>
<TaxPerRetIIBB>1</TaxPerRetIIBB>
<TaxPerRetIVA>1</TaxPerRetIVA>
<Total>1</Total>
<TotalWithoutTax>1</TotalWithoutTax>
<VoucherAfipCodeEnum>FacturaA</VoucherAfipCodeEnum>
<VoucherTypeID>1</VoucherTypeID>
<PaymentList>
<TransactionPaymentData>
<ID>1</ID>
<Ammount>3</Ammount>
<AmmountToDecimal>3</AmmountToDecimal>
<Comment>sample string 2</Comment>
<ConvertionRatio>1</ConvertionRatio>
<CurrencyCode>ARS</CurrencyCode>
<Date>2026-02-04T03:01:27.339448+00:00</Date>
<Description>sample string 1</Description>
<MethodOfPayment>EFECTIVO</MethodOfPayment>
<PurchaseID>1</PurchaseID>
<SaleID>1</SaleID>
</TransactionPaymentData>
<TransactionPaymentData>
<ID>1</ID>
<Ammount>3</Ammount>
<AmmountToDecimal>3</AmmountToDecimal>
<Comment>sample string 2</Comment>
<ConvertionRatio>1</ConvertionRatio>
<CurrencyCode>ARS</CurrencyCode>
<Date>2026-02-04T03:01:27.339448+00:00</Date>
<Description>sample string 1</Description>
<MethodOfPayment>EFECTIVO</MethodOfPayment>
<PurchaseID>1</PurchaseID>
<SaleID>1</SaleID>
</TransactionPaymentData>
</PaymentList>
<VoucherItems>
<VoucherItemData>
<ID>1</ID>
<AmountDiscount>1</AmountDiscount>
<BarCode>sample string 5</BarCode>
<Code>sample string 1</Code>
<ConceptCode>sample string 4</ConceptCode>
<Description>sample string 2</Description>
<ExpirationDate>2026-02-04T03:01:27.339448+00:00</ExpirationDate>
<IVAAlicuota>1</IVAAlicuota>
<IVAAmount>1</IVAAmount>
<Lote>sample string 3</Lote>
<PercentageDiscount>1</PercentageDiscount>
<Price>1</Price>
<Quantity>1</Quantity>
<SubTotal>1</SubTotal>
<TaxIDCAmount>1</TaxIDCAmount>
<TaxITCAmount>1</TaxITCAmount>
<Total>1</Total>
<VoucherID>1</VoucherID>
</VoucherItemData>
<VoucherItemData>
<ID>1</ID>
<AmountDiscount>1</AmountDiscount>
<BarCode>sample string 5</BarCode>
<Code>sample string 1</Code>
<ConceptCode>sample string 4</ConceptCode>
<Description>sample string 2</Description>
<ExpirationDate>2026-02-04T03:01:27.339448+00:00</ExpirationDate>
<IVAAlicuota>1</IVAAlicuota>
<IVAAmount>1</IVAAmount>
<Lote>sample string 3</Lote>
<PercentageDiscount>1</PercentageDiscount>
<Price>1</Price>
<Quantity>1</Quantity>
<SubTotal>1</SubTotal>
<TaxIDCAmount>1</TaxIDCAmount>
<TaxITCAmount>1</TaxITCAmount>
<Total>1</Total>
<VoucherID>1</VoucherID>
</VoucherItemData>
</VoucherItems>
</VoucherDeepData>