Service


Click here for a complete list of operations.

BFEGetCMP

Recupera los datos completos de un comprobante ya autorizado

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /wsbfe/service.asmx HTTP/1.1
Host: wswhomo.afip.gov.ar
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ar.gov.afip.dif.bfe/BFEGetCMP"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <BFEGetCMP xmlns="http://ar.gov.afip.dif.bfe/">
      <Auth>
        <Token>string</Token>
        <Sign>string</Sign>
        <Cuit>long</Cuit>
      </Auth>
      <Cmp>
        <Tipo_cbte>short</Tipo_cbte>
        <Punto_vta>int</Punto_vta>
        <Cbte_nro>long</Cbte_nro>
      </Cmp>
    </BFEGetCMP>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <BFEGetCMPResponse xmlns="http://ar.gov.afip.dif.bfe/">
      <BFEGetCMPResult>
        <BFEResultGet>
          <Id>long</Id>
          <Cuit>long</Cuit>
          <Tipo_doc>short</Tipo_doc>
          <Nro_doc>long</Nro_doc>
          <Tipo_cbte>short</Tipo_cbte>
          <Punto_vta>int</Punto_vta>
          <Cbte_nro>long</Cbte_nro>
          <Imp_total>double</Imp_total>
          <Imp_tot_conc>double</Imp_tot_conc>
          <Imp_neto>double</Imp_neto>
          <Impto_liq>double</Impto_liq>
          <Impto_liq_rni>double</Impto_liq_rni>
          <Imp_op_ex>double</Imp_op_ex>
          <Imp_perc>double</Imp_perc>
          <Imp_iibb>double</Imp_iibb>
          <Imp_perc_mun>double</Imp_perc_mun>
          <Imp_internos>double</Imp_internos>
          <Imp_moneda_Id>string</Imp_moneda_Id>
          <Imp_moneda_ctz>double</Imp_moneda_ctz>
          <Fecha_cbte_orig>string</Fecha_cbte_orig>
          <Fecha_cbte_cae>string</Fecha_cbte_cae>
          <Fch_venc_Cae>string</Fch_venc_Cae>
          <Cae>string</Cae>
          <Resultado>string</Resultado>
          <Obs>string</Obs>
          <Items>
            <Item xsi:nil="true" />
            <Item xsi:nil="true" />
          </Items>
          <CbtesAsoc>
            <CbteAsoc xsi:nil="true" />
            <CbteAsoc xsi:nil="true" />
          </CbtesAsoc>
        </BFEResultGet>
        <BFEErr>
          <ErrCode>int</ErrCode>
          <ErrMsg>string</ErrMsg>
        </BFEErr>
        <BFEEvents>
          <EventCode>int</EventCode>
          <EventMsg>string</EventMsg>
        </BFEEvents>
      </BFEGetCMPResult>
    </BFEGetCMPResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /wsbfe/service.asmx HTTP/1.1
Host: wswhomo.afip.gov.ar
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <BFEGetCMP xmlns="http://ar.gov.afip.dif.bfe/">
      <Auth>
        <Token>string</Token>
        <Sign>string</Sign>
        <Cuit>long</Cuit>
      </Auth>
      <Cmp>
        <Tipo_cbte>short</Tipo_cbte>
        <Punto_vta>int</Punto_vta>
        <Cbte_nro>long</Cbte_nro>
      </Cmp>
    </BFEGetCMP>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <BFEGetCMPResponse xmlns="http://ar.gov.afip.dif.bfe/">
      <BFEGetCMPResult>
        <BFEResultGet>
          <Id>long</Id>
          <Cuit>long</Cuit>
          <Tipo_doc>short</Tipo_doc>
          <Nro_doc>long</Nro_doc>
          <Tipo_cbte>short</Tipo_cbte>
          <Punto_vta>int</Punto_vta>
          <Cbte_nro>long</Cbte_nro>
          <Imp_total>double</Imp_total>
          <Imp_tot_conc>double</Imp_tot_conc>
          <Imp_neto>double</Imp_neto>
          <Impto_liq>double</Impto_liq>
          <Impto_liq_rni>double</Impto_liq_rni>
          <Imp_op_ex>double</Imp_op_ex>
          <Imp_perc>double</Imp_perc>
          <Imp_iibb>double</Imp_iibb>
          <Imp_perc_mun>double</Imp_perc_mun>
          <Imp_internos>double</Imp_internos>
          <Imp_moneda_Id>string</Imp_moneda_Id>
          <Imp_moneda_ctz>double</Imp_moneda_ctz>
          <Fecha_cbte_orig>string</Fecha_cbte_orig>
          <Fecha_cbte_cae>string</Fecha_cbte_cae>
          <Fch_venc_Cae>string</Fch_venc_Cae>
          <Cae>string</Cae>
          <Resultado>string</Resultado>
          <Obs>string</Obs>
          <Items>
            <Item xsi:nil="true" />
            <Item xsi:nil="true" />
          </Items>
          <CbtesAsoc>
            <CbteAsoc xsi:nil="true" />
            <CbteAsoc xsi:nil="true" />
          </CbtesAsoc>
        </BFEResultGet>
        <BFEErr>
          <ErrCode>int</ErrCode>
          <ErrMsg>string</ErrMsg>
        </BFEErr>
        <BFEEvents>
          <EventCode>int</EventCode>
          <EventMsg>string</EventMsg>
        </BFEEvents>
      </BFEGetCMPResult>
    </BFEGetCMPResponse>
  </soap12:Body>
</soap12:Envelope>