Skip to main content
POST
/
einvoicing_connections
Create an e-invoicing connection
curl --request POST \
  --url https://api.sandbox.monite.com/v1/einvoicing_connections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-monite-entity-id: <x-monite-entity-id>' \
  --header 'x-monite-version: <x-monite-version>' \
  --data '
{
  "address": {
    "address_line1": "<string>",
    "city": "<string>",
    "country": "DE",
    "postal_code": "<string>",
    "address_line2": "<string>",
    "state": "<string>"
  },
  "entity_vat_id_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_receiver": true,
  "is_sender": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "address": {
    "address_line1": "<string>",
    "city": "<string>",
    "country": "DE",
    "postal_code": "<string>",
    "address_line2": "<string>",
    "state": "<string>"
  },
  "credentials": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "einvoicing_connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "network_credentials_identifier": "12345678",
      "network_credentials_schema": "NL:KVK"
    }
  ],
  "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "legal_name": "<string>",
  "status": "active",
  "is_receiver": true,
  "is_sender": true,
  "provider_id": "12345"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required
x-monite-entity-id
string<uuid>
required

The ID of the entity that owns the requested resource.

Example:

"9d2b4c8f-2087-4738-ba91-7359683c49a4"

Body

application/json
address
object
required

Integration Address

entity_vat_id_id
string<uuid>

Entity VAT ID identifier for the integration

is_receiver
boolean
default:true

Set to true if the entity needs to receive e-invoices.

is_sender
boolean
default:true

Set to true if the entity needs to send e-invoices. Either is_sender or is_receiver or both must be true.

Response

Successful Response

id
string<uuid>
required
created_at
string<date-time>
required

Date of Integration

updated_at
string<date-time>
required

Last update of Integration

address
object
required

Integration Address

credentials
object[]
required

List of credentials

entity_id
string<uuid>
required

ID of the entity

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

Legal name of the Entity

status
string
required

Current status of the integration

Example:

"active"

is_receiver
boolean
default:true

Set to true if the entity needs to receive e-invoices.

is_sender
boolean
default:true

Set to true if the entity needs to send e-invoices. Either is_sender or is_receiver or both must be true.

provider_id
string

ID assigned by integration partner

Example:

"12345"