# Digiforma

> **Provider code:** `digiforma` **Services:** Invoicing **and** eSign

Training management platform that offers both invoicing and electronic signature capabilities. The same configuration is used for both services — a single API token authenticates Docs-Dispatcher calls to Digiforma.

## Services supported

* ✅ **Invoicing**
* ✅ **eSign**

## Document types (invoicing)

* `INVOICE`
* `E_INVOICE`
* `QUOTE`
* `CREDIT`

## Configuration

The JSON schemas for these configurations are served at:

```
GET /api/configurations/INVOICING/providers/digiforma/config
GET /api/configurations/E_SIGN/providers/digiforma/config
```

Both expose the same field:

| Field   | Type   | Required | Description                            |
| ------- | ------ | :------: | -------------------------------------- |
| `token` | String |     ✅    | Digiforma API token for authentication |

## Usage examples

### Invoicing

```bash
curl -X POST https://api.docs-dispatcher.io/api/invoicing \
  -u "$EMAIL:$PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{
    "providerName": "digiforma",
    "documentType": "INVOICE",
    "template": { "id": 123, "data": { } }
  }'
```

### eSign

```bash
curl -X POST https://api.docs-dispatcher.io/api/esign \
  -u "$EMAIL:$PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{
    "providerName": "digiforma",
    "template": { "id": 456, "data": { } }
  }'
```

Replace `-u "$EMAIL:$PASSWORD"` with `-H "Authorization: Bearer $JWT"` for the JWT flow — see [Authentication](/docs-dispatcher/authentication/basic-auth.md).

## Common errors

| Status | `error`                          | Cause                                        |
| ------ | -------------------------------- | -------------------------------------------- |
| 401    | `provider_authentication_failed` | `token` invalid or revoked on Digiforma side |

## Where to go next

* [**Generate & send an invoice**](/docs-dispatcher/how-to-recipes/invoice.md)
* [**eSign recipe**](/docs-dispatcher/how-to-recipes/esign.md)
* [**All providers**](/docs-dispatcher/providers/providers.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.docs-dispatcher.io/docs-dispatcher/invoicing/digiforma.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
