Skip to content

API and integrations

Issue electronic invoices from your own system.

Connect your ERP, online store or ticketing platform with an API key. Your system sells; FactuPy Ya signs, sends to the DNIT and stores the document.

What you can do

The same as the register does, but server to server.

  • Issue sales and invoices

    You send the customer, items and payment method, and get back the document with its CDC and number.

  • Credit and debit notes

    Returns and adjustments on documents already issued.

  • Self-invoices and dispatch notes

    The other electronic documents your operation needs.

  • Cancel documents

    Cancel an issued document, just as you would from the app.

  • Query and download

    Each document's status with the DNIT and the KUDE as a PDF, to attach to your own emails.

POST /api/v1/sales
Authorization: Bearer fpy_live_<prefijo>_<secreto>
Content-Type: application/json

{
  "clientUuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "establishmentCode": "001",
  "dispatchPointCode": "001",
  "customer": { … },
  "items": [ … ]
}

GET /api/v1/documents/{cdc}/sifen-status
Authorization: Bearer fpy_live_<prefijo>_<secreto>

Abbreviated example. With a key you don't need to name the business: the key already belongs to one.

Built to integrate without surprises

Permissions, testing and retries, solved.

  • Each key, only what you grant

    You choose each key's permissions. The ones that manage the business can't be granted: team, roles, keys, issuer and certificate.

  • Test environment

    A test key works only on a business in the test environment, with no fiscal validity. A production key, only on one in production.

  • Secret shown only once

    We store a fingerprint of the secret, not the secret. If it's lost, rotate it; if it leaks, revoke it instantly.

  • Retries without duplicates

    Each issuance carries its own identifier (clientUuid). If your system retries after an outage, you get the same document back and no second one is issued.

  • Rotation without downtime

    When you rotate a key, the previous secret keeps working for 24 hours (up to a week if you choose), so you can swap it without stopping your system.

  • Clear limits

    By default, 600 requests per minute per key and 120 issuances per minute per business. If you go over, you get a 429 with the wait time. For high volumes, a higher cap is agreed.

How to start

From testing to production.

  1. We talk

    You tell us which system you want to connect and how many documents you issue per month.

  2. Create the key

    Under Settings → API keys you choose the name, permissions and expiry. Only whoever manages the business can do it.

  3. Test

    With a test key on a test business you issue with no fiscal validity until your integration works.

  4. Go to production

    With a production key, your system issues real documents.

What isn't there yet

Automatic notifications (webhooks): today you check each document's status by its CDC. If you need them, tell us.

Questions about the API

What can I do with an API key?

Issue sales and invoices, credit and debit notes, self-invoices and dispatch notes, cancel documents, check their status with the DNIT and download the KUDE as a PDF. Each key does only what you gave it permission for.

Does one key work for several businesses?

No. Each key belongs to a single business, and a business can have up to 25 live keys.

What happens if my system retries a sale?

Each API issuance requires a clientUuid. If you retry with the same one, you get the same document back: no second one is issued.

Can I test without issuing real documents?

Yes. A test key works only on a business in the test environment, with no fiscal validity. Production keys don't touch a test business.

What do I do if a key leaks?

Revoke it from the app and it stops working instantly. You can also rotate it: a new secret is generated and the old one keeps working only for the grace window you choose, or none at all.

How much does API access cost?

It's agreed case by case based on your document volume. Tell us how many you issue per month and we'll put together a proposal.

Are there webhooks or automatic notifications?

Not yet. Today you check each document's status by its CDC.

Does your system already sell? Let's connect it.

Tell us what you want to integrate and how many documents you issue per month. We'll build the proposal with you.