Skip to main content
POST
/
api
/
antennas
/
{antenna_uuid}
/
product-epc
Create or update product and assign EPC on an antenna
curl --request POST \
  --url https://app.buylo.ai/api/antennas/{antenna_uuid}/product-epc \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "product_id": "ABC123",
  "name": {
    "en": "Brazil Santos Coffee",
    "cs": "Brazilská káva Santos"
  },
  "category": "Coffee",
  "description": {
    "en": "Roasted Arabica coffee beans from Brazil",
    "cs": "Pražená arabica z Brazílie"
  },
  "ean": "8591234567890",
  "brand": "CoffeeCo",
  "prices": [
    {
      "currency": "EUR",
      "price": 199.99
    },
    {
      "currency": "CZK",
      "price": 4999
    }
  ],
  "vat_rate": 21,
  "unit": "kg",
  "product_data": {
    "color": "red",
    "size": "L"
  }
}
'
{
  "data": {
    "product_epc_hashes": [
      "8aaedfc3559d0ce545ca55bcea31aad2",
      "2b1c7f8c2aab4e33a5e09a2d77f3b611"
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

antenna_uuid
string
required

Query Parameters

allowed_tags_on_antenna
number
default:1

Allowed number of RFID tags detected on the antenna. Defaults to 1.

Body

application/json
product_id
string
required

Your Unique product identifier

Example:

"ABC123"

name
object

Product name with translations

Example:
{
"en": "Brazil Santos Coffee",
"cs": "Brazilská káva Santos"
}
category
string | null

Product category

Maximum string length: 255
Example:

"Coffee"

description
object

Product description with translations

Example:
{
"en": "Roasted Arabica coffee beans from Brazil",
"cs": "Pražená arabica z Brazílie"
}
ean
string | null

European Article Number

Maximum string length: 255
Example:

"8591234567890"

brand
string | null

Brand name of the product

Maximum string length: 255
Example:

"CoffeeCo"

prices
object[] | null

Array of prices in different currencies

Example:
[
{ "currency": "EUR", "price": 199.99 },
{ "currency": "CZK", "price": 4999 }
]
vat_rate
number<float> | null

VAT rate percentage

Required range: x >= 0
Example:

21

unit
string | null

Unit of measurement

Maximum string length: 50
Example:

"kg"

product_data
object

Free additional product data

Example:
{ "color": "red", "size": "L" }

Response

Created or updated product and assigned EPC

data
object
required