Service


Click here for a complete list of operations.

FEXAuthorize

Autoriza un comprobante, devolviendo su CAE correspondiente

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 /wsfexv1/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.fexv1/FEXAuthorize"

<?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>
    <FEXAuthorize xmlns="http://ar.gov.afip.dif.fexv1/">
      <Auth>
        <Token>string</Token>
        <Sign>string</Sign>
        <Cuit>long</Cuit>
      </Auth>
      <Cmp>
        <Id>long</Id>
        <Fecha_cbte>string</Fecha_cbte>
        <Cbte_Tipo>short</Cbte_Tipo>
        <Punto_vta>int</Punto_vta>
        <Cbte_nro>long</Cbte_nro>
        <Tipo_expo>short</Tipo_expo>
        <Permiso_existente>string</Permiso_existente>
        <Permisos>
          <Permiso>
            <Id_permiso>string</Id_permiso>
            <Dst_merc>int</Dst_merc>
          </Permiso>
          <Permiso>
            <Id_permiso>string</Id_permiso>
            <Dst_merc>int</Dst_merc>
          </Permiso>
        </Permisos>
        <Dst_cmp>short</Dst_cmp>
        <Cliente>string</Cliente>
        <Cuit_pais_cliente>long</Cuit_pais_cliente>
        <Domicilio_cliente>string</Domicilio_cliente>
        <Id_impositivo>string</Id_impositivo>
        <Moneda_Id>string</Moneda_Id>
        <Moneda_ctz>decimal</Moneda_ctz>
        <Obs_comerciales>string</Obs_comerciales>
        <Imp_total>decimal</Imp_total>
        <Obs>string</Obs>
        <Cmps_asoc>
          <Cmp_asoc>
            <Cbte_tipo>short</Cbte_tipo>
            <Cbte_punto_vta>int</Cbte_punto_vta>
            <Cbte_nro>long</Cbte_nro>
            <Cbte_cuit>long</Cbte_cuit>
          </Cmp_asoc>
          <Cmp_asoc>
            <Cbte_tipo>short</Cbte_tipo>
            <Cbte_punto_vta>int</Cbte_punto_vta>
            <Cbte_nro>long</Cbte_nro>
            <Cbte_cuit>long</Cbte_cuit>
          </Cmp_asoc>
        </Cmps_asoc>
        <Forma_pago>string</Forma_pago>
        <Incoterms>string</Incoterms>
        <Incoterms_Ds>string</Incoterms_Ds>
        <Idioma_cbte>short</Idioma_cbte>
        <Items>
          <Item>
            <Pro_codigo>string</Pro_codigo>
            <Pro_ds>string</Pro_ds>
            <Pro_qty>decimal</Pro_qty>
            <Pro_umed>int</Pro_umed>
            <Pro_precio_uni>decimal</Pro_precio_uni>
            <Pro_bonificacion>decimal</Pro_bonificacion>
            <Pro_total_item>decimal</Pro_total_item>
          </Item>
          <Item>
            <Pro_codigo>string</Pro_codigo>
            <Pro_ds>string</Pro_ds>
            <Pro_qty>decimal</Pro_qty>
            <Pro_umed>int</Pro_umed>
            <Pro_precio_uni>decimal</Pro_precio_uni>
            <Pro_bonificacion>decimal</Pro_bonificacion>
            <Pro_total_item>decimal</Pro_total_item>
          </Item>
        </Items>
        <Opcionales>
          <Opcional>
            <Id>string</Id>
            <Valor>string</Valor>
          </Opcional>
          <Opcional>
            <Id>string</Id>
            <Valor>string</Valor>
          </Opcional>
        </Opcionales>
        <Fecha_pago>string</Fecha_pago>
        <Actividades>
          <Actividad>
            <Id>long</Id>
          </Actividad>
          <Actividad>
            <Id>long</Id>
          </Actividad>
        </Actividades>
      </Cmp>
    </FEXAuthorize>
  </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>
    <FEXAuthorizeResponse xmlns="http://ar.gov.afip.dif.fexv1/">
      <FEXAuthorizeResult>
        <FEXResultAuth>
          <Id>long</Id>
          <Cuit>long</Cuit>
          <Cbte_tipo>short</Cbte_tipo>
          <Punto_vta>int</Punto_vta>
          <Cbte_nro>long</Cbte_nro>
          <Cae>string</Cae>
          <Fch_venc_Cae>string</Fch_venc_Cae>
          <Fch_cbte>string</Fch_cbte>
          <Resultado>string</Resultado>
          <Reproceso>string</Reproceso>
          <Motivos_Obs>string</Motivos_Obs>
        </FEXResultAuth>
        <FEXErr>
          <ErrCode>int</ErrCode>
          <ErrMsg>string</ErrMsg>
        </FEXErr>
        <FEXEvents>
          <EventCode>int</EventCode>
          <EventMsg>string</EventMsg>
        </FEXEvents>
      </FEXAuthorizeResult>
    </FEXAuthorizeResponse>
  </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 /wsfexv1/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>
    <FEXAuthorize xmlns="http://ar.gov.afip.dif.fexv1/">
      <Auth>
        <Token>string</Token>
        <Sign>string</Sign>
        <Cuit>long</Cuit>
      </Auth>
      <Cmp>
        <Id>long</Id>
        <Fecha_cbte>string</Fecha_cbte>
        <Cbte_Tipo>short</Cbte_Tipo>
        <Punto_vta>int</Punto_vta>
        <Cbte_nro>long</Cbte_nro>
        <Tipo_expo>short</Tipo_expo>
        <Permiso_existente>string</Permiso_existente>
        <Permisos>
          <Permiso>
            <Id_permiso>string</Id_permiso>
            <Dst_merc>int</Dst_merc>
          </Permiso>
          <Permiso>
            <Id_permiso>string</Id_permiso>
            <Dst_merc>int</Dst_merc>
          </Permiso>
        </Permisos>
        <Dst_cmp>short</Dst_cmp>
        <Cliente>string</Cliente>
        <Cuit_pais_cliente>long</Cuit_pais_cliente>
        <Domicilio_cliente>string</Domicilio_cliente>
        <Id_impositivo>string</Id_impositivo>
        <Moneda_Id>string</Moneda_Id>
        <Moneda_ctz>decimal</Moneda_ctz>
        <Obs_comerciales>string</Obs_comerciales>
        <Imp_total>decimal</Imp_total>
        <Obs>string</Obs>
        <Cmps_asoc>
          <Cmp_asoc>
            <Cbte_tipo>short</Cbte_tipo>
            <Cbte_punto_vta>int</Cbte_punto_vta>
            <Cbte_nro>long</Cbte_nro>
            <Cbte_cuit>long</Cbte_cuit>
          </Cmp_asoc>
          <Cmp_asoc>
            <Cbte_tipo>short</Cbte_tipo>
            <Cbte_punto_vta>int</Cbte_punto_vta>
            <Cbte_nro>long</Cbte_nro>
            <Cbte_cuit>long</Cbte_cuit>
          </Cmp_asoc>
        </Cmps_asoc>
        <Forma_pago>string</Forma_pago>
        <Incoterms>string</Incoterms>
        <Incoterms_Ds>string</Incoterms_Ds>
        <Idioma_cbte>short</Idioma_cbte>
        <Items>
          <Item>
            <Pro_codigo>string</Pro_codigo>
            <Pro_ds>string</Pro_ds>
            <Pro_qty>decimal</Pro_qty>
            <Pro_umed>int</Pro_umed>
            <Pro_precio_uni>decimal</Pro_precio_uni>
            <Pro_bonificacion>decimal</Pro_bonificacion>
            <Pro_total_item>decimal</Pro_total_item>
          </Item>
          <Item>
            <Pro_codigo>string</Pro_codigo>
            <Pro_ds>string</Pro_ds>
            <Pro_qty>decimal</Pro_qty>
            <Pro_umed>int</Pro_umed>
            <Pro_precio_uni>decimal</Pro_precio_uni>
            <Pro_bonificacion>decimal</Pro_bonificacion>
            <Pro_total_item>decimal</Pro_total_item>
          </Item>
        </Items>
        <Opcionales>
          <Opcional>
            <Id>string</Id>
            <Valor>string</Valor>
          </Opcional>
          <Opcional>
            <Id>string</Id>
            <Valor>string</Valor>
          </Opcional>
        </Opcionales>
        <Fecha_pago>string</Fecha_pago>
        <Actividades>
          <Actividad>
            <Id>long</Id>
          </Actividad>
          <Actividad>
            <Id>long</Id>
          </Actividad>
        </Actividades>
      </Cmp>
    </FEXAuthorize>
  </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>
    <FEXAuthorizeResponse xmlns="http://ar.gov.afip.dif.fexv1/">
      <FEXAuthorizeResult>
        <FEXResultAuth>
          <Id>long</Id>
          <Cuit>long</Cuit>
          <Cbte_tipo>short</Cbte_tipo>
          <Punto_vta>int</Punto_vta>
          <Cbte_nro>long</Cbte_nro>
          <Cae>string</Cae>
          <Fch_venc_Cae>string</Fch_venc_Cae>
          <Fch_cbte>string</Fch_cbte>
          <Resultado>string</Resultado>
          <Reproceso>string</Reproceso>
          <Motivos_Obs>string</Motivos_Obs>
        </FEXResultAuth>
        <FEXErr>
          <ErrCode>int</ErrCode>
          <ErrMsg>string</ErrMsg>
        </FEXErr>
        <FEXEvents>
          <EventCode>int</EventCode>
          <EventMsg>string</EventMsg>
        </FEXEvents>
      </FEXAuthorizeResult>
    </FEXAuthorizeResponse>
  </soap12:Body>
</soap12:Envelope>