Configure ANAF application modes


An application that uses the RO E-Factura Service or the RO E-Transport Service has an operating mode for each service. The e-Factura mode determines whether the application only sends invoices or also imports the invoices it receives from suppliers. The e-Transport mode determines whether the application acts as a declarer, a carrier, or both.

A mode applies to the whole application, across all of its tenants and ANAF authorizations. The e-Factura and e-Transport modes are independent of each other.

You can set the modes either from the SBS Console or from GraphQL. In either case, your user account (or the account access key, if you are doing this through the Account API) must have the permission to run the updateApp mutation of the Account API.

Modes

E-Factura

E-Transport

Web UI

To set your app’s e-Factura or e-Transport mode:

  1. Sign in to the SBS Console.

  2. In the left-hand side navigation menu, click Applications.

  3. Click the application for which you would like to set the mode.

  4. Click the RO-ANAF tab, and then click E-Factura or E-Transport, as applicable.

  5. Under E-Factura Mode (or E-Transport Mode), select the mode from the list. The list shows the application’s current mode.

    ‘Select the e-Transport mode’

  6. In the confirmation dialog box, read the description of the change, and then click Confirm. To keep the current mode, click Cancel.

    ‘Confirm the mode change’

GraphQL

To set your app’s e-Factura or e-Transport mode:

  1. Sign in to the SBS Console.
  2. Click the GraphQL tab.
  3. Run the updateApp mutation and supply a value to roAnafEfacturaMode, roAnafEtransportMode, or both. For example, the mutation listed below sets the e-Factura mode to Send only and the e-Transport mode to Declarer:
mutation updateApp($id:ID!,$input:UpdateAppInput!) {
  updateApp(id:$id, input:$input) {
    id
    name
    roAnafEfacturaMode
    roAnafEtransportMode
  }
}
{
  "id": "YOUR_APPLICATION_ID",
  "input": {
    "roAnafEfacturaMode": "SEND_ONLY",
    "roAnafEtransportMode": "DECLARER"
  }
}