home

Indirect Tax

Sovos Docs

Romania

Enabling support for Romania involves confirming prerequisites and product IDs, registering with the Agenția Națională de Administrare Fiscală (ANAF) tax authority, and setting up credentials.

Prerequisites

  • Access token obtained from the ANAF tax authority

  • Refresh token obtained from the ANAF tax authority

  • Client ID and client secret obtained from the ANAF tax authority

Available products

ro_Factura__1.0
Outbound invoicing
ro_Factura_Polling_1.0
Inbound invoicing
ro_Invoice__2.0
e-Transport
RO_DOCUMENT_1_2.0
Pending description

Register with the Romania tax authority

You need to register with the Agenția Națională de Administrare Fiscală (ANAF) to be able to obtain an access token, a refresh token, a client ID, and a client secret.

To integrate ANAF services exposed on the Internet with third-party applications (web, desktop, or mobile), ANAF has implemented a solution to authorize access to API-type services using standard mechanisms based on the use of the OAuth protocol. This solution uses standard mechanisms based on the OAuth protocol and is intended for application developers with knowledge of IT and of the OAuth 2.0 protocol. This is because application development is required to use this solution.

  1. Go to ANAF's website.
  2. Click Servicii Online in the main navigation and select Inregistrare utilizatori from the drop down menu.
  3. Select Dezvoltatori Aplicatii.
  4. Fill in the form and select Continua.
  5. Look for a message with a verification code, which will be sent to the provided email address.
  6. Enter the provided code to finish.

Configure transmission credentials for Romania

You must set up transmission credentials to connect your Sovos account to a valid business that is registered with the Agenția Națională de Administrare Fiscală (ANAF) tax authority in Romania.
  1. Add your transmission credentials to the Admin Settings or via the Configuration v2 resource (API).
  2. Complete and return an Appointment Letter to Sovos or your reseller.
  3. Complete and return a Support and Change Management Document to Sovos or your reseller.

Samples for uploading transmission credentials for Romania

Having the ANAF credentials and Organization ID, customers can upload their credentials,, which must be unique for the tax ID and environment being configured and uploaded once per configured product.

Request sample

Request sample for uploading new transmission credentials:

curl --location --request POST 'https://api-test.sovos.com/v2/configurations/organizations/YOUR-ORG-ID/settings' \
--header 'x-correlationId: developer-guide' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "context": "transmission",
        "configurations": [
            {
                "name": "partner_credentials_anaf",
                "value": {
                    "accessToken": INSERT-TOKEN-HERE,
                    "refreshToken": INSERT-REFRESH-TOKEN-HERE,
                    "clientId": INSERT-CLIENTID-HERE,
                    "clientSecret": INSERT-CLIENTSECRET-HERE
                },
                "scope": {
                    "category": "RO_INV",
                    "productId": "ro_Factura__1.0",
                    "orgId": YOUR-ORG-ID,
                    "taxId": YOUR-COMPANY-TAXID
                }
            }
        ]
    }
]'

Response sample

Response sample for uploading new transmissions credentials:

{
    "status": 201,
    "message": "Created",
    "success": true,
    "timestamp": 1663855094969,
    "data": [
        {
            "message": "Configurations are created",
            "statusCode": 201,
            "configurationContextResponse": {
                "context": "Transmission",
                "configurations": [
                    {
                        "id": SETTING-ID,
                        "name": "partner_credentials_anaf",
                        "value": {
                            "accessToken": INSERT-TOKEN-HERE,
                            "refreshToken": INSERT-REFRESH-TOKEN-HERE,
                            "clientId": INSERT-CLIENTID-HERE,
                            "clientSecret": INSERT-CLIENTSECRET-HERE
                        },
                        "scope": {
                            "category": "RO_INV",
                            "productId": "ro_Factura__1.0",
                            "orgId": YOUR-ORG-ID,
                            "taxId": YOUR-COMPANY-TAXID
                        },
                        "auditData": {
                            "createdAt": 1663855094,
                            "createdBy": "user@company.com",
                            "isDeleted": false,
                            "version": 1
                        }
                    }
                ]
            }
        }
    ]
}