Skip to main content

What’s new at Endless

Developer changelog

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

improvement

Include the file size when requesting an upload

When requesting an upload link through preSignedUrl, include FileUploadInput.fileSize. Files must be 25 MB or smaller, and the uploaded file must match the declared size.

Rejected upload requests now return a validation error with code E0004, rather than upload_request or an empty result. Update any code that relies on those earlier failure responses.

improvement

Read shipping instructions from the fulfillment

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.

improvement

Check whether a fulfillment is enabled for processing

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.

improvement

Update queries that read integration capabilities

If your app checks which actions an integration supports, update queries on Integration or IntegrationType to select capabilities { key }. Selecting capabilities without subfields now fails validation.

Compare the returned key with the capability name your app previously read as a string.

improvement

Read fulfillment and shipment quantities from tally

If your app reads quantities from OrderItem.coverage or FulfillmentItem.coverage, switch to tally on the same type. The old fields are removed, so queries that still select them fail validation.

Use onFulfillment and onShipment to read quantities assigned to fulfillments and shipments. onInvoice counts only items referenced directly by an invoice; it does not combine quantities across bundles and their components.

improvement

Plan the change to carrier-mapping requests

If your app manages carrier mappings, move from customCarrierMappings, createCustomCarrierMapping, and removeCustomCarrierMappings to integrationCarrierMappings(integrationId:), integrationsCarrierMappingCreate, and integrationsCarrierMappingDelete. The older operations still work; a removal date has not been scheduled.

The replacement query returns system mappings as well as custom mappings. Filter to the CUSTOM source if your app should show only custom mappings.

improvement

Replace removed attribute definition operations

The nine per-entity operations are removed: productAttributeDefinitions, mediaAttributeDefinitions, customerAttributeDefinitions, addProductAttributeDefinitions, updateProductAttributeDefinitions, mediaAttributeDefinitionAdd, mediaAttributeDefinitionUpdate, addCustomerAttributeDefinition, and updateCustomerAttributeDefinition. Requests using these operations fail schema validation. Their brief deprecation period ended on October 14.

Attribute definitions for products, customers, and images now use attributeDefinitions(entityType:), attributesAddDefinition, and attributesUpdateDefinition. The mutations take an entityType, change one definition per call, and return the definition directly. They do not return result, status, message, or processId. Existing permissions still apply.

Use showInList instead of showInProductList, and remove brand from definition selections. Omitted settings keep their current values. Definition names must be unique within a company and entity type, and addProductAttributes rejects duplicate definitions in one request.

improvement

Migrate deprecated warehouse connection operations

warehouseAddExternalRelation, warehouseUpdateExternalRelation, and warehouseRemoveExternalRelation are deprecated. Migrate to buildingIntegrationConnectionsCreate, buildingIntegrationConnectionsUpdate, and buildingIntegrationConnectionsRemove. The old operations still work.

The warehouseExternal query and Warehouse.externalData are also deprecated. Read buildingIntegrationConnections on Warehouse or Integration instead. Create takes buildingId and integrationId; update and remove take connectionId. A building can have only one active connection to an integration.

feature

Migrate removed order coverage fields and numeric invoice coverage

v2Order.orderItemCoverage and the coverage-only fulfillment item type are removed without aliases. Queries selecting them fail validation. Read coverage on sales and fulfillment items instead.

onInvoice now returns a number, including zero when the order has no accounting documents. It no longer uses null to mean unknown. Fulfillment item quantities use the item’s product units; sales item quantities count complete bundles after pooling components. Partial bundles are not rounded up.

Removing a sales line with shipment records now preserves the line at quantity zero. Clients must not assume that a removed line disappears from the response.

improvement

Product Component Settings Are Renamed, And `decompositionStrategy` Is Removed

Products have two component settings: fulfillWithComponents and inventoryIncludesComponents. Both are available on product queries, create and update inputs, and imports. The old API names are removed, and a query or mutation that still uses one fails validation.

fulfillWithComponents takes AUTO, YES, or NO. It replaces decompositionStrategy on products and the short-lived fulfillWith. AUTO keeps the product line when its stock covers the entire line and otherwise uses components for the whole line. YES always creates component lines. NO keeps the product line. New aliases and bundles default to AUTO, and other product types default to NO. Manual decomposition works with every value. Existing products were reset by product type when this shipped.

inventoryIncludesComponents replaces includeComponentsInAvailableToSell. It is a Boolean with the same meaning, and it defaults to true for aliases and bundles and false for other product types.

Fulfillment rules no longer have decompositionStrategy, so omit it. Endless applies the product setting when it creates a fulfillment, not as a delayed step or when a rule is assigned. It skips the setting for fulfillments whose processInEndless is false.