Skip to main content

Public REST/JSON reference

Collection Profit Sorter API

Rank Shopify collection products by profit per page view using COGS, margin, sales velocity, and merchandising pins, then preview, apply, or schedule the resulting sort order. Part of the Logic Igniter E-commerce Operations bundle.

Access boundary

These examples describe public API calls only. Use the service output to review, score, summarize, analyze, or recommend; do not treat the API reference as permission for an assistant to write, send, publish, charge, schedule, notify, delete, or modify records.

Base URL

https://api.logicigniter.com

Auth

Authorization: Bearer YOUR_API_KEY

Version

OpenAPI 3.0.3 · 1.0.0

Operations rendered

12

Response models rendered

19

GET/api/v1/collectionsort/health

Service liveness

Liveness probe for Collection Profit Sorter API. Returns 200 when the public API route is reachable.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/collectionsort/health" \
  -H "Accept: application/json"

Responses

200

Service healthy

GET/api/v1/collectionsort/customers

List customers

List customers record for the customer workspace used by Collection Profit Sorter API.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/collectionsort/customers" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

PUT/api/v1/collectionsort/customers/{id}

Update customer

Update customer record for the customer workspace used by Collection Profit Sorter API.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
idrequiredpathstringId

Request body (required)

Schema: CustomerInput

Sample JSON payload for evaluation.

{
  "companyName": "Mira Home Goods",
  "email": "[email protected]"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X PUT "https://api.logicigniter.com/api/v1/collectionsort/customers/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"companyName":"Mira Home Goods","email":"[email protected]"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

POST/api/v1/collectionsort/collections/sync

Sync collections

Import collections and product metadata from the connected storefront.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request body (required)

Schema: CollectionSyncRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "CollectionSyncRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/collectionsort/collections/sync" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"CollectionSyncRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

GET/api/v1/collectionsort/collections

List collections

List storefront collections known to the sorter.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/collectionsort/collections" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

GET/api/v1/collectionsort/collections/{collection_id}/products

Get collection products

Return products, views, velocity, and margin inputs for one collection.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
collection_idrequiredpathstringCollection Id

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/collectionsort/collections/:collection_id/products" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

POST/api/v1/collectionsort/collections/{collection_id}/sort/calculate

Calculate sort

Calculate profit-per-view ranking for a collection without applying it.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
collection_idrequiredpathstringCollection Id

Request body (required)

Schema: SortCalculateRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "SortCalculateRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/collectionsort/collections/:collection_id/sort/calculate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"SortCalculateRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

POST/api/v1/collectionsort/collections/{collection_id}/sort/preview

Preview sort

Preview the proposed ordering with before and after position changes.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
collection_idrequiredpathstringCollection Id

Request body (required)

Schema: SortPreviewRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "SortPreviewRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/collectionsort/collections/:collection_id/sort/preview" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"SortPreviewRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

POST/api/v1/collectionsort/collections/{collection_id}/sort/apply

Apply sort

Write the calculated ordering back to Shopify or the configured storefront.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
collection_idrequiredpathstringCollection Id

Request body (required)

Schema: ApplySortRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "ApplySortRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/collectionsort/collections/:collection_id/sort/apply" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"ApplySortRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

POST/api/v1/collectionsort/collections/{collection_id}/products/{product_id}/pin

Pin product

Pin a product to a fixed collection position while preserving profit sorting around it.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
collection_idrequiredpathstringCollection Id
product_idrequiredpathstringProduct Id

Request body (required)

Schema: PinProductRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "PinProductRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/collectionsort/collections/:collection_id/products/:product_id/pin" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"PinProductRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

POST/api/v1/collectionsort/collections/{collection_id}/sort/schedule

Schedule sort

Schedule automatic recalculation and application for a collection.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
collection_idrequiredpathstringCollection Id

Request body (required)

Schema: ScheduleSortRequest

Sample JSON payload for evaluation.

{
  "id": "obj_123",
  "status": "READY",
  "summary": "ScheduleSortRequest"
}

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X POST "https://api.logicigniter.com/api/v1/collectionsort/collections/:collection_id/sort/schedule" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"id":"obj_123","status":"READY","summary":"ScheduleSortRequest"}'

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

GET/api/v1/collectionsort/collections/{collection_id}/performance

Get sort performance

Measure margin, revenue, click-through, and product movement after sorting.

Public REST/JSON operation

This operation is documented for direct API evaluation. It describes the public payload and response contract only; assistant/MCP usage remains read only and is covered in the MCP guide.

Parameters

NameInTypeNotes
collection_idrequiredpathstringCollection Id

Request example

Replace placeholders with your confirmed access key and your own business data.

curl -X GET "https://api.logicigniter.com/api/v1/collectionsort/collections/:collection_id/performance" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Responses

Successful response

Invalid request payload or parameters

Missing or invalid bearer token

Workspace does not have access to the ecommerce-operations bundle

Requested resource was not found

Data models

Customer

FieldTypeNotes
idrequiredstringExample: "cus_mira_home"
companyNamerequiredstringExample: "Mira Home Goods"
emailrequiredstring (email)Example: "[email protected]"
bundlerequiredstringExample: "ecommerce-operations"
createdAtstring (date-time)

CustomerInput

FieldTypeNotes
companyNamerequiredstringExample: "Mira Home Goods"
emailrequiredstring (email)Example: "[email protected]"
bundlestringExample: "ecommerce-operations"

CustomerList

FieldTypeNotes
customersarray<Customer>

Error

FieldTypeNotes
errorrequiredstringExample: "validation failed"
messagestringExample: "sku is required"
requestIdstringExample: "req_01HX9E2M7K8Q4J3V"

ApplySortRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "ApplySortRequest"

CollectionList

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "CollectionList"

CollectionProducts

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "CollectionProducts"

CollectionSyncRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "CollectionSyncRequest"

CollectionSyncResult

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "CollectionSyncResult"

PinProductRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "PinProductRequest"

PinnedProduct

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "PinnedProduct"

ScheduleSortRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "ScheduleSortRequest"

SortApplication

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "SortApplication"

SortCalculateRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "SortCalculateRequest"

SortPerformance

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "SortPerformance"

SortPreview

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "SortPreview"

SortPreviewRequest

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "SortPreviewRequest"

SortResult

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "SortResult"

SortSchedule

FieldTypeNotes
idrequiredstringExample: "obj_123"
statusrequiredstringExample: "READY"
summarystringExample: "SortSchedule"