Finders

Use narrowed root endpoints to find typed resources before fetching exact detail, order context, or attached documents.

Choose the lookup for the job

Use the narrowest directory or lookup that matches the information already available:

JobEndpoint shapeUse it for
Entity ResolutionGET /entity-resolution?q=...&class=...Choosing one authorized customer, supplier, product, product family, sales order, purchase order, or salesperson ID from familiar wording.
TagsGET /tags and GET /tagged-recordsBrowsing the organization tag vocabulary and finding authorized records carrying one exact tag.
Product DirectoryGET /product-directoryFinding products and product families by UN/NA number, CAS number, hazard class, packing group, or name.
Reference directoryGET /reference/customers or /reference/suppliersActive customer and supplier matching hints for local caches. This is not full profile detail.
Account setup referencesGET /representatives, /payment-terms, or /reference/ledger-accountsResolving representatives, payment terms, and eligible supplier cost accounts before a profile write.
SearchGET /search?q=...Existing broad discovery across customers, suppliers, contacts, products, sales orders, purchase orders, and locations.
FinderGET /customers?q=...Typed lookup when the workflow already knows the resource family and at least one narrowing predicate.
DetailGET /customers/{id}Hydrating one selected id after search or a finder returns the candidate.
Attached documentsGET /products/{id}/documentsReading file links attached to one selected customer, supplier, or product parent.
Write readinessPOST /notes?dryRun=trueChecking a supported write before execution without mutating records.
Product setup referencesGET /product-families?q=...Resolving product family and packaging references before bounded product catalog writes.
ReportsGET /reportsDiscovering and running available sales, purchasing, open-order, pipeline, and customer receivables views.
Cost BookGET /cost-book-entriesReading current costs or exact product, supplier, and ship-from-location history.

Company and product finders require a supported narrowing filter. Supported finders can narrow by who entered a record or when it was entered. Order finders also accept exact identifiers, status, related records, product criteria, business-date windows, or last-updated windows. Opportunity finders support focused filtering or authorized browsing with signed continuation.

Use Entity Resolution for new single-record binding. Use Tags or Product Directory when the source information is an exact tag or product identifier. Use the reference directory when a local tool needs active customer/supplier hints for matching, and use a typed finder when the resource family and narrowing filters are already known. Existing connections can continue using search for broad discovery. Use detail and parent-scoped document endpoints only after selecting a visible record. Use reports for allowed aggregate rollups, not as substitutes for finders or detail reads.

Company and product finders

EndpointScopeNarrow with
GET /customerscustomers:readq, exact externalId, pipelineStatus, creator or created time, account ownership, setup details, or qualifying shipped-sales activity.
GET /supplierssuppliers:readq, exact externalId, creator, created time, or carrier=true or carrier=false.
GET /productsproducts:readq, exact code, exact externalId, or supplierId

Product creation filters are available through GET /product-directory, where they can be combined with the directory's product and product-family identity filters. Orders, purchase orders, opportunities, lots, Cost Book entries, Price Book entries, and certification records support the same createdById, createdFrom, and createdTo pattern. See Created records for the complete route list and examples.

Optional limit caps response size. includeArchived is explicit; archived records are never write targets.

Supplier carriers

GET /suppliers?carrier=true finds suppliers with carrier profiles; carrier=false finds suppliers without them. Either value is a sufficient narrowing filter by itself, and omitting carrier leaves carrier status unrestricted. Results include carrierProfile so a workflow can review transportation details alongside supplier identity.

Continue with meta.nextCursor as cursor, keeping the first page’s filters and limit unchanged. See Supplier carriers for exact profile reads and maintenance.

Customer ownership, setup, and shipped sales

The customer finder can narrow the current customer population with:

  • salesPersonId for any active-location assignment.
  • ownership=all, mine, or unassigned (salesOwnership remains the earlier name). Mine follows the default salesperson; unassigned means no default salesperson on any active location.
  • setupIssues=missing_account_owner, missing_payment_terms, no_primary, or ambiguous_primary. Multiple values use any-of matching.
  • salesActivity=any or none together with both salesFrom and salesTo as inclusive organization-calendar dates.

Shipped-sales filtering also requires the acting person's current Sales Performance viewing access. Customer discovery without an activity filter remains available under its normal customer access.

curl "$SHELFCYCLE_API_BASE_URL/customers?ownership=mine&setupIssues=missing_payment_terms&limit=25" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY"

curl "$SHELFCYCLE_API_BASE_URL/customers?salesActivity=none&salesFrom=2026-01-01&salesTo=2026-09-08&limit=25" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY"

Results include owners from every active location, primary account owner, payment terms, customer-service representative, commercialTermsState, location coverage, and the applied shipped-sales basis. Qualifying shipped sales use the dates and activity definition returned with the response.

Continue with meta.nextCursor as cursor, keeping the first page’s filters and limit unchanged. Customer pages are current-state reads, so deduplicate by customer ID and use the returned updatedAt values when reconciling later changes.

Company reference directories

EndpointScopeUse it for
GET /reference/customerscompany-reference:readCursor-paged active customer matching hints.
GET /reference/supplierscompany-reference:readCursor-paged active supplier matching hints.
GET /representativescompany-reference:readSalesperson, customer-service, and supplier representatives by kind, name, or source ID.
GET /payment-termscompany-reference:readPayment-term identities and their exact net and discount values.
GET /reference/ledger-accountscompany-reference:readEligible ledger-account metadata for supplier cost-account selection.

Customer and supplier reference rows are active matching hints sorted by id_asc. They can include display names, source IDs, alternate names, website hosts, email domains, one phone, city, state, country, status, updatedAt, and URL.

Representative, payment-term, and ledger-account directories are sorted by name and ID. Representative identity always includes kind; payment terms return their exact financial definition; ledger accounts return account type and selection metadata without balances.

Directories accept their documented filters, limit, and cursor. Customer and supplier references require includeArchived=false; representative lookup can explicitly include archived records when needed.

curl "$SHELFCYCLE_API_BASE_URL/products?code=ACETONE-PAIL&limit=5" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY"

Product payloads use supported catalog fields. Product.name is deprecated and is not exposed by the public API.

Opportunity finder

Use the opportunity finder for customer- and supplier-side pipeline work. It returns visible opportunity summaries with relationship, owner, product, status, estimate, and update context.

curl "$SHELFCYCLE_API_BASE_URL/opportunities?status=LEAD,IN_PROGRESS&assignedToIds=user-id&sortDirection=desc&limit=50" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY" \
  -H "X-ShelfCycle-Client: Opportunity follow-up"

Narrow with matching text in query, one or more status or assignedToIds values, an exact customerId, supplierId, productId, or createdById, or an ISO timestamp range using createdFrom and createdTo. Sort by updatedAt in ascending or descending order.

The response includes meta.total for the complete visible result and a signed meta.nextCursor when more rows are available. Continue with meta.nextCursor as cursor, keeping the first page’s filters and limit unchanged. Fetch GET /opportunities/{id} after selecting a row to review metadata and the latest timeline activity.

Commercial document finders

Sales order and purchase order lists accept history=true for read-only commercial history or history=false for ordinary orders, alongside a supported narrowing filter. Sales orders also accept issue with a supported quality flag and a business-date window of at most 366 days. Detail reads include history, terms, pickup and shipment context, and available cost, margin, invoice, bill, and quality information, subject to scopes and current access. See Order history for importing and correcting commercial records dated before the organization's GL start date without creating ledger transactions.

Unfiltered order and purchase-order requests return 422 finder_filter_required with an example covering the last seven days of changes. Select an exact stored number or an appropriate bounded window, then use the returned UUID for detail and document routes. A displayed number in an id path returns invalid_identifier repair guidance. See Errors.

EndpointScopeNarrow with
GET /ordersorders:readorderNo, customerOrderNo, externalId, customerId, productId, productFamilyId, linkedPurchaseOrderId, status, creator, created time, a paired fromDate/toDate ordered-date range, or a paired changedFrom/changedTo range.
GET /purchase-orderspurchase-orders:readorderNo, externalId, supplierId, productId, productFamilyId, linkedSalesOrderId, status, creator, created time, a paired fromDate/toDate due-date range, or a paired changedFrom/changedTo range.

For exact identifier matching, sales-order orderNo, customerOrderNo, and externalId accept one value or as many as 25 comma-separated values. Purchase-order orderNo and externalId support the same batching. For example:

GET /orders?customerOrderNo=A,B,C&limit=5

Order finders return up to 25 rows and a signed nextCursor when more results are available. Continue with meta.nextCursor as cursor, keeping the first page’s filters and limit unchanged.

Use paired changedFrom and changedTo for a half-open last-updated range of up to 30 days. Finder metadata reports the ordering, snapshot time, returned row count, and continuation cursor.

Continue through multiple pages

Start with the endpoint's documented filters and integer limit. When meta.nextCursor is available, send its exact value as cursor with the first page's filters, sort options, and limit unchanged. For order detail lines, send lineCoverage.nextLineCursor as lineCursor with the same order ID and lineLimit.

Stop when meta.nextCursor is null. Use the limit documented for the selected endpoint; for example, Sales Orders, Purchase Orders, and Suppliers accept 1 through 25, while Purchase Execution and Certification Types accept 1 through 100.

An out-of-range page size returns 422 validation_failed with repairCategory: "invalid_limit". Read maxLimit and the example for the rejected parameter (example.limit or example.lineLimit) for the applicable maximum. Report and Note activity limits vary by report or view.

A continuation with a different filter returns 422 cursor_query_conflict. If the response names a filter, restore its first-page value. To change a filter, start a new first page without the cursor.

If a request returns doNotRetrySameRequest: true, do not repeat it unchanged. Correct the filter, limit, or cursor from the returned error details. When a continuation cursor is no longer usable, restart from the original first-page request rather than trying to repair the cursor.

Find changed records

Use ISO timestamps with an offset. changedFrom includes its timestamp and changedTo excludes its timestamp. The window matches the record's own updatedAt.

RoutesWindowOptions for broader state coverage
/customers, /suppliers, /product-directoryEither bound or both. Up to 366 days apart when paired.includeArchived=true
/certification-recordsEither bound or both. Up to 366 days apart when paired.includeArchived=true and includePlaceholders=true
/opportunitiesEither bound or both. Up to 366 days apart when paired.All statuses by default
/price-book-entriesEither bound or both. Up to 366 days apart when paired.view=all
/orders, /purchase-ordersBoth bounds, up to 30 days apart.All statuses by default
/tasksEither bound or both. Up to 366 days apart when paired.scope=mine and status=all for both visible task sets across all statuses.
curl "$SHELFCYCLE_API_BASE_URL/customers?changedFrom=2026-11-12T00%3A00%3A00Z&changedTo=2026-11-13T00%3A00%3A00Z&includeArchived=true&limit=25" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY"

curl "$SHELFCYCLE_API_BASE_URL/customers?changedFrom=2026-11-12T00%3A00%3A00Z&changedTo=2026-11-13T00%3A00%3A00Z&includeArchived=true&limit=25&cursor=$NEXT_CURSOR" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY"

Each page in a changed-record traversal uses the same meta.snapshotAt as a cutoff and reads the current records within that window. The effective upper edge is the earlier of changedTo and snapshotAt, or snapshotAt when no upper bound was sent. Start the next poll 10 minutes before that edge and deduplicate by ID and updatedAt. Follow meta.synchronizationGuidance where returned.

meta.changedRecordBasis: "parent_updated_at" describes the scope of the change check. For instance, an order line or customer address can change without moving the parent record's timestamp. An omitted record does not establish deletion.

If Product Directory returns population_too_large, split the changed window into consecutive intervals and retry each one. Use the documented page limit within each interval. Invoice, bill, customer payment, supplier payment, and lot lists respond to these window parameters with 422 unsupported_sync_filter. Use changedFrom and changedTo on the routes above.

Detail reads

After selecting an id, hydrate the exact record:

GET /customers/{id}
GET /suppliers/{id}
GET /products/{id}
GET /orders/{id}
GET /purchase-orders/{id}
GET /opportunities/{id}
GET /contacts/{id}
GET /notes/{id}
GET /customers/{id}/documents
GET /suppliers/{id}/documents
GET /products/{id}/documents
GET /purchase-orders/{id}/documents
GET /orders/{id}/documents
GET /bills/{id}/documents

Detail and attached document responses provide the fields documented for the selected record. Sales- and purchase-order detail returns 100 lines by default, accepts lineLimit up to 500, and supports consistent continuation through lineCursor. Keep the original lineLimit when adding lineCursor.

Guardrail

If a finder returns finder_filter_required, unsupported_sync_filter, or doNotRetrySameRequest: true, use the repair fields to choose a supported filter, date range, page size, or fresh first-page request.

People and team-tag filters

Customer, supplier, and opportunity finders accept customerTag, supplierTag, and opportunityTag as narrowing filters with tags:read. Sales and purchase orders accept orderTag, assigned user lists, and ownership=mine. Keep salesperson, assignee, and creator IDs distinct; all filters retain current record access. See People and tag filters for matching, correction, and coverage rules.

Delivery, receiving, and credit context

Customer finder rows include creditLimit in the organization's base currency. amountCents: null means no limit is set; zero is an actual zero limit.

Sales order rows include shipTo. Purchase order rows include shipAt, shipFrom, warehouse, receiptState, lastReceivedAt, and goods-only itemsAmountCents. Receiving state is none, partial, full, or unknown. Use the exact order detail for further context rather than treating an unknown receiving state as no receipts. warehouseId filters purchase orders received into the selected warehouse.

Use Work orders for production ticket lookup by number, product, lot, status, type, or completion window.