Using the Afip API

RunLLM
RunLLM

To use the Afip API, you need to follow these steps:

  1. Obtain Authorization: First, you need to get a "Token Authorization" by making a POST request to the endpoint https://app.afipsdk.com/api/v1/afip/auth. You will need to provide parameters such as environment (use "dev" for development or "prod" for production), tax_id (CUIT), and wsid (web service ID) as per Afip SDK Documentation.

  2. Make API Requests: Once you have the token and sign, you can make requests to the AFIP web services. For example, to create an electronic invoice, you would send a POST request to https://app.afipsdk.com/api/v1/afip/requests with the necessary parameters, including the token and sign obtained earlier, as described in API de factura electrónica de AFIP.

Would you like more detailed instructions or a specific example?

Sources: