Sign in

Create or update order

documented

Create or update an order.

POST /orders/createorupdateorderOrdersno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://ssapi.shipstation.com/orders/createorder" \
  -X POST \
  -H "Host: ssapi.shipstation.com" \
  -H "Authorization: Basic {{SHIPSTATION_AUTH_B64}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{ \
    "orderNumber": "{{$orderNumber}}", \
    "orderKey": "{{$orderKey}}", \
    "orderDate": "{{$orderDate}}", \
    "paymentDate": "{{$paymentDate}}", \
    "shipByDate": "{{$shipByDate}}", \
    "orderStatus": "{{$orderStatus}}", \
    "customerUsername": "{{$customerUsername}}", \
    "customerEmail": "{{$customerEmail}}", \
    "billTo": { \
      "name": "{{$billToName}}", \
      "street1": "{{$billToStreet1}}", \
      "city": "{{$billToCity}}", \
      "state": "{{$billToState}}", \
      "postalCode": "{{$billToPostalCode}}", \
      "country": "{{$billToCountry}}" \
    }, \
    "shipTo": { \
      "name": "{{$shipToName}}", \
      "street1": "{{$shipToStreet1}}", \
      "city": "{{$shipToCity}}", \
      "state": "{{$shipToState}}", \
      "postalCode": "{{$shipToPostalCode}}", \
      "country": "{{$shipToCountry}}" \
    }, \
    "items": [ \
      { \
        "lineItemKey": "{{$lineItemKey}}", \
        "sku": "{{$sku}}", \
        "name": "{{$itemName}}", \
        "quantity": {{$quantity}}, \
        "unitPrice": {{$unitPrice}} \
      } \
    ] \
  }'"}