People and tag filters

Build focused worklists and reports using the people responsible for the work and the business groupings your team maintains.

These filters narrow the connection's existing access. They do not grant visibility to another team's or another organization's records. Use each resource's normal read scope and current permissions; tag filters also require tags:read.

Keep person roles distinct

| Filter | Meaning | | --- | --- | | salesPersonId | A salesperson record UUID, rather than a user UUID. On sales orders it means the person credited on the order; on accounts it means the default salesperson. | | assignedToIds | Assigned user UUIDs on sales orders, purchase orders, opportunities, and pipeline-summary. Accepts up to 100 values, comma-separated or repeated. | | createdById | The user who entered the record or activity. This is independent of salesperson and assignment. | | ownership | A resource-specific choice based on the acting person, described below. |

Use person IDs returned by the matching resource or resolved for the intended role. Person summaries expose id and displayName; opportunity assignees also retain their published name. Customer people include displayName, note/email rows carry createdBy, and sales-order detail includes salesPerson. A person who left the organization can still appear on an existing opportunity or match its assignee filter.

assignedToId remains the earlier name for assignedToIds and also accepts a list. salesOwnership remains the earlier name for ownership. On email activity, senderId remains the earlier name for createdById. Use one spelling in each request; when both are supplied, the canonical name takes priority.

An unknown salesperson or assignee ID returns 422 invalid_input with guidance for the role. A known person outside limited record access narrows to the visible intersection, which can be empty. An unknown creator or sender ID can return no rows. Read each endpoint's documented response and access rules; an empty result is not evidence about records the connection cannot open.

What mine selects

| Resource | ownership=mine | | --- | --- | | Customers | Accounts where the acting person is the default salesperson. | | Email activity | Activity linked to customers whose default salesperson is the acting person; this does not mean messages created by that person. | | Sales orders | Orders assigned or credited to the acting person. | | Purchase orders | Orders assigned to the acting person. |

Customer and email ownership accept all, mine, or unassigned. Order ownership accepts mine only. Do not combine a named salesperson or assignee with mine; customer/email unassigned likewise cannot be combined with a named salesperson. Purchase-order requests do not accept salesPersonId. Opportunities use assignedToIds for assignment, rather than an ownership parameter.

Find a team's orders

For your sales orders carrying a team tag:

curl "$SHELFCYCLE_API_BASE_URL/orders?ownership=mine&orderTag=docs%20received&limit=25" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY"

For selected assignees, replace these fictional user UUIDs with the intended people and omit ownership:

curl "$SHELFCYCLE_API_BASE_URL/purchase-orders?assignedToIds=11111111-1111-4111-8111-111111111111&assignedToIds=22222222-2222-4222-8222-222222222222&limit=25" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY"

Sales-order finder rows carry salesPerson and assignedTo; purchase-order rows carry assignedTo, as a person summary or null. Continue with meta.nextCursor as cursor, keeping the first page’s filters and limit unchanged. See Commercial documents.

Use team tags across resources

| Resource | Tag query | | --- | --- | | Customers, suppliers, opportunities | customerTag, supplierTag, opportunityTag respectively. A tag can supply the finder's narrowing filter. | | Sales and purchase orders | orderTag | | Product Directory and sales summary | productTag | | Payments received and made | counterpartyTag, matching the customer or supplier respectively. | | Tagged record identities | GET /tagged-records with one entityType and exactly one tagId or label. |

Send a nonblank tag phrase of 1–200 characters. An exact applicable label wins first, then matching tags used on the record type, then other tags that can apply to it. A tag's matching rules respect its applicable record types. A matching phrase identifies one saved tag; it does not turn the phrase into an arbitrary text filter over records.

curl "$SHELFCYCLE_API_BASE_URL/customers?customerTag=strategic%20accounts&limit=25" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY"

Customer, supplier, opportunity, order, and purchase-order finders return meta.tagFilter identifying the chosen tag. Payment reports identify it in basis.counterpartyTag. Keep this returned identity with the results instead of assuming a partial phrase selected the intended grouping.

Unknown, ambiguous, or wrong-record-type phrases return 422 invalid_input, with correction information such as param, validValues, and suggestedAction. Review the returned labels and resubmit the intended phrase; do not interpret a rejected tag as an empty population. Suggestions are limited to relevant authorized labels, at most five; callers without current Tags viewing access receive no additional labels. On /tagged-records, an unknown tagId still returns 404 tag_not_found, while a bad or ambiguous label returns 422. This read reports meta.capabilityVersion: "2.0.0". Continue tagged-record lists with the same filters and limit plus the returned cursor. See Tags.

Review payments for a tagged group

curl "$SHELFCYCLE_API_BASE_URL/reports/payments-made?from=2026-01-01&to=2026-11-08&counterpartyTag=annual%20review&includeOpeningDocuments=true&groupBy=counterparty&limit=100" \
  -H "Authorization: Bearer $SHELFCYCLE_API_KEY"

Use payments-received for customer receipts and payments-made for supplier payments. The normal report scopes apply: reports:read plus customer-payments:read or supplier-payments:read, respectively, and tags:read when using the tag filter.

Each totals.byTransactionCurrency entry includes preGoLivePaymentCount and preGoLiveCashAmountCents: matching payments in the requested date window dated before ShelfCycle go-live. totals.preGoLivePaymentCount gives the combined count. These facts are returned whether those payments are counted in report totals or excluded. includeOpeningDocuments=true includes them; a currency entry remains visible even when all its payments were excluded. Keep monetary totals in their separate transaction currencies.

basis.coverageStartDate identifies where visible payment records begin; it is distinct from the go-live date. Use the returned period, inclusion choice, matched tag, and coverage when interpreting totals. See Reports.

Interpret activity coverage

Filter GET /email-activity with createdById for a creator; its earlier name senderId follows the same rule. For a customer portfolio use ownership, which follows customer salesperson ownership instead. Creator-filtered email responses report coverage.negativeClosureEligible: false and disclosure.closure: "none_on_records_you_can_open". Creator-filtered customer responses report meta.coverage.negativeClosureEligible: false.

Those results describe matching records the connection can open. They cannot establish that no corresponding activity or account exists anywhere in the organization. Keep that coverage with empty results and follow-up decisions. See Sent email activity and Created records.