Products

Creates a new product

post/products

Request body

codestring required

Product code (unique identifier)

descriptionstring required

Description of the product

Example request

{
  "code": "PROD_001",
  "description": "Premium subscription service",
  "seller": {
    "role": "seller"
  }
}

Response

Success

Example response

{
  "data": {
    "workspaceId": "ws_1234567890",
    "code": "PROD_001",
    "description": "Premium subscription service",
    "seller": {
      "role": "seller"
    },
    "updateVersion": 1,
    "created": "2024-01-13T00:00:00Z"
  }
}

Changes