KSeF Faktury
EN
Join the start list
Early access

The API is in early access: we hand out test keys (KSeF TEST) in batches to people on the launch list. Live mode comes later.

Request access

API reference

Account

The account in the key's mode: seller data printed on invoices, KSeF connection state and plan usage. Test and live mode have separate data.

The Account object

The account in the key's mode: seller data, KSeF connection and plan usage.

Attributes

  • idstringrequired

    Account id.

    Prefix acct_

  • objectstringrequired

    Object type.

    Always account

  • livemodebooleanrequired

    The key's mode.

  • emailstring | null

    Account email.

  • platformstring

    api or woocommerce (plugin account).

    One of: api, woocommerce

  • ksef_environmentstringrequired

    KSeF environment of this mode.

    One of: test, demo, prod

  • sellerobjectrequired

    Seller data printed on invoices.

    Show fields
    • nipstring | null

      Seller NIP.

    • namestring | null

      Seller name.

    • address_line1string | null

      Street and number.

    • address_line2string | null

      Postal code and city.

  • seller_configuredbooleanrequired

    Whether the seller data is complete.

  • ksef_connectedbooleanrequired

    Whether the KSeF certificate or token of this mode works.

  • ksef_check_errorstring | null

    What is wrong with the KSeF connection, or null.

  • planobjectrequired

    Plan and usage this month.

    Show fields
    • namestringrequired

      Plan name (Unlimited in test mode).

    • monthly_limitinteger | nullrequired

      Monthly invoice limit, or null for none.

    • used_this_monthintegerrequired

      Invoices issued this month.

Object Account
{
  "id": "acct_Xy7Qw2Er4Ty6Ui8Op0As2Df4",
  "object": "account",
  "livemode": false,
  "email": "sklep@example.com",
  "platform": "woocommerce",
  "ksef_environment": "test",
  "seller": {
    "nip": "4235405606",
    "name": "Sklep Woo sp. z o.o.",
    "address_line1": "ul. Testowa 1",
    "address_line2": "00-001 Warszawa"
  },
  "seller_configured": true,
  "ksef_connected": true,
  "ksef_check_error": null,
  "plan": {
    "name": "Unlimited",
    "monthly_limit": null,
    "used_this_month": 12
  }
}

Retrieve the account

GET /v1/account

Seller data, KSeF connection and plan usage in the key's mode. The WooCommerce plugin's "Test connection" button calls this endpoint.

Responses

GET /v1/account
curl https://app.ksefshop.pl/v1/account \
  -H "Authorization: Bearer $KSEF_API_KEY"
Response
{
  "id": "acct_Xy7Qw2Er4Ty6Ui8Op0As2Df4",
  "object": "account",
  "livemode": false,
  "email": "sklep@example.com",
  "platform": "woocommerce",
  "ksef_environment": "test",
  "seller": {
    "nip": "4235405606",
    "name": "Sklep Woo sp. z o.o.",
    "address_line1": "ul. Testowa 1",
    "address_line2": "00-001 Warszawa"
  },
  "seller_configured": true,
  "ksef_connected": true,
  "ksef_check_error": null,
  "plan": {
    "name": "Unlimited",
    "monthly_limit": null,
    "used_this_month": 12
  }
}
KSeF Faktury

API early access

We hand out test keys in batches. Leave your email: we will write when your access is ready.