Skip to content
Sign in Book a demo

Developers

Your storeroom, in your ERP.

The v1 API reads your organization's catalog, stock, movements, alerts and costs, and records withdrawals and restocks. JSON over HTTPS, with a key you create.

Get started

Get started in three steps.

  1. Create a key.

    In FASTIK, «Perfil › Integraciones › Claves de API» (Profile › Integrations › API keys). Only your organization's managers can create one, from their personal account, and you'll see it once: copy it then.

  2. Test the connection.

    GET /v1/me returns the key and your organization. If you get 200, you're set.

  3. Ask for what you need.

    Every endpoint lives under https://api.fastik.es/v1/. Responses are JSON and dates are ISO 8601 in UTC.

Does «Integraciones» say «No contratado» (not purchased)? The integration is an add-on: ask FASTIK for it.

Request
curl https://api.fastik.es/v1/me \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "key": {
    "id": "6a0f3b7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
    "name": "ERP",
    "prefix": "fk_live_3f9a1c07",
    "scopes": ["read"],
    "expires_at": "2027-10-28T09:12:00.000Z"
  },
  "organization": { "name": "Your organization" }
}

The key

One key, always in the header.

  • fk_live_ and 64 hexadecimal characters. Test keys start with fk_test_.
  • It goes in Authorization: Bearer. In the URL it doesn't work: the request returns 400 invalid_parameter.
  • It expires after 90 days, a year or never: you choose when you create it. You can revoke it any time.
  • FASTIK can't show it to you again. If you lose it, revoke it and create another.
Header
Authorization: Bearer fk_live_3f9a1c07••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Response · 401
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer
Content-Type: application/problem+json

{
  "type": "https://fastik.es/desarrolladores/errores#unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "code": "unauthorized",
  "detail": "Falta la clave de API, no es válida o ya no está activa."
}

Scopes

Each key, only what it needs.

When you create the key you choose what it can do. If it calls an endpoint without its scope, the response is 403 insufficient_scope.

Who made each movement is only sent if a manager turns on «Datos de personas» (people data) in «Integraciones».

read
The catalog, families, stock, movements and alerts. Every key has it.
costs:read
Unit costs and purchases.
movements:write
Record withdrawals and restocks with POST /v1/movements.
catalog:write
Create and update products with POST /v1/products.
purchases:write
Record received delivery notes with POST /v1/purchases: it adds stock and changes your costs. Requires costs:read.

Rate limits

Rate limits per minute.

120
reads per key
30
writes per key
300
requests per organization

Responses that count against the limit tell you in RateLimit-Remaining how much you have left in the minute. If you go over, the response is 429 rate_limited with Retry-After: wait that many seconds and retry.

Response · 200
HTTP/1.1 200 OK
RateLimit-Limit: 120
RateLimit-Remaining: 117
RateLimit-Reset: 42
Response · 429
HTTP/1.1 429 Too Many Requests
Retry-After: 18
Content-Type: application/problem+json

Pagination

50 at a time, up to 200.

  • Lists return data and next_cursor. Ask for the next page with cursor; with next_cursor: null, you're done.
  • limit goes from 1 to 200; without it, 50. /v1/families comes in a single page.
  • A cursor only works for the same key, the same endpoint and the same filters. Otherwise, 400 invalid_cursor.
  • Ignore fields you don't recognize: a minor version may add some.
Request
curl -G https://api.fastik.es/v1/products \
  -d limit=200 \
  -d cursor=<next_cursor> \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "data": [
    {
      "id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
      "sku": "FIL-0042",
      "name": "Water filter",
      "family": "plumbing",
      "unit": "pcs",
      "current_stock": 12,
      "min_stock": 4,
      "reorder_qty": 10,
      "archived_at": null,
      "created_at": "2026-10-28T09:12:00.000Z",
      "updated_at": "2026-10-28T09:12:00.000Z"
    }
  ],
  "next_cursor": null
}

Errors

Every error, with its code.

Errors arrive as application/problem+json (RFC 9457). Decide by code, which doesn't change; detail is for people.

Each type links to its row in this table: https://fastik.es/desarrolladores/errores#<code>.

In an invalid batch, errors gives the item (index), the field (field) and the reason: required, invalid_type, invalid_value, out_of_range, not_allowed, invalid_characters (a space that isn't a regular one, an invisible or control character) or not_normalized (text not in NFC).

In a rejected delivery note (422 purchase_rejected), each item in errors is a line that doesn't go through: product_not_found, product_archived, id_conflict, atypical_cost or invalid_value (a sku that doesn't match its product_id).

Response · 403
HTTP/1.1 403 Forbidden
Content-Type: application/problem+json

{
  "type": "https://fastik.es/desarrolladores/errores#insufficient_scope",
  "title": "Insufficient scope",
  "status": 403,
  "code": "insufficient_scope",
  "detail": "Esta clave no tiene el permiso que pide la ruta."
}
The error codes
Code HTTP What happened What to do
#unauthorized 401 The API key is missing, invalid or no longer active. Check the Authorization header. If the key expired or was revoked, create another.
#insufficient_scope 403 This key doesn't have the scope the endpoint requires. Create a key with that scope.
#organization_suspended 403 The organization is suspended. Talk to your organization's manager.
#integrations_not_enabled 403 The integration isn't enabled for this organization. Ask FASTIK for the integration.
#not_found 404 That endpoint doesn't exist, or the product isn't in your organization. Check the endpoint and the id.
#method_not_allowed 405 That endpoint doesn't support that method. Use one of the methods in the Allow header.
#invalid_parameter 400 A parameter is invalid, or the key is in the URL. Fix what detail says. The key goes only in Authorization.
#invalid_body 400 The body isn't a valid batch. Fix the items in errors and resend the batch.
#payload_too_large 413 The body is over 256 KB. Split the batch: up to 100 items.
#unsupported_media_type 415 The body isn't application/json. Send Content-Type: application/json.
#reference_conflict 409 That reference already went in with different content, or with another key. Don't reuse it. If this is a resend after rotating the key, it already went in: look it up in GET /v1/purchases by its reference.
#purchase_rejected 422 A line on the delivery note was rejected; none went in. Fix the lines in errors and resend the whole document.
#invalid_cursor 400 The cursor doesn't belong to this key, endpoint or filters. Request the first page again, without cursor.
#rate_limited 429 Too many requests in the minute. Wait the seconds in Retry-After and retry.
#internal_error 500 Something went wrong. Retry in a moment. With the same id, a movement is never applied twice.
#temporarily_unavailable 503 This part is being updated. Retry after the seconds in Retry-After.

Endpoints

The v1 endpoints.

Base: https://api.fastik.es. All require the key except /v1/openapi.json, which is public. Lists are paginated with limit and cursor.

The v1 API endpoints
Method Endpoint What it returns Scope
GET /v1/me The key and the organization: for “Test the connection”. read
GET /v1/families The catalog families, in a single page. read
GET /v1/products Products, by updated_at. Without updated_since, archived ones are left out.updated_since · sku · family · include_archived read
POST /v1/products A batch of 1 to 100 creations or updates by sku. It never changes stock. catalog:write
GET /v1/products/{id} One product; 404 if it isn't in your organization. read
GET /v1/movements Movements, by recorded_at, excluding those from the last 2 seconds.since · until · product_id · type read
POST /v1/movements A batch of 1 to 100 withdrawals or restocks. Repeating an id never applies anything twice. movements:write
GET /v1/alerts Open stock alerts; with include_resolved_since, closed ones too.include_resolved_since read
GET /v1/costs The current unit cost of each product, excluding tax, by updated_at.updated_since costs:read
GET /v1/purchases Purchases, by registered_at; voided ones, with voided_at; those that came in through a key, with their reference.since costs:read
POST /v1/purchases A received delivery note of 1 to 100 lines: it goes in whole or not at all. Resending the same reference never applies anything twice. purchases:write
GET /v1/openapi.json This document, in OpenAPI 3.1. Public, no key. –

Each endpoint is documented like this:

GET /v1/me

The key you call with and your organization. Scope: read.

  • If you get 200, the key is valid and the integration is enabled.
Request
curl https://api.fastik.es/v1/me \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "key": {
    "id": "6a0f3b7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
    "name": "ERP",
    "prefix": "fk_live_3f9a1c07",
    "scopes": ["read"],
    "expires_at": "2027-10-28T09:12:00.000Z"
  },
  "organization": { "name": "Your organization" }
}

GET /v1/families

The catalog families, all in one page. Scope: read.

  • No limit or cursor: next_cursor is always null.
Request
curl https://api.fastik.es/v1/families \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "data": [
    {
      "key": "plumbing",
      "name": "Plumbing"
    }
  ],
  "next_cursor": null
}

GET /v1/products

Your organization's products, by updated_at. Scope: read.

Parameters

updated_since
ISO 8601 date: those changed since then.
sku
An exact SKU.
family
The key of a family from /v1/families.
include_archived
true or false. Without it, archived ones only appear with updated_since.
limit
From 1 to 200; without it, 50.
cursor
The next_cursor from the previous page.
Request
curl https://api.fastik.es/v1/products \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "data": [
    {
      "id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
      "sku": "FIL-0042",
      "name": "Water filter",
      "family": "plumbing",
      "unit": "pcs",
      "current_stock": 12,
      "min_stock": 4,
      "reorder_qty": 10,
      "archived_at": null,
      "created_at": "2026-10-28T09:12:00.000Z",
      "updated_at": "2026-10-28T09:12:00.000Z"
    }
  ],
  "next_cursor": null
}

POST /v1/products

Creates or updates 1 to 100 products, by your ERP's reference. Scope: catalog:write.

  • The sku is the key, exact: if it exists in your organization it's updated; if not, it's created. Each sku, once per batch.
  • On creation, name and unit_cost (excluding tax) are required; without them, rejected with name_required or unit_cost_required.
  • What you don't send stays as it is, the name included. family, unit, min_stock and reorder_qty are optional.
  • sku and name are not fixed for you: a space that isn't a regular one, or an invisible or control character, gives invalid_characters, and text not in NFC gives not_normalized.
  • unit_cost takes at most 4 decimals; floating-point noise (0.30000000000000004) is rounded.
  • Last write wins: if someone changed the product in the app, your request replaces it. Send only what changed in your ERP.
  • Stock is never touched: a new product starts at 0 and the initial stock goes in as a restock in POST /v1/movements.
  • Resending the same batch duplicates nothing: it returns unchanged. An archived product returns rejected with product_archived; so does one from an Excel import that was undone, until someone restores it in the app.
  • Your organization can undo one of your batches: creations nobody has touched are archived (your later requests for that sku return rejected with product_archived) and what changed goes back to its previous value. If your ERP only sends what changes, it won't send those values again: resend the whole product to restore them.
Request
curl -X POST https://api.fastik.es/v1/products \
  -H "Authorization: Bearer $FASTIK_API_KEY" \
  -H "Content-Type: application/json" \
  -d @batch.json
Body · batch.json
{
  "products": [
    {
      "sku": "FIL-0042",
      "name": "Water filter",
      "family": "plumbing",
      "unit": "pcs",
      "min_stock": 4,
      "reorder_qty": 10,
      "unit_cost": 3.5
    },
    {
      "sku": "LED-E27",
      "name": "LED bulb E27",
      "unit_cost": 2.1
    }
  ]
}
Response · 200
{
  "results": [
    {
      "sku": "FIL-0042",
      "status": "updated",
      "product_id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6"
    },
    {
      "sku": "LED-E27",
      "status": "created",
      "product_id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"
    }
  ]
}

GET /v1/products/{id}

A product from your organization. Scope: read.

Parameters

id
In the path: the product's UUID.
  • If the id isn't in your organization, 404 not_found, as if it didn't exist.
Request
curl https://api.fastik.es/v1/products/0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6 \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
  "sku": null,
  "name": "LED bulb E27",
  "family": null,
  "unit": "pcs",
  "current_stock": 0,
  "min_stock": 0,
  "reorder_qty": 0,
  "archived_at": null,
  "created_at": "2026-10-28T09:12:00.000Z",
  "updated_at": "2026-10-28T09:12:00.000Z"
}

GET /v1/movements

Your organization's movements, by recorded_at. Scope: read.

Parameters

since
Required. ISO 8601 date: from when.
until
ISO 8601 date: until when.
product_id
A product's UUID.
type
withdraw, restock or adjust.
limit
From 1 to 200; without it, 50.
cursor
The next_cursor from the previous page.
  • It doesn't return those from the last 2 seconds: they arrive in the next read.
  • person is only sent with «Datos de personas» turned on.
Request
curl "https://api.fastik.es/v1/movements?since=2026-10-27T23:55:00Z" \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "data": [
    {
      "id": "6a0f3b7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
      "product_id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
      "type": "withdraw",
      "quantity": 2,
      "delta": -2,
      "stock_after": 10,
      "reason": null,
      "occurred_at": "2026-10-28T09:12:00.000Z",
      "recorded_at": "2026-10-28T09:12:00.000Z",
      "source": "api",
      "api_key_id": "1b1b1b1b-1b1b-4b1b-8b1b-1b1b1b1b1b1b"
    }
  ],
  "next_cursor": null
}

POST /v1/movements

A batch of 1 to 100 withdrawals or restocks. Scope: movements:write.

  • Each movement carries its id, a UUID you generate, and the product by product_id or by sku.
  • type: withdraw or restock. quantity: a positive integer. occurred_at is optional.
  • adjust only appears when reading: when writing, the batch returns invalid_body with not_allowed.
  • Repeating an id never applies anything twice: if you don't know whether it arrived, resend the same batch.
  • Each item comes back applied or rejected, with its reason. The body, as application/json and up to 256 KB.
Request
curl -X POST https://api.fastik.es/v1/movements \
  -H "Authorization: Bearer $FASTIK_API_KEY" \
  -H "Content-Type: application/json" \
  -d @batch.json
Body · batch.json
{
  "movements": [
    {
      "id": "6a0f3b7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
      "product_id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
      "type": "withdraw",
      "quantity": 2,
      "occurred_at": "2026-10-28T09:12:00.000Z"
    },
    {
      "id": "7b1a4c8f-2d3e-4f50-9a6b-1c2d3e4f5a6b",
      "sku": "FIL-0042",
      "type": "restock",
      "quantity": 10
    }
  ]
}
Response · 200
{
  "results": [
    {
      "id": "6a0f3b7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
      "status": "applied",
      "stock": 10
    },
    {
      "id": "7b1a4c8f-2d3e-4f50-9a6b-1c2d3e4f5a6b",
      "status": "rejected",
      "stock": null,
      "reason": "product_not_found"
    }
  ]
}

GET /v1/alerts

Your organization's stock alerts. Scope: read.

Parameters

include_resolved_since
ISO 8601 date: adds those closed since then.
limit
From 1 to 200; without it, 50.
cursor
The next_cursor from the previous page.
Request
curl https://api.fastik.es/v1/alerts \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "data": [
    {
      "id": "6a0f3b7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
      "kind": "below_minimum",
      "product": {
        "id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
        "sku": "FIL-0042",
        "name": "Water filter",
        "unit": "pcs",
        "current_stock": 2,
        "min_stock": 4
      },
      "created_at": "2026-10-28T09:12:00.000Z",
      "resolved_at": null
    }
  ],
  "next_cursor": null
}

GET /v1/costs

The current unit cost of each product, excluding tax, by updated_at. Scope: costs:read.

Parameters

updated_since
ISO 8601 date: those changed since then.
limit
From 1 to 200; without it, 50.
cursor
The next_cursor from the previous page.
Request
curl https://api.fastik.es/v1/costs \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "data": [
    {
      "product_id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
      "unit_cost": 3.5,
      "tax_rate": null,
      "updated_at": "2026-10-28T09:12:00.000Z"
    }
  ],
  "currency": "EUR",
  "tax_label": "IGIC",
  "default_tax_rate": 0.07,
  "prices_include_tax": false,
  "next_cursor": null
}

GET /v1/purchases

Your organization's purchases, by registered_at. Scope: costs:read.

Parameters

since
Required. ISO 8601 date: from when.
limit
From 1 to 200; without it, 50.
cursor
The next_cursor from the previous page.
  • A voided purchase keeps appearing, with its voided_at.
  • Those that came in through POST /v1/purchases carry the reference of their delivery note and the api_key_id of the key; those from the app don't.
Request
curl "https://api.fastik.es/v1/purchases?since=2026-10-27T23:55:00Z" \
  -H "Authorization: Bearer $FASTIK_API_KEY"
Response · 200
{
  "data": [
    {
      "id": "6a0f3b7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
      "movement_id": "7b1a4c8f-2d3e-4f50-9a6b-1c2d3e4f5a6b",
      "product_id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
      "quantity": 10,
      "unit_cost": 3.5,
      "urgent": false,
      "registered_at": "2026-10-28T09:12:00.000Z",
      "voided_at": null,
      "reference": "ALB-2026-0042",
      "api_key_id": "1b1b1b1b-1b1b-4b1b-8b1b-1b1b1b1b1b1b"
    }
  ],
  "next_cursor": null
}

POST /v1/purchases

Records a delivery note or supplier invoice already received: each line goes in as a restock with its purchase and its cost. Scope: purchases:write.

  • A delivery note goes in whole or not at all: if one line is invalid, none goes in. Fix it in your ERP and resend the whole document with the same reference.
  • Each line carries its id (a UUID you generate: it's the movement's and the purchase's), the product by product_id or sku, quantity and unit_cost. The product must exist: create it first, with POST /v1/products.
  • unit_cost is the unit cost excluding tax, with at most 4 decimals, and it's required on every line. With applies_to_cost: false the purchase stores its cost without moving the average price.
  • A cost more than 3 times, or less than a third, of the current one rejects the delivery note with atypical_cost, unless the line carries confirm_atypical_cost: true.
  • received_at ranges from 30 days back to 5 minutes ahead; without it, now. A resend of a delivery note that already went in is accepted even if its date has left that window.
  • Resending is safe: the same reference with the same content returns duplicate, applying nothing. A reference is never reused: with different content it's 409 reference_conflict.
  • If your ERP sends delivery notes, don't also send unit_cost in POST /v1/products: the catalog cost overwrites the average price that purchases calculate.
  • A line that doesn't go in returns 422 purchase_rejected with every failing line in errors: product_not_found, product_archived, id_conflict, atypical_cost or invalid_value (a sku that doesn't match its product_id).
  • Voiding a delivery note is up to your organization, in the app: a key can't.
Request
curl -X POST https://api.fastik.es/v1/purchases \
  -H "Authorization: Bearer $FASTIK_API_KEY" \
  -H "Content-Type: application/json" \
  -d @batch.json
Body · batch.json
{
  "reference": "ALB-2026-0042",
  "received_at": "2026-10-28T09:12:00.000Z",
  "lines": [
    {
      "id": "6a0f3b7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
      "product_id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
      "quantity": 10,
      "unit_cost": 3.5
    },
    {
      "id": "7b1a4c8f-2d3e-4f50-9a6b-1c2d3e4f5a6b",
      "sku": "LED-E27",
      "quantity": 20,
      "unit_cost": 2.1
    }
  ]
}
Response · 200
{
  "status": "created",
  "receipt_id": "3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b",
  "reference": "ALB-2026-0042",
  "voided_at": null,
  "lines": [
    {
      "id": "6a0f3b7e-1c2d-4e5f-8a9b-0c1d2e3f4a5b",
      "product_id": "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6",
      "stock": 10,
      "cost_after": 3.5
    },
    {
      "id": "7b1a4c8f-2d3e-4f50-9a6b-1c2d3e4f5a6b",
      "product_id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
      "stock": 20,
      "cost_after": 2.1
    }
  ]
}

GET /v1/openapi.json

This document, in OpenAPI 3.1. Public, no key.

Request
curl https://api.fastik.es/v1/openapi.json
Response · 200
{ "openapi": "3.1.0" }

Guides

Two short guides.

Power Automate, Make or Zapier

  1. Use your tool's generic HTTP step. You don't need a FASTIK connector.

  2. Store the key in a connection or a secret, never in a visible step: anyone who opens the flow would see it.

  3. Test with GET /v1/me. Then schedule the endpoint you need; for example, GET /v1/alerts every hour.

  4. If a 429 comes back, let the flow retry after the seconds in Retry-After.

Pull consumption into your ERP

  1. Once a day, call GET /v1/movements with since = the time of the previous read minus 5 minutes.

  2. Follow next_cursor until it's null.

  3. Discard the ids you already have: the overlap repeats some on purpose.

  4. Store this read's time for tomorrow's.

Daily request
curl -G https://api.fastik.es/v1/movements \
  -d since=2026-10-27T23:55:00Z \
  -d type=withdraw \
  -H "Authorization: Bearer $FASTIK_API_KEY"

Version 1.0.0. A compatible change (a new field or endpoint) bumps the minor number and is noted here. A breaking one would be a /v2, with 6 months of overlap.

Download openapi-v1.json →