productTerms and unitPriceForQuantity now resolve a price from more sources. For some requests, the price they return changes.
Price sources are checked in this order, and the first match wins:
The customer’s quantity tier. This applies only when ProductTermsSalesPriceInput.customerId is sent. A customer from another company is rejected.
The sales channel’s quantity tier.
The product’s default price type: MSRP, MAP, wholesale, or dropship.
MSRP.
What changes for existing callers:
A price break with no minimum quantity is now a base price at any quantity. Before, productTerms skipped it and returned MSRP. A call that used to return MSRP can now return a channel or customer base price.
ProductTermSourceEnum has new values: CUSTOMER_PRICE, MAP, WHOLESALE, and DROPSHIP. Check any code that switches on the source and add a case for each.
unitPriceForQuantity uses the same rules. It returns null below quantity 1 and for another company’s customer.
A product with no default price type still resolves to MSRP, so a call that sends no customerId and meets no base price returns what it did before.
Two shipment mutations validate quantities differently. Check integrations that call either one.
orderShipmentCreate:
A quantity for a SKU that several fulfillment items share is now split across those items. The items must be the same product and unit, and the quantity must fill exactly what they have left to ship.
Before, each such quantity needed a fulfillmentItemId.
A quantity that does not fill the items exactly is still refused.
orderShipmentUpdate:
An edit that raises a SKU above what the warehouse reported now fails with E_SHIPMENT_EXCEEDS_REPORT. The message names each SKU and the units over.
Lowering a quantity is always allowed.
allowExceedingFulfillment does not bypass the check.
Shipments without a warehouse report, updates from integrations, and Mark fulfilled are not affected.
If your integration edits shipment items after a warehouse has reported, handle E_SHIPMENT_EXCEEDS_REPORT and stay within the reported quantities.
decomposeFulfillmentItem and recomposeFulfillmentItem are marked deprecated. Use fulfillmentOrderItemDecompose and fulfillmentOrderItemRecompose. The old mutations still work, and no removal date is set.
To act on many fulfillments, use fulfillmentOrdersDecompose and fulfillmentOrdersRecompose. A decompose now replaces a fulfillment’s lines using the product’s active recipe, and a fulfillment with an invalid recipe returns an error before any of its lines change.
The Order type now returns every field that V2Order returns, for current and legacy orders. The order query and order lists no longer need v2Order to reach current-order fields.
Three mutations replace the versioned names: ordersCancel, ordersUncancel, and ordersReset. v2Order, cancelOrderV2, uncancelOrderV2, and resetOrderV2 are deprecated. cancelOrder and ordersCancelInBulk are also deprecated in favor of ordersCancel. All of them still work, and no removal date is set. V2Order and the V2* input types keep their names.
Check these changes to existing results:
Order.orderType returns DTC for orders stored as standard. It used to fail, and those orders were dropped from any list that selected the field. Lists that select orderType now return them.
Current orders return their shipping and billing addresses on Order. They were null.
Order.notes includes notes saved under either order system.
canBeArchived and archiveBlockingReasons follow the rules the archive mutation applies to each order system, so some answers change.
V2Order.firstShipDate returns a value instead of failing, and previousStatus returns the previous status instead of null.
revertFulfillmentToAllocated used to accept a draft fulfillment. The fulfillment moved to allocated without claiming any stock, so Available to Sell was too high. The mutation now accepts only fulfillments that are ready, in progress, or failed to fulfill.
It returns a 422 for every other state. A draft fulfillment gets a message that it does not hold inventory and should be allocated instead. An allocated fulfillment gets a message that it is already allocated. If your integration calls this mutation on drafts, allocate them instead. Ready, in progress, and failed to fulfill fulfillments behave as before.
The migration to the current order system is complete, and legacy orders are read-only. Check integrations that write to them.
orderShipmentCreate, orderShipmentUpdate, and the fulfillment update operations now fail with “Order not found” for a legacy order, and nothing is recorded. Before, these calls could add a shipment to a legacy order or change its fulfillment state. Approving, canceling, and holding an order also treat a legacy order as not found, and return the current order error messages.
The createOrder mutation, its input type, and its status type are removed from the schema. It had already stopped creating orders and returned “Orders V1 creation is disabled.” A call now fails with an unknown-field error. Create orders with createDraftOrder or createPendingOrder. Orders from the current order system behave as before.
Check integrations that send notes on customers. This applies to createCustomer, updateCustomer, bulkCreateCustomers, bulkUpdateCustomers, and the customers CSV import.
A non-blank notes value now adds a note to the customer’s notes list, authored by the caller. Before, it overwrote a single text value that the app showed apart from other notes as “Existing note.” Every call adds a new note and keeps the earlier ones, including a repeated CSV import, so resending the same value creates duplicates. An update can send notes as its only field. A note under 3 characters returns BAD_REQUEST before anything is saved. A blank or null value adds nothing.
Customer.notes is deprecated and no longer reflects new notes. Read the notes list instead. No removal date is set.
Check integrations that cancel shipments or revert fulfillments, or that read allocated and available counts afterward.
Canceling an order shipment, editing it so the fulfillment is no longer fully shipped, or reverting a fulfillment to Allocated now puts the units back on hand and keeps them allocated to the fulfillment. Before, the units were released and counted as available while the fulfillment still needed them. Canceling a fulfillment still releases them. If the order is already canceled, the units are released.
Use the fulfillment’s carrier service when arranging shipping. A new fulfillment copies the order’s carrier service when one is set, but later changes to the order do not update existing fulfillments.
Read requestedCarrierService, requestedCarrierServiceId, or requestedCarrierServiceName on the fulfillment. The older effectiveRequestedCarrierService and effectiveRequestedCarrierServiceName fields are deprecated but still work.
A fulfillment can follow updates from its source without being processed by Endless. Read processingEnabled on the fulfillment or building connection. When it is disabled, explicitly enable processing before asking Endless to process the fulfillment. The older processInEndless and processFulfillmentsInEndless names still work as aliases.
fulfilledBy and fulfilledById identify the integration expected to report shipments, or return null. They no longer identify the person who created a local fulfillment. If your app assigns fulfillment processing rules, those writes now fail; use an automation with Process Fulfillment instead.