POST api/vouchers/cancel
Request Information
URI Parameters
None.
Body Parameters
VoucherData| Name | Description | Type | Additional information |
|---|---|---|---|
| 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. |
Request Formats
application/json, text/json
Sample:
{
"SaleID": 1,
"SalePointID": 1,
"SalePointNumber": 1,
"VoucherTypeID": 1,
"VoucherAfipCodeEnum": 1,
"Date": "2026-02-04T03:00:19.8694306+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:00:19.8694306+00:00",
"DateOfCAEExpire": "2026-02-04T03:00:19.8694306+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:00",
"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:
<VoucherData 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:00:19.8694306+00:00</Date> <DateOfAFIPValidate>2026-02-04T03:00:19.8694306+00:00</DateOfAFIPValidate> <DateOfCAEExpire>2026-02-04T03:00:19.8694306+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> </VoucherData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.