Import a store’s history again
Reads every customer and order, or every product, from the store again; live sync continues meanwhile. Records already in Postforge are updated, never duplicated, and only by data at least as new. Imports run one at a time per store: this one may wait in the queue. 409 `import_active` when this kind is queued or running already.
POST
Reads every customer and order, or every product, from the store again; live sync continues meanwhile. Records already in Postforge are updated, never duplicated, and only by data at least as new. Imports run one at a time per store: this one may wait in the queue. 409 import_active when this kind is queued or running already.
id*stringFormat
uuididempotency-key?stringRun this write once: a retry with the same key gets the first answer (24 hours).
Length
1 <= length <= 255application/json- body
scope*stringValue in
"customers_orders""products"OK
application/json- response
id*stringFormat
uuidscope*stringValue in
"customers_orders""products"status*stringValue in
"queued""running""completed""failed"stage*|Value in
"customers""orders""products"nullrequestedBy*|nullimported*error*|Value in
"store_unreachable""export_failed""timed_out""import_failed""store_disconnected"nullqueuedAt*stringFormat
date-timestartedAt*|Format
date-timecompletedAt*|Format
date-timecurl -X POST 'https://api.postforge.dev/v1/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/imports' \ -H 'Content-Type: application/json' \ -d '{ "scope": "customers_orders"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "scope": "customers_orders", "status": "queued", "stage": "customers", "requestedBy": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "imported": { "customers": 0, "orders": 0, "products": 0 }, "error": "store_unreachable", "queuedAt": "2019-08-24T14:15:22Z", "startedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z"}