Create Product

Creates a new product in the system.

Endpoint

POST /products

Authentication

Required: Authorization header with valid token

Request Body

{
  "title": "string",
  "externalId": "string",
  "number": "string",
  "additionalInformation": "string",
  "defaultQuantity": "number",
  "defaultPeriodType": "enum",
  "type": "enum",
  "unitType": "enum",
  "priceList": []
}

Required Fields

  • title - The name of the product
  • type - Indicates the nature of the item (RESOURCE or SERVICE)
  • unitType - The unit in which this resource is measured
  • priceList - Array of pricing records

Fields description see here

Response

Success

ProductEntity Schema

GeneralError

GeneralErrorResponse Schema

Example Usage

curl -X POST "https://integration-api.ram.syniotec.com/master-data/v1/product-management/products" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Excavator Rental Service",
    "type": "SERVICE",
    "unitType": "DAYS",
    "defaultQuantity": 1,
    "priceList": [
      {
        "from": 1,
        "price": 100.00
      },
      {
        "from": 3,
        "price": 70.00
      }
    ]
  }'