Create a Product
Create a product as an authenticated issuer.
Endpoint Information
- Method: POST
- URL:
/v1/{chain}/product/create
- Authentication Required: Yes
Authentication
An up-to-date Bearer PASETO token must be provided in the Authorization
header.
Request body
The request body must include:
data
– A JSON object containing the product data
Example request
{
"issuerBusinessId": "1234567-8",
"data": {
"productId": "9359502000041",
"weight": {
"value": "500",
"unit": "g",
},
"image": "https://ipfs.io/ipfs/...",
"description": "Plain T-shirt",
"manufacturer": {
"name": "Example company"
},
"batch": {
"batchId": "5698754215",
"manufacturedDate": "Wed Aug 28 2024",
"provenance": [
{
"country": "FI",
"percentage": 100
}
],
},
},
}