Zum Inhalt springen

Frankreich Schnellstart

Dieser Schnellstart führt Sie durch die Erstellung Ihres ersten signierten Fiscalbelegs mit fiskaly SIGN FR und erfüllt die drei wichtigsten französischen Fiscalpflichten: Signierung, Journalisierung und Archivierung.

  • Ein fiskaly-Konto (Registrierung unter hub.fiskaly.com)
  • Ein API-Schlüssel und -Secret für eine GROUP-Organisation in der TEST-Umgebung
  • Informationen zum Steuerpflichtigen: Firmenname, SIREN-Nummer, Adresse
  1. Authentifizieren

    curl -X POST https://test.api.fiskaly.com/tokens \
      -H "Content-Type: application/json" \
      -H "X-Api-Version: 2026-02-03" \
      -d '{
        "content": {
          "type": "API_KEY",
          "key": "YOUR_API_KEY",
          "secret": "YOUR_API_SECRET"
        }
      }'
  2. Organisation, Steuerpflichtigen, Standort und System erstellen

    Das Setup folgt demselben Muster wie SIGN IT — erstellen Sie eine UNIT-Organisation, dann einen Steuerpflichtigen, Standort und System und nehmen Sie jede Ressource in Betrieb:

    # UNIT-Organisation erstellen
    curl -X POST https://test.api.fiskaly.com/organizations \
      -H "Authorization: Bearer ${ACCESS_TOKEN}" \
      -H "Content-Type: application/json" \
      -H "X-Api-Version: 2026-02-03" \
      -H "X-Idempotency-Key: $(uuidgen)" \
      -d '{"content": {"type": "UNIT", "name": "My French Company"}}'
    
    # Subject-API-Schlüssel für die UNIT erstellen, erneut authentifizieren, dann:
    
    # Steuerpflichtigen erstellen
    curl -X POST https://test.api.fiskaly.com/taxpayers \
      -H "Authorization: Bearer ${UNIT_TOKEN}" \
      -H "Content-Type: application/json" \
      -H "X-Api-Version: 2026-02-03" \
      -H "X-Idempotency-Key: $(uuidgen)" \
      -d '{
        "content": {
          "type": "COMPANY",
          "name": {"legal": "Ma Societe SARL"},
          "address": {"street": "1 Rue de Rivoli", "zip": "75001", "city": "Paris", "country_code": "FR"},
          "fiscalization": {
            "type": "FR",
            "tax_id_number": "123456789"
          }
        }
      }'
    
    # Steuerpflichtigen in Betrieb nehmen, Standort erstellen + in Betrieb nehmen und System
    # (gleiches Muster wie SIGN IT — siehe vollständiges Integrationshandbuch)
  3. Ersten Datensatz erstellen

    # Teil A: Absicht
    curl -X POST https://test.api.fiskaly.com/records \
      -H "Authorization: Bearer ${UNIT_TOKEN}" \
      -H "Content-Type: application/json" \
      -H "X-Api-Version: 2026-02-03" \
      -H "X-Idempotency-Key: $(uuidgen)" \
      -d '{
        "content": {
          "type": "INTENTION",
          "system": {"id": "YOUR_SYSTEM_ID"},
          "operation": {"type": "TRANSACTION"}
        }
      }'
    
    # Teil B: Transaktion
    curl -X POST https://test.api.fiskaly.com/records \
      -H "Authorization: Bearer ${UNIT_TOKEN}" \
      -H "Content-Type: application/json" \
      -H "X-Api-Version: 2026-02-03" \
      -H "X-Idempotency-Key: $(uuidgen)" \
      -d '{
        "content": {
          "type": "TRANSACTION",
          "intention": {"id": "INTENTION_ID"},
          "operation": {
            "type": "RECEIPT",
            "document": {
              "number": "1",
              "date": "2026-02-27",
              "amounts": {
                "total_including_vat": "12.00",
                "total_excluding_vat": "10.00"
              }
            },
            "entries": [{
              "type": "SALE",
              "description": "Product A",
              "nature": "GOOD",
              "quantity": "1",
              "amounts": {
                "unit_including_vat": "12.00",
                "total_including_vat": "12.00",
                "total_excluding_vat": "10.00",
                "vat": {"rate": "20.00", "amount": "2.00"}
              }
            }]
          }
        }
      }'

    Nach der Erstellung werden die Daten automatisch signiert, journalisiert und archiviert — erfüllt damit die drei wesentlichen NF525-Fiscalpflichten.

Was this page helpful?