#!/bin/bash
# CreateInboundShipment -- 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/CreateInboundShipment" \
  -H "Authorization: Bearer ${TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "referenceNo": "PO-12345",
    "warehouseCode": "BEY1",
    "warehousePO": "WH-PO-001",
    "items": [
      {
        "productSku": "ABC123",
        "quantity": 10,
        "lineNo": 1,
        "upc": 123456789012,
        "description": "Widget A",
        "supplierSku": "SUPP-001"
      }
    ]
  }'
