Skip to main content

orders

Manage orders, fulfillments, refunds, and logistics. Includes 5 shortcut commands and 36 API commands.

Shortcuts

Search orders by keyword, status, or date range.

shoplazza orders +search [flags]
FlagTypeDescription
--keywordstringOrder number, customer name, email, etc.
--statusstringOrder status: opened, placed, finished, cancelled
--financial-statusstringFinancial status: waiting, paying, authorized, partially_paid, paid, cancelled, failed, refunded
--fulfillment-statusstringFulfillment status: initialled, waiting, partially_shipped, shipped, finished, cancelled, returned
--customer-idstringFilter by customer ID
--sincestringStart time (ISO date or unix timestamp)
--untilstringEnd time (ISO date or unix timestamp)
--page-limitintPage size (1–250)
shoplazza orders +search
shoplazza orders +search --keyword "John"
shoplazza orders +search --status opened --financial-status paid
shoplazza orders +search --since 2026-01-01 --until 2026-06-30
shoplazza orders +search --customer-id <id> --page-limit 50

+count

Count orders matching criteria.

shoplazza orders +count [flags]
FlagTypeDescription
--statusstringOrder status filter
--financial-statusstringFinancial status filter
--fulfillment-statusstringFulfillment status filter
--sincestringStart time
--untilstringEnd time
shoplazza orders +count
shoplazza orders +count --status opened --financial-status paid
shoplazza orders +count --since 2026-01-01 --until 2026-06-30

+ship

Create a fulfillment for an order.

shoplazza orders +ship [flags]
FlagTypeRequiredDescription
--order-idstringYesOrder ID
--trackingstringYesTracking number
--companystringCarrier name (e.g. DHL, UPS)
--company-codestringCarrier code
--line-itemsstringLine item quantities (format: line-id:qty,...; defaults to all)
--notifyboolNotify customer
shoplazza orders +ship --order-id <id> --tracking 1234567890
shoplazza orders +ship --order-id <id> --tracking 1234567890 --company DHL --notify
shoplazza orders +ship --order-id <id> --tracking 1234567890 --line-items "line1:2,line2:1"

+refund

Create a refund for an order.

shoplazza orders +refund [flags]
FlagTypeRequiredDescription
--order-idstringYesOrder ID
--amountstringYesRefund amount (e.g. 29.99)
--payment-line-idstringPayment line ID (required for multiple payment lines)
--notestringRefund note
--return-itemsboolReturn items to inventory
shoplazza orders +refund --order-id <id> --amount 29.99
shoplazza orders +refund --order-id <id> --amount 29.99 --note "Customer request" --return-items
shoplazza orders +refund --order-id <id> --amount 29.99 --payment-line-id <id>

+update-tracking

Update tracking information for a fulfillment.

shoplazza orders +update-tracking [flags]
FlagTypeRequiredDescription
--order-idstringYesOrder ID
--fulfillment-idstringYesFulfillment ID
--trackingstringYesNew tracking number
--companystringCarrier name
--tracking-urlstringCustom tracking URL
--notifyboolNotify customer
shoplazza orders +update-tracking --order-id <id> --fulfillment-id <id> --tracking NEW123
shoplazza orders +update-tracking --order-id <id> --fulfillment-id <id> --tracking NEW123 \
--company UPS --tracking-url "https://..." --notify

API commands

All dynamic API commands share these flags:

FlagShortDescription
--paramsPath/query parameters as JSON
--dataRequest body as JSON
--jq-qjq expression to filter output
--dry-runPreview the request without executing

orders

shoplazza orders list
shoplazza orders get --params '{"order_id":"123"}'
shoplazza orders get-by-number --params '{"number":"1001"}'
shoplazza orders create --data @order.json
shoplazza orders update --params '{"order_id":"123"}' --data @order.json
shoplazza orders delete --params '{"order_id":"123"}'
shoplazza orders cancel --params '{"order_id":"123"}'
shoplazza orders pay --params '{"order_id":"123"}'
shoplazza orders count

orders fulfillments

shoplazza orders fulfillments list --params '{"order_id":"123"}'
shoplazza orders fulfillments get --params '{"order_id":"123","fulfillment_id":"456"}'
shoplazza orders fulfillments create --params '{"order_id":"123"}' --data @fulfillment.json
shoplazza orders fulfillments update --params '{"order_id":"123","fulfillment_id":"456"}' --data @fulfillment.json
shoplazza orders fulfillments complete --params '{"order_id":"123","fulfillment_id":"456"}'
shoplazza orders fulfillments cancel --params '{"order_id":"123","fulfillment_id":"456"}'
shoplazza orders fulfillments count --params '{"order_id":"123"}'

orders refunds

shoplazza orders refunds list --params '{"order_id":"123"}'
shoplazza orders refunds list-by-order --params '{"order_id":"123"}'
shoplazza orders refunds create --data @refund.json
shoplazza orders refunds count

orders post-sales

shoplazza orders post-sales list
shoplazza orders post-sales delete --params '{"id":"123"}'

orders risks

shoplazza orders risks list --params '{"order_id":"123"}'
shoplazza orders risks get --params '{"order_id":"123","risk_id":"456"}'
shoplazza orders risks create --params '{"order_id":"123"}' --data @risk.json
shoplazza orders risks update --params '{"order_id":"123","risk_id":"456"}' --data @risk.json
shoplazza orders risks delete --params '{"order_id":"123","risk_id":"456"}'

orders transactions

shoplazza orders transactions list --params '{"order_id":"123"}'

orders shipping-schemas

shoplazza orders shipping-schemas get-general
shoplazza orders shipping-schemas save-general --data @schema.json
shoplazza orders shipping-schemas create-zone --data @zone.json
shoplazza orders shipping-schemas update-zone --params '{"id":"123"}' --data @zone.json
shoplazza orders shipping-schemas delete-zone --params '{"id":"123"}'
shoplazza orders shipping-schemas get-available-lines

orders tracking-carriers

shoplazza orders tracking-carriers list
shoplazza orders tracking-carriers detect --data '{"tracking_number":"1234567890"}'

Schema introspection

shoplazza schema orders
shoplazza schema orders.fulfillments.create