Note: The steps and processes described here are accurate as of the time of writing, but it's essential to stay updated with any changes on the ANAF portal that may affect this procedure.
In this blog post, I will guide you through the process of generating an authorization token from Postman and ANAF's portal. This authorization token is essential for establishing a connection between SAP Document and Reporting Compliance, cloud edition and ANAF. This will allow you to submit and monitor electronic invoices from eDocument cockpit.
ANAF, which stands for Agenția Națională de Administrare Fiscală (National Agency for Fiscal Administration), enables you to electronically send and receive electronic invoices through their e-Invoicing platform.
Prerequisites:
Now, let's go over the management URLs used for generating the authorization token:
Once you are registered on the ANAF portal, follow these steps to generate an authorization token:
Grant Type | Authorization Code |
Callback URL | https://oauth.pstmn.io/v1/callback |
Auth URL | https://logincert.anaf.ro/anaf-oauth2/v1/authorize |
Access Token URL | https://logincert.anaf.ro/anaf-oauth2/v1/token |
Client ID | <Enter the Client ID received during the registration process> |
Client Secret | <Enter the Client Secret received during the registration process> |
Client Authentication | Send as Basic Auth Header |
- Check the 'Authorize using Browser' checkbox.
3. Click the 'Get New Access Token' button.
4. Since you've checked 'Authorize using Browser' in step 2, your browser will automatically open, and you will be prompted to select your certificate for authentication.
Note: Make sure you disable the pop-up blocker in the browser.
5. After a successful authentication, provide your ANAF portal username and password as prompted by the browser and click the 'OK' button.
6. A new token will be generated, and you will see a success message in the browser.
7. You will be automatically redirected back to Postman with a popup displaying the newly generated authorization token. Click the 'Use Token' button.
8. The new token will automatically populate the token field.
Note:
The steps and processes described above guide you through generating an opaque token. However, starting from July 1st, 2024, ANAF mandates the use of JWT tokens. To generate a JWT token, follow all the steps mentioned in this post, and then, before clicking on the 'Get New Access Token' button, make the following adjustments:
This modification ensures that you generate a JWT token as required by ANAF.
To configure the generated token with in the Business Technology Platform(BTP) portal, follow the documentation provided below:
I hope you find this information useful. You can leave a comment on this blog or follow us for more information about SAP Document and Reporting Compliance here in SAP Community.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
28 | |
27 | |
14 | |
13 | |
12 | |
10 | |
10 | |
7 | |
7 | |
6 |