Get a store’s product priority
The store’s product sources in order (first wins), the fields with an order of their own, the custom fields its sources send, and the change that’s open or was applied last.
GET
The store’s product sources in order (first wins), the fields with an order of their own, the custom fields its sources send, and the change that’s open or was applied last.
apiKey readheader
AuthorizationBearer <token>A workspace API key (pf_…), created under Developers → API keys.
Scope: read
id*stringFormat
uuidOK
application/json- response
storeId*stringFormat
uuidsources*array<>fields*customFields*array<string>openChange*|nulllastChange*|nullcurl -X GET 'https://api.postforge.dev/v1/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/product-priority'{ "storeId": "b8adcdc8-9238-4168-90f8-77b2d14c211c", "sources": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "store", "sourceId": "797f5a94-3689-4ac8-82fd-d749511ea2b2", "name": "string", "platform": "string", "locales": [ "string" ], "products": 0 } ], "fields": { "property1": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "property2": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ] }, "customFields": [ "string" ], "openChange": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "storeId": "b8adcdc8-9238-4168-90f8-77b2d14c211c", "status": "previewing", "rules": { "order": [ "93b532b3-a125-4cd2-9b71-9996b1e164ce" ], "fields": { "property1": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "property2": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ] } }, "stale": true, "counts": { "products": 0, "previewed": 0, "changed": 0, "applied": 0 }, "error": "string", "createdAt": "2019-08-24T14:15:22Z", "readyAt": "2019-08-24T14:15:22Z", "appliedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z" }, "lastChange": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "storeId": "b8adcdc8-9238-4168-90f8-77b2d14c211c", "status": "previewing", "rules": { "order": [ "93b532b3-a125-4cd2-9b71-9996b1e164ce" ], "fields": { "property1": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "property2": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ] } }, "stale": true, "counts": { "products": 0, "previewed": 0, "changed": 0, "applied": 0 }, "error": "string", "createdAt": "2019-08-24T14:15:22Z", "readyAt": "2019-08-24T14:15:22Z", "appliedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z" }}