Skip to main content
POST
/
api
/
products
/
create-from-ean-registry
Create product from EAN registry
curl --request POST \
  --url https://app.buylo.ai/api/products/create-from-ean-registry \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ean": "8594001524129",
  "epc_ids": [
    "E2004001020304",
    "E2004001020305"
  ]
}
'
{
  "data": {
    "id": 123,
    "product_id": "ABC123",
    "name": "Brazil Santos Coffee",
    "category": "Coffee",
    "description": "Roasted Arabica coffee beans from Brazil",
    "ean": "8594001524129",
    "ean_registry_id": 42,
    "brand": "CoffeeCo",
    "sale_price": 199.99,
    "sale_price_currency": {},
    "vat_rate": 21,
    "unit": "kg",
    "product_data": {},
    "epc_hashes": [],
    "warehouse_nodes": [],
    "created_at": "2025-08-06T12:00:00Z",
    "updated_at": "2025-08-06T12:30:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.buylo.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ean
string
required

European Article Number. Digits only; any length.

Pattern: ^\d+$
Example:

"8594001524129"

epc_ids
string[] | null

Optional. If provided, these EPC IDs are attached to the newly created product in the same transaction.

Example:
["E2004001020304", "E2004001020305"]

Response

Product successfully created from EAN registry

data
object
required