To use the Afip API, you need to follow these steps:
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 asenvironment(use "dev" for development or "prod" for production),tax_id(CUIT), andwsid(web service ID) as per Afip SDK Documentation.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/requestswith 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: