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
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.
Configure transmission credentials for Romania
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
}
}
]
}
}
]
}