#!/bin/bash
# AddProduct -- REST curl example
# Pre-configured for the DM Web Services test environment.
# Replace YOUR_TOKEN below with your Bearer token.

BASE_URL="https://webservices.nebulasuite.net"
TOKEN="YOUR_TOKEN"

curl -X POST "${BASE_URL}/api/client/beyond/v1/shipping/AddProduct" \
  -H "Authorization: Bearer ${TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "productSku": "SKU-001",
    "referenceNo": "REF-001",
    "productTitle": "Widget A",
    "productWeight": 2.5,
    "productNetWeight": 2.2,
    "productLength": 12.0,
    "productWidth": 8.0,
    "productHeight": 4.0,
    "productDeclaredValue": 29.99,
    "productDescription": "Standard widget for general use",
    "supplierSku": "SUPP-SKU-001",
    "shipmentType": "NON_SHIP_ALONE"
  }'
