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 /wsfex/service.asmx HTTP/1.1
Host: servicios1.afip.gov.ar
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ar.gov.afip.dif.fex/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.fex/">
<Auth>
<Token>string</Token>
<Sign>string</Sign>
<Cuit>long</Cuit>
</Auth>
<Cmp>
<Id>long</Id>
<Fecha_cbte>string</Fecha_cbte>
<Tipo_cbte>short</Tipo_cbte>
<Punto_vta>short</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>double</Moneda_ctz>
<CanMisMonExt>string</CanMisMonExt>
<Obs_comerciales>string</Obs_comerciales>
<Imp_total>double</Imp_total>
<Obs>string</Obs>
<Cmps_asoc>
<Cmp_asoc>
<CBte_tipo>short</CBte_tipo>
<Cbte_punto_vta>short</Cbte_punto_vta>
<Cbte_nro>long</Cbte_nro>
</Cmp_asoc>
<Cmp_asoc>
<CBte_tipo>short</CBte_tipo>
<Cbte_punto_vta>short</Cbte_punto_vta>
<Cbte_nro>long</Cbte_nro>
</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>double</Pro_qty>
<Pro_umed>int</Pro_umed>
<Pro_precio_uni>double</Pro_precio_uni>
<Pro_total_item>double</Pro_total_item>
</Item>
<Item>
<Pro_codigo>string</Pro_codigo>
<Pro_ds>string</Pro_ds>
<Pro_qty>double</Pro_qty>
<Pro_umed>int</Pro_umed>
<Pro_precio_uni>double</Pro_precio_uni>
<Pro_total_item>double</Pro_total_item>
</Item>
</Items>
<Fecha_pago>string</Fecha_pago>
</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.fex/">
<FEXAuthorizeResult>
<FEXResultAuth>
<Id>long</Id>
<Cuit>long</Cuit>
<Tipo_cbte>short</Tipo_cbte>
<Punto_vta>short</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 /wsfex/service.asmx HTTP/1.1
Host: servicios1.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.fex/">
<Auth>
<Token>string</Token>
<Sign>string</Sign>
<Cuit>long</Cuit>
</Auth>
<Cmp>
<Id>long</Id>
<Fecha_cbte>string</Fecha_cbte>
<Tipo_cbte>short</Tipo_cbte>
<Punto_vta>short</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>double</Moneda_ctz>
<CanMisMonExt>string</CanMisMonExt>
<Obs_comerciales>string</Obs_comerciales>
<Imp_total>double</Imp_total>
<Obs>string</Obs>
<Cmps_asoc>
<Cmp_asoc>
<CBte_tipo>short</CBte_tipo>
<Cbte_punto_vta>short</Cbte_punto_vta>
<Cbte_nro>long</Cbte_nro>
</Cmp_asoc>
<Cmp_asoc>
<CBte_tipo>short</CBte_tipo>
<Cbte_punto_vta>short</Cbte_punto_vta>
<Cbte_nro>long</Cbte_nro>
</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>double</Pro_qty>
<Pro_umed>int</Pro_umed>
<Pro_precio_uni>double</Pro_precio_uni>
<Pro_total_item>double</Pro_total_item>
</Item>
<Item>
<Pro_codigo>string</Pro_codigo>
<Pro_ds>string</Pro_ds>
<Pro_qty>double</Pro_qty>
<Pro_umed>int</Pro_umed>
<Pro_precio_uni>double</Pro_precio_uni>
<Pro_total_item>double</Pro_total_item>
</Item>
</Items>
<Fecha_pago>string</Fecha_pago>
</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.fex/">
<FEXAuthorizeResult>
<FEXResultAuth>
<Id>long</Id>
<Cuit>long</Cuit>
<Tipo_cbte>short</Tipo_cbte>
<Punto_vta>short</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>