#!/bin/bash
# CreateOutboundShipment -- 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/CreateOutboundShipment" \
  -H "Authorization: Bearer ${TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "warehouseCode": "BEY1",
    "carrierCode": "UPS",
    "serviceLevelCode": "2DAY",
    "referenceNo": "ORD-98765",
    "countryCode": "US",
    "state": "CA",
    "city": "San Diego",
    "address1": "123 Ocean Blvd",
    "zipcode": "92101",
    "name": "John Smith",
    "phone": "555-123-4567",
    "items": [
      {
        "quantity": 2,
        "lineNo": 1,
        "criticalPullTime": "2026-04-20T14:00:00Z",
        "productSku": "SKU-001"
      }
    ]
  }'
