Skip to main content

What’s new at Endless

Developer changelog

API changes, deprecations, and important updates for your integrations.

improvement

API Keys Can Delete Notes They Wrote

removeNote now works when it is called with an API key on a note that the same key wrote. Before, the call failed with “The performer party is not valid.”

What stays the same:

  • Editing a note is limited to its author.
  • Deleting a note written by someone else still requires notes:remove_others.

Check integrations that handled the old error by leaving stale notes in place or by retrying. They can now delete the notes they created.

improvement

Product Terms Price Resolution Changes

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:

  1. The customer’s quantity tier. This applies only when ProductTermsSalesPriceInput.customerId is sent. A customer from another company is rejected.
  2. The sales channel’s quantity tier.
  3. The product’s default price type: MSRP, MAP, wholesale, or dropship.
  4. 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.

improvement

Shipment Create Splits Shared SKUs and Update Checks the Warehouse Report

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.

improvement

The GS1 Prefix Moves to Endless EDI Integration Settings

Check integrations that read or set the GS1 prefix on an integration. IntegrationDetails.companyGs1Prefix, IntegrationDetails.companyGs1PrefixId, and UpdateIntegrationInput.companyGs1PrefixId are removed. A query that selects the fields fails with an unknown-field error, and updateIntegration no longer accepts the argument.

The prefix is now the company_gs1_prefix_id setting on an Endless EDI integration. Read it with settingsByEntity and save it with settingsSaveEntity, using entityType: INTEGRATION. Set it to null to clear it. Saving an ID that is not an active registered prefix fails with “GS1 prefix not found”.

companyGs1Prefixes accepts a new id filter to look up one registered prefix.

improvement

productsRecentUsedTags Is Removed

The productsRecentUsedTags query is removed, along with its input and the ProductUsedTag type. A query that selects any of them fails with an unknown-field error. There is no deprecation period, and the old query does not still work.

Replace it with productTagOptions(keyword, limit):

  • It returns the company’s tags with product counts, color, and icon.
  • Pass keyword to narrow the list and limit to cap it.
  • Archived tags are left out.
  • The products:read_tags permission still applies.

productTagOptions is not a drop-in match. productsRecentUsedTags ordered tags by recent use, so check how your integration orders and displays the list.

improvement

Single-Item Decompose and Recompose Mutations Are Deprecated

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.

improvement

The Order Type Now Serves Current Orders, and V2 Names Are Deprecated

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.
improvement

revertFulfillmentToAllocated Refuses Draft Fulfillments

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.

improvement

Legacy Orders Are Read-Only in the API, and createOrder Is Removed

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.

improvement

Unexpected API Errors Return a Generic Message

Check integrations that read the message of a GraphQL error. In production, an unexpected server error now returns “Something went wrong. Please try again.” with extensions.name set to InternalServerError and extensions.status set to 500. A record that is not found or invalid returns the E0001 code with a generic message in place of the original text.

Do not match on the old message text. Use extensions.code instead.