Production onboarding

How to get a client company onto live Peppol (both receiving and sending e-invoices). Production activation is gated by the Slovak Financial Administration (FS): we can't create a Peppol participant ourselves, the FS has to authorize it. There are two paths for this; the full process and endpoints are below.

Only go to production after verifying the whole flow in the sandbox (Quickstart). A production key (efk_pk_live_…) burns credits and creates real tax documents.
This page assumes you already have a production key. If you don't yet, complete the onboarding in the partner portal first (programme and agreement → production request → upfront payment → production key); the walkthrough is on Going live.

Two production paths

PathWhenWhat the partner does
A: webhook + email (recommended)The company chooses eFaktúra as its delivery service provider (PDS) on the FS portal. The FS sends the mandate via webhook.Pair the company → eFaktúra sends the company a confirmation email → the company clicks. No token, no company login.
B: FS token (fallback)The FS sends the mandate only by email (no webhook), or you want to activate directly.Obtain the FS verification token (Verification data from PFS) and send it to enroll.
C: confirmation through your API (no eFaktúra e-mail)You run your own client UI (white-label) and do not want eFaktúra to e-mail your clients. Enable “Confirm reception through your API” in the portal (Team → settings).The client chooses eFaktúra as PDS on the FS portal; the FS shows them a verification code and sends us the webhook. You finish it in one of two ways: (1) the client enters the code in your UI → POST /v1/agent/peppol/enroll with verificationTokenHex (enroll and webhook may come in either order); (2) without the code, where your contract allows it (set by eFaktúra, live key only): once GET /v1/agent/organizations/{id} returns pending_mandate: true, you call POST /v1/agent/organizations/{id}/peppol-claim/confirm with an attestation (client_instruction after the client confirmed in your UI, power_of_attorney under a written power of attorney) and an optional reference (max 200 characters). We record your attestation in the audit log. Either way we bind the mandate to the child organisation and send the participant.activated webhook. eFaktúra never e-mails the client, not even later; completing it is up to you.
Why not just the token? Path A doesn't require you to manually obtain and copy the FS token: the company confirms receipt by clicking in the email. The anti-misrouting safeguard is preserved: the company's mailbox confirms (its FS company_email), not the partner.

How the whole thing works (flow)

  PARTNER                    eFaktúra (SP)                 FINANCIAL ADMIN / COMPANY
  ───────                    ─────────────                 ─────────────────────────
  1. POST /organizations  ─▶ child org (partner_id)
     (IČO/DIČ/address)

                                          company on PFS chooses ◀── 2. PDS selection
                                          eFaktúra as PDS
       FS PDS webhook  ─────────────────▶ 3. mandate received
                                          provisioning + SMP
                                          registration 0245:DIČ
  ◀── webhook participant.mandate_received
      (data.emailSent: true = the step 4 email went out)

  4. POST /:id/peppol-claim ─▶ sends      ──── email ────▶  company receives
     (re‑send, scope          partner                       "Confirm receipt…"
      invoice:send)           confirmation email

                              bind receiving  ◀──── click ──────  5. company confirms
                              to child org                        (public page)

  6. ◀── webhook participant.activated
     (fallback: GET /organizations/:id ─▶ claim_status: "claimed"
      polling)                            participant_id: "0245:DIČ"
                                          peppol_eligible: true   ✅ DONE

Step 4 is often automatic: when the FS webhook finds a paired partner child org for the given DIČ, eFaktúra sends the confirmation email on its own. peppol-claim is for resending it (or when you paired the company only after the mandate arrived).

Canonical path (A): step by step

1
Get a production (live) key

You get the live key through the onboarding on the partner portal's Overview (agreement, production request, upfront payment); once it is paid, you pick the key up in the portal once. A sandbox key (efk_pk_test_…) you create immediately. The base URL is the same for both environments; the key prefix decides.

2
Pair / create the client organization

Via POST /v1/agent/organizations, create a child org for the company (IČO, DIČ (10 digits), VAT ID, full address). Idempotent by IČO: if it already exists, the same one is returned. Requires scope org:provision.

curl -X POST https://api.efaktura.sk/v1/agent/organizations \
  -H "X-API-Key: efk_pk_live_..." \
  -H "Content-Type: application/json" \
  -d '{ "name":"Klient s.r.o.", "ico":"55460399", "dic":"2122027985",
        "ic_dph":"SK2122027985",
        "address":{"street":"Hlavná 1","city":"Trenčín","postalCode":"91101","country":"SK"} }'
The name, IČO, DIČ and IČ DPH are compared with the company register before the company is saved. On a mismatch the API returns 409 IDENTITY_MISMATCH: correct the details, or send "identity_override": true. Going live (enroll, peppol-claim/confirm) checks again. Details are in Going live.
If your live key doesn't have the org:provision scope and the company already exists in your eFaktúra account, pairing happens by IČO. If the company needs to be created and the key lacks the scope, email sales@efaktura.sk.
3
The company chooses eFaktúra as its provider on the FS portal

On the Financial Administration Portal (PFS), the entity (the company or its representative) chooses eFaktúra as its e-invoice delivery service provider (Peppol PDS). The FS then sends eFaktúra the mandate, usually via webhook, which automatically registers the company as Peppol participant 0245:<DIČ>.

4
Send the company a confirmation email (claim)

If the mandate arrived after pairing (or you want to resend the email), call POST /v1/agent/organizations/{id}/peppol-claim (scope invoice:send, empty body). eFaktúra sends "Confirm receipt of e-invoices…" to the company's FS company_email.

curl -X POST https://api.efaktura.sk/v1/agent/organizations/{org_id}/peppol-claim \
  -H "X-API-Key: efk_pk_live_..."

Response (note: this endpoint returns the status directly, not in an envelope):

// 202: email sent
{ "organization_id": "1ecf…", "status": "pending_email_confirmation" }

// 200: nothing to send
{ "organization_id": "1ecf…", "status": "no_mandate" }      // FS mandate hasn't arrived yet
{ "organization_id": "1ecf…", "status": "no_email" }        // mandate has no company email

// 409: ambiguous assignment (see Troubleshooting)
{ "organization_id": "1ecf…", "status": "collision", "reason": "real_org_exists_for_ico" }
5
The company confirms receipt by clicking in the email

The email contains a link to a public page (no login). After confirming, the receipt of e-invoices is bound to your child org. The company is now live on production Peppol under your partner account.

6
Verify status (webhook, polling as a fallback)

You do not need to poll. When the company chooses eFaktúra on the FS portal in step 2, we send you the participant.mandate_received webhook (data.emailSent: true = the step 4 confirmation email went out to the company). After the confirmation in step 5, participant.activated follows. Both events and signature verification are described on the Webhooks page.

As a fallback for a lost event, use GET /v1/agent/organizations/{id}. Done = claim_status: "claimed" and peppol_eligible: true with an assigned participant_id; pending_mandate: true means the FS mandate arrived and waits for confirmation.

curl https://api.efaktura.sk/v1/agent/organizations/{org_id} \
  -H "X-API-Key: efk_pk_live_..."

{
  "organization_id": "1ecf…",
  "ico": "55460399",
  "status": "aktivne",
  "participant_id": "0245:2122027985",
  "peppol_status": "active",
  "claim_status": "claimed",
  "peppol_eligible": true,
  "pending_mandate": false
}

From now on the company receives e-invoices via Peppol, and you can send on its behalf (issuing + send). You read incoming documents via GET /v1/agent/peppol/received and get the peppol.document.received webhook.

Fallback path (B): FS token

When the FS sends the mandate only by email (no webhook), or you want to activate directly, use the FS verification token (Verification data, hex from PFS) and call enroll:

curl -X POST https://api.efaktura.sk/v1/agent/peppol/enroll \
  -H "X-API-Key: efk_pk_live_..." \
  -H "X-Organization-Id: {sender_org_id}" \
  -H "Content-Type: application/json" \
  -d '{ "verificationTokenHex": "a1b2c3…" }'
The token must be pure hex (0‑9, a‑f) with no spaces/line breaks. Whitespace characters often sneak in from a multi-line .txt file, and the FS rejects it as invalid_format. For a live enroll the token is required; in the sandbox any hex will do.

Several e‑shops or branches of one firm

The Financial Administration and Peppol know a firm by its DIČ, not by its e‑shop. One firm (IČO and DIČ) therefore has one organization with us, one selection on the FS portal and one 0245:<DIČ> identity, however many e‑shops use it.

StepWhat you do
1. Another e‑shopCall POST /v1/agent/organizations with the firm's IČO and DIČ. A firm you already have comes back with 200, reused: true, the same org_id and its status. A new firm returns 201.
2. The firm is activeWith status: "aktivne" or peppol_eligible: true (GET /v1/agent/organizations/{id}) the firm is active (it receives when peppol_status is active). Attach the e‑shop to the org_id; nothing more is confirmed on the FS portal or with us.
3. The firm is not active yetThe next e‑shop waits for the same participant.activated event as the first one. On 200 with reused: true send the firm to the FS portal only if it did not make the selection for the first e‑shop.
4. Enroll of an active firmPOST /v1/agent/peppol/enroll for a firm that already receives returns 201 with claim: "already_active" for any code without migrationCode and changes nothing: no participant.failed and no further participant.activated. Live and sandbox alike.
5. DisconnectingPOST /v1/agent/organizations/{id}/peppol/deactivate disconnects reception for the whole DIČ, so for every e‑shop of the firm. Call it only once no e‑shop uses the firm.
6. Document numbersA document number must be unique within the firm, not the e‑shop. A document whose number the firm already sent with other content is rejected. E‑shops of one firm therefore need their own number series, for example with a different prefix.

Organization states

FieldValueMeaning
claim_statusclaimedThe FS mandate is bound to this org, so receiving is active.
pending_mandatetrueThe FS mandate arrived, but the company hasn't confirmed yet (waiting for the email click).
peppol_statusactiveThe Peppol account is active (registered in the SMP).
peppol_eligibletrueThe org can send/receive on production Peppol.
statuscaka_na_token / caka_na_fs / aktivneOrganization onboarding state (waiting for FS verification → active).

Troubleshooting

SymptomCauseResolution
claim → 409 collision (real_org_exists_for_ico)Another (non-partner) real org already exists for the same IČO, and it can't be blindly downgraded.Email podpora@efaktura.sk: the duplicate needs to be merged/linked to your org.
claim → no_mandateThe FS mandate for the given DIČ hasn't arrived yet.The company must first choose eFaktúra as its PDS on the FS portal (step 3).
enroll → invalid_formatThe FS token contains spaces/line breaks.Remove all whitespace; the token is pure hex.
create / enroll → 409 IDENTITY_MISMATCHThe company details do not match the company register.Correct the details using details.register, or send identity_override: true.
claim → 403 scopeThe key doesn't have invoice:send.peppol-claim requires invoice:send (NOT org:provision). Check the key's scopes.

See also Going live (checklist and activation gates) and Error codes.