Scopes
Scopes define the maximum a key can do. The acting user's current ShelfCycle permissions can only narrow that access.
Keys are issued to a ShelfCycle user for attribution and current permission checks. A key must have the endpoint scope, and the acting user must still have the required ShelfCycle permission. GET /me returns both the raw scopes and effective capabilities after current access is applied.
Scope list
Price Entry management uses existing price-book-entries:read for exact reads and price-book-entries:write for correction, deletion, and coordinated batches, together with current Price Book management and customer visibility. Lot movements use lots:read; their commercial identities each require the matching purchase-order, sales-order, customer, or supplier read scope and current access. Product-tag filters require tags:read; sales attribute filters also require Product read/write or Search read access.
| Scope | Endpoints |
|---|---|
repack-templates:write | POST /repack-templates/batch for template previews and imports with current Work Order update permission and Work Orders enabled for the acting person. |
formulas:write | POST /formulas/batch to preview and import formulas with current Work Order update permission and Work Orders enabled for the acting person. |
work-orders:read | GET /work-orders and GET /work-orders/{id} with current Work Order viewing access. Full-access keys include the scope. See Work orders. |
work-orders:write | POST /work-orders/batch to import production tickets with current Work Order create and update permissions and Work Orders enabled. Full-access keys include it; older restricted keys need an explicit grant. |
documents:upload | POST /document-uploads for one private file upload. Add purpose: "coa" for structured COA import; the destination workflow uses its own write access. |
search:read | GET /search, GET /entity-resolution, detail readback for customers, suppliers, contacts, and products, GET /suppliers/{id}/carrier-profile, and exact parent-scoped child or document reads after selecting a visible parent. |
tags:read | GET /tags, GET /tagged-records, GET /tag-assignments, and related tags on Entity Resolution when the acting user has matching Tags and record access. |
tags:write | POST /tags, PATCH /tags/{id}, and POST or DELETE /tag-assignments. |
notes:read | GET /notes, GET /notes/{id}, and organization-wide counts or excerpt lists from GET /note-activity. |
notes:write | POST /notes, PATCH /notes/{id}, and readback for notes created through the API. Use linkedRecords for teammate and product family mentions. Adding a family link requires current Product viewing permission. |
order-history:write | Import and correct read-only commercial order history through POST /order-history/batch, with current viewing and update access for each document and the corresponding create permission for imports. Full-access keys include this scope. See Order history. |
tasks:read | GET /tasks and GET /tasks/{id} for tasks assigned to or created by the key's user. |
tasks:write | Create, update, complete, and reopen tasks, or read one visible task by ID. Full-access keys include both task scopes. See Tasks. |
sent-emails:read | GET /email-activity and GET /sent-emails/{id}, together with the matching record read scope. Add notes:read for email note activity. See Sent email activity for the access map. |
opportunities:read | GET /opportunities and GET /opportunities/{id} for visible customer- and supplier-side opportunities. |
opportunities:write | POST /opportunities, PATCH /opportunities/{id}, POST /opportunities/{id}/close, PUT /opportunities/{id}/meta, and write-compatible detail readback. |
contacts:read | GET /contacts, GET /contacts/{id} |
contacts:create | POST /contacts |
contacts:update | GET /contacts/{id}, PATCH /contacts/{id}, and guarded POST /contacts/{id}/archive or /unarchive. |
customers:read | GET /customers, GET /customers/{id}, and GET /customers/{id}/documents |
customers:write | POST /customers, PATCH /customers/{id}, guarded customer and customer-address archive or restore actions, parent-scoped customer location/address writes, and POST /customers/{id}/documents. |
suppliers:read | GET /suppliers, including carrier filtering, GET /suppliers/{id}, GET /suppliers/{id}/carrier-profile, and GET /suppliers/{id}/documents. |
suppliers:write | POST /suppliers, PATCH /suppliers/{id}, PUT or DELETE /suppliers/{id}/carrier-profile, guarded supplier and ship-from archive or restore actions, parent-scoped supplier ship-from writes, and POST /suppliers/{id}/documents. |
products:read | Product finder, detail, directory, documents, packaging and code-attribute references, assignments, aliases, and available catalog relationships. |
products:write | Product and product-family create or update, independent product-code batch imports with optional packaging profiles, packaging create, typed product and family assignments, supplier links, product aliases, customer part numbers, product archive or restore, documents, and current SDS assignment. Vocabulary authoring uses its own scope below. |
product-attributes:read | Read definitions and values through /product-code-attributes and /catalog-attributes, with current Product reference access. Existing Product read/write and Search read scopes also support vocabulary reads. |
product-attributes:write | Create, rename, remove, and reorder definitions, and create, remove, and reorder values, with current Product update permission. Assignments still use products:write. |
orders:read | GET /orders, GET /orders/{id} |
purchase-orders:read | GET /purchase-orders, GET /purchase-orders/{id}, and purchase-order identity on lot-list additions with current Purchase Order viewing access. |
invoices:read | GET /invoices and GET /invoices/{id} for invoices and customer credits. |
bills:read | GET /bills and GET /bills/{id} for bills and supplier credits, including bill costs, linked orders, item amounts, and ledger accounts. |
customer-payments:read | GET /customer-payments and GET /customer-payments/{id} for customer payments and deposit context. |
supplier-payments:read | GET /supplier-payments and GET /supplier-payments/{id} for supplier payments and payment-batch context. |
purchase-order-execution:read | GET /purchase-order-execution, including destination-warehouse filtering, GET /purchase-order-lines/{id}/receipt-events, and GET /purchase-orders/{id}/documents |
inventory:read | GET /inventory-balances for current physical product-by-warehouse balances, availability states, and stock-out counts. |
lots:read | GET /lots, GET /lots/{id}, and GET /lots/{id}/coa for named lots, date-added discovery, product identity, quantities, stock age, and the COA filename, file access, and version. |
lots:write | PUT /lots/{id}/coa to assign or replace the current COA with Lot update and Product/Lot viewing access. POST /lots/{id}/coas imports a structured certificate for review with COA processing enabled and no added record permission requirement. |
warehouses:read | GET /warehouses and GET /warehouses/{id} for warehouse identity, address, contact, source ID, archive state, and update time. |
warehouses:write | POST /warehouses, PATCH /warehouses/{id}, and warehouse archive or restore actions. |
reorder:read | GET /reorder-status for configured reorder points, allocated and committed demand, projected availability, projected deficit, and status counts. |
reorder:write | POST /reorder-points to set or clear 1 to 50 product-and-warehouse thresholds together. |
certifications:read | GET /certification-types, GET /certification-records, exact certification record detail, and GET /certification-subjects. Warehouse results also require warehouses:read. |
certifications:write | POST /certification-records, PATCH and DELETE /certification-records/{recordId} with current viewing and edit access to the subject. Warehouse subjects also require warehouses:read and warehouses:write. |
certification-types:read | Read /certification-types?view=management, exact type settings, and current expiry notice recipient candidates. |
certification-types:write | Read, create, maintain, and delete unused certification types and their expiry notice settings, and set date requirements through PUT /certification-types/{typeId}/validity-date-policy. This scope does not grant certificate-record or subject access. |
purchase-order-documents:write | POST /purchase-orders/{id}/documents for readiness checks and verified document association. |
sales-order-documents:read | GET /orders/{id}/documents with current Order viewing access and visibility of the selected order. Lot COA copies also need lots:read and Product/Lot viewing access. |
sales-order-documents:write | POST /orders/{id}/documents with current Order update permission and visibility of the selected order. |
bill-documents:read | GET /bills/{id}/documents with current Bill viewing access; bill IDs only. |
bill-documents:write | POST /bills/{id}/documents with current Bill update permission; bill IDs only. |
company-reference:read | GET /reference/customers, GET /reference/suppliers, GET /representatives, GET /payment-terms, and GET /reference/ledger-accounts. |
company-reference:write | Create and maintain representatives, payment terms, and supported Chart of Accounts fields through their documented endpoints. |
shipping-options:read | GET /shipping-options and GET /shipping-options/{id} for freight terms, carriers, FOB terms, freight methods, and border crossing points. |
tax-settings:read | Read tax types, rates and periods, and visible ship-to assignments. Catalog reads use current Settings view or Customer view/update access; ship-to rows follow Customer viewing access and visibility. |
tax-settings:write | Create, change, or archive tax types/rates, add or delete periods, and set/clear ship-to assignments. Catalog actions use matching Settings automation permissions; assignments require current Customer view and update access. |
shipping-options:write | POST /shipping-options, PATCH /shipping-options/{id}, and Shipping Options archive or restore actions. |
reports:read | GET /reports and GET /reports/{reportKey} for sales, purchasing, pipeline, financial, and ledger reports. Ledger reports also require company-reference:read and current accounting permissions. Accounts Payable aging, supplier bill charges, and payment reports need their matching resource scope. |
cost-book-entries:read | GET /cost-book-entries by supplier and optional ship-from origin, GET /products/{id}/cost-context, and supplier history when combined with suppliers:read. |
cost-book-entries:write | POST /cost-book-entries, PATCH or DELETE /cost-book-entries/{id}, and POST /cost-book-entries/batch for previews, verified updates, preserved corrections, mistaken-entry removal, and approved batches. |
current-cost-sources:read | GET /products/{id}/current-cost-source for a product's supplier-and-origin source state, eligible choices, and selection details. |
current-cost-sources:write | PUT /products/{id}/current-cost-source to preview, set, replace, or clear an exact supplier-location Current Source. |
price-book-entries:read | GET /price-book-entries for configured prices and history, and GET /price-book-entries/{id} for one exact entry. |
price-book-entries:write | POST /price-book-entries, exact-entry PATCH/DELETE, and POST /price-book-entries/batch for reviewed price maintenance. |
Scope ceiling
Product approval lists need products:read and suppliers:read plus current viewing access for both. Approval writes need products:write and suppliers:read plus current Product update and Supplier viewing access. See Product setup.
People, ownership, and assignment filters use each resource's existing read scope and current record visibility. Team-tag filters additionally require tags:read; selecting a person or tag never expands the connection's access. Payment reports still require reports:read plus their matching customer/supplier payment scope. See People and tag filters.
Warehouse-location discovery uses warehouses:read plus current location viewing permission. Location batch imports use warehouses:write plus location create permission; any archived: true item also requires location archive permission for that request. These actions use existing scopes and add no /me write-readiness operation. See Warehouses for source identity, hierarchy, and preview details.
products:write also covers independent POST /products/batch imports with Product create permission. Returning an existing code requires product-detail visibility. work-orders:write is separate from Formula/Repack template authoring. For structured COA import, documents:upload prepares a purpose: "coa" grant and lots:write submits it to POST /coas with optional lotId or POST /lots/{id}/coas; /me has no capability for that import. See Product setup, Work-order imports, and Lots.
certifications:write files, renews, or completes supported certification records; lots:write assigns or replaces a lot's COA. Uploading their supporting files uses documents:upload, while readback uses the corresponding read scope. Check effectiveCapabilities.certifications.records.writableSubjectTypes and effectiveCapabilities.inventory.lots.coa through GET /me before starting the workflow.
Full-access keys automatically include both new write scopes. Restricted keys need the matching write scope selected for their certificate or COA workflow.
A key with only search:read cannot write anything. A key with tags:read can browse the organization tag vocabulary, find authorized records carrying one exact tag, and receive related tags on Entity Resolution when live access allows it. A key with documents:upload can prepare a private file upload, while the matching record write scope controls whether that file can be attached. A key with notes:read can read notes for a selected visible customer, supplier, or product and can count or review organization-wide note activity when the acting user has current Note viewing access. A key with opportunities:read can find and read visible customer- and supplier-side opportunities. A key with opportunities:write can create, update, close, and maintain details for visible opportunities. A key with company-reference:read can page active customer and supplier matching hints. A key with products:read can find products and product families, resolve packaging and code attributes, and reconcile available product relationships. A key with products:write can build and rename products, maintain product families, create packaging, save typed product assignments, maintain aliases, connect suppliers and customer part numbers, manage product lifecycle, attach documents, and assign the current SDS. Supplier- or customer-specific product relationships also require the matching read scope. A key with orders:read can find sales orders and read their lines, fulfillment context, and totals. A key with purchase-orders:read can find purchase orders and read their lines, receipt summaries, supplier document costs, and totals. Invoices, bills, customer payments, and supplier payments each use their own read scope, and connected financial details appear only when the key can read both families. A key with purchase-order-execution:read can review current open purchase lines by destination warehouse, exact receipt events, and attached purchase-order documents. A key with inventory:read can review current balances and complete stock-out counts by product and warehouse. A key with lots:read can find named lots and read their exact quantities, COA readiness, and remaining-stock age. A key with warehouses:read can find and read warehouse records; warehouses:write can create, maintain, archive, and restore physical warehouses. A key with reorder:read can review configured reorder points, current stock, committed demand, projected availability, and status counts; reorder:write can set or clear grouped thresholds. A key with certifications:read can browse authorized certification types, records, renewal states, subjects, dates, and evidence filenames; warehouse results also require warehouses:read. A key with purchase-order-documents:write can preview and attach one document to a visible purchase order. A key with reports:read can discover and run available sales, purchasing, open-order, pipeline, receivables, payables, and payment reports; Accounts Payable aging, supplier bill charges, and payment reports also require their matching family scopes; supplier bill charges needs bills:read and current Bill viewing access. A key with cost-book-entries:read can read current Cost Book entries, product cost context, and supplier history when combined with suppliers:read. A key with cost-book-entries:write can create or supersede a verified Cost Book entry, correct an existing event while preserving its history, remove one mistaken entry when ready, or apply an approved batch after the acting user's current access is checked. A key with current-cost-sources:read can read a product's fixed, selected, unconfigured, or unavailable supplier-and-origin source state. A key with current-cost-sources:write can preview, set, replace, or clear an eligible supplier-location Current Source after current access is checked. A key with price-book-entries:read can review active, scheduled, expired, and historical configured sale prices with exact package and base-unit context. A key with price-book-entries:write can preview and apply one exact price update after the acting user's current Pricing Engine access and customer visibility are checked. A key with customers:write can create or patch customer profile, location, address, and attached document fields, and archive or restore customers and customer addresses. A key with suppliers:write can maintain supplier profiles and ship-from locations and archive or restore either record type. A key with contacts:update can update, archive, or restore a selected customer or supplier contact.
tags:write maintains the shared tag vocabulary and adds or removes assignments for record types the acting person can update. tags:read remains the readback scope for vocabulary, tagged-record directories, and a selected record's current tags.
Company Reference access also covers representative, payment-term, and ledger-account directories. company-reference:write adds representative create, metadata update, archive, and restore actions; payment-term creation and metadata updates; and Chart of Accounts create and update. The acting person's matching access still applies.
Shipping Options access is separate from Company Reference. shipping-options:read lists and reads the six supported freight and shipping vocabularies; shipping-options:write creates, updates, archives, and restores those options. Payment terms remain under Company Reference.
Restricted and full access keys
Most keys are restricted to named scopes. Full access keys can carry the current public API scope set, but they are still tenant-bound, user-attributed, revocable, and narrowed by live ShelfCycle permissions.
Full access keys include the current public scope set, including invoices:read, bills:read, customer-payments:read, supplier-payments:read, company-reference:write, shipping-options:read, shipping-options:write, tags:read, tags:write, inventory:read, lots:read, warehouses:read, warehouses:write, reorder:read, reorder:write, certifications:read, current-cost-sources:read, and current-cost-sources:write, automatically. Restricted keys receive only the scopes selected for their workflow.
GET /me reports:
| Field | Use it for |
|---|---|
key.accessMode | Whether the key is restricted or full. |
key.storedGrants | The grants stored on the key, which may be named scopes or a broad public API grant. |
key.effectiveScopes | The current scope list a caller should reason over after expanding broad grants and removing retired scopes. |
key.retiredScopes | Any stored grants that no longer map to current public API scopes. |
Use effectiveScopes, not storedGrants, when deciding which endpoint families a workflow may call.
Live user permission floor
Scopes are not the only authorization check. The API also checks the acting user's current ShelfCycle permissions. If that user is removed, inactive, or loses the required role, the key loses that ability without changing the key.
Do not treat scopes as a substitute for user permissions. The API requires both.
Effective capabilities
Tax setup appears under effectiveCapabilities.taxSettings.view/create/update/archive and taxAssignments.view/set, repeated under write readiness. Full-access keys inherit both dedicated tax scopes; restricted keys, including Customer read/write keys, need explicit grants. Formula and Repack cost imports use their existing template write scopes and Work Order permissions. See Tax setup, Formula imports, and Repack templates.
Attribute vocabulary availability appears under effectiveCapabilities.products.codeAttributes and productFamilies.attributes, with view, create, update, remove, and reorder plus value actions. Family assignment availability appears under productFamilies.attributeAssignments. Certification setup uses certifications.types, and record removal uses certifications.records.remove. Full-access keys include the new vocabulary and type scopes; restricted keys need the relevant explicit grants.
Sales-order and bill document access is separate from orders:read and bills:read. Full-access keys inherit the four new document scopes. GET /me reports effectiveCapabilities.orders.documents.view/create/lotCoaCopies and bills.documents.view/create; the selected record's visibility is still checked on each request. Formula and Repack create capabilities report scope and permission access, while workOrderV2Eligible and their writeReadiness.create values also include Work Order availability.
Use GET /me to inspect what the key can actually do now. Tag capabilities report vocabulary access and viewable record types, while tag write readiness reports create, update, and assignable record types. Product capabilities report packaging, code attributes, assignments, suppliers, aliases, customer part numbers, archive, restore, documents, and SDS actions individually. Warehouse and Shipping Options capabilities report view, create, update, archive, and restore, while reorder-point write readiness reports whether threshold changes are available. Product-family capabilities report alias actions alongside family create and update. The response also covers document uploads, search, Entity Resolution, Product Directory, Certification Intelligence, notes, opportunities, contacts, customers, suppliers, company reference, Cost Book entries, Current Source, Price Book entries, orders, purchase orders, inventory balances, lots, reorder status, reports, and write readiness.
entityResolution.viewableClasses lists the customer, supplier, product, product-family, sales-order, purchase-order, salesperson, and warehouse classes currently available. Company-reference capabilities show directory access for customers, suppliers, representatives, payment terms, and ledger accounts. Its write group reports representative actions, payment-term creation and metadata updates, and ledgerAccountsCreate or ledgerAccountsUpdate. Customer capabilities report activityFilter separately for qualifying shipped-sales discovery.
createdRecordDiscovery reports whether creator and created-time discovery is currently available for Product Directory, opportunities, customers, suppliers, Cost Book, Price Book, sales orders, purchase orders, lots, and certifications. It appears inside the matching capability group, for example effectiveCapabilities.orders.createdRecordDiscovery and effectiveCapabilities.inventory.lots.createdRecordDiscovery. Reports continue to list available report keys under effectiveCapabilities.reports.available. These flags use each family's existing read scope; v1.42.1 adds no new scope.
The remaining groups report the matching view, create, update, archive, restore, document, report, or readiness actions for their resources. A scope can be present while the corresponding effective capability is false because the acting person does not currently have that access.
Repair metadata does not introduce a new scope. Responses may add repairCategory, suggestedAction, validValues, repairContext, accepted filters, examples, and retry guidance to errors for the scopes a key already uses.
Write readiness and scopes
dryRun=true does not introduce a separate scope. It uses the same write scope, live user permission, and rate-limit family as execution:
| Write family | Readiness scope |
|---|---|
POST /reference/ledger-accounts and PATCH /reference/ledger-accounts/{id} | company-reference:write |
POST /shipping-options, PATCH /shipping-options/{id}, and Shipping Options archive or unarchive actions | shipping-options:write |
POST /representatives, representative PATCH, archive, and unarchive actions, plus POST /payment-terms and PATCH /payment-terms/{id} | company-reference:write |
POST /notes, PATCH /notes/{id} | notes:write |
POST /opportunities, PATCH /opportunities/{id}, POST /opportunities/{id}/close, PUT /opportunities/{id}/meta | opportunities:write |
POST /contacts | contacts:create |
PATCH /contacts/{id}, POST /contacts/{id}/archive, POST /contacts/{id}/unarchive | contacts:update |
POST /customers, PATCH /customers/{id}, POST /customers/{id}/archive, POST /customers/{id}/unarchive | customers:write |
POST /suppliers, PATCH /suppliers/{id}, POST /suppliers/{id}/archive, POST /suppliers/{id}/unarchive | suppliers:write |
POST /customers/{id}/locations, PATCH /customers/{id}/locations/{locationId}, and customer address writes | customers:write |
Customer-address archive and unarchive actions | customers:write |
POST /customers/{id}/documents | customers:write |
POST /suppliers/{id}/ship-from-locations, PATCH /suppliers/{id}/ship-from-locations/{locationId} | suppliers:write |
Supplier ship-from archive and unarchive actions | suppliers:write |
POST /suppliers/{id}/documents | suppliers:write |
| Product and product-family create or update, packaging create, supplier, alias, and customer-part-number relationship changes, plus product archive and restore | products:write |
POST /products/{id}/documents | products:write |
POST /purchase-orders/{id}/documents | purchase-order-documents:write |
POST /orders/{id}/documents | sales-order-documents:write |
POST /bills/{id}/documents | bill-documents:write |
PUT /products/{id}/sds | products:write |
POST /cost-book-entries, PATCH or DELETE /cost-book-entries/{id}, POST /cost-book-entries/batch | cost-book-entries:write |
PUT /products/{id}/current-cost-source | current-cost-sources:write |
POST /price-book-entries | price-book-entries:write |
Most supported writes permit direct execution under the integration's policy. Price Entry management requires an exact reviewed request before execution, with the returned review values. This does not require a person to approve the request in ShelfCycle.
Missing access
The two access errors are distinct.
{
"error": {
"type": "permission_error",
"code": "missing_scope",
"message": "The API key does not include the required scope.",
"requestId": "request-id"
}
}
{
"error": {
"type": "permission_error",
"code": "missing_permission",
"message": "The acting user does not have permission for this operation.",
"requestId": "request-id"
}
}