Manova Developers

Start or finish a full sync

POST
/store/sync

start begins a full sync under your syncId; send the products with the same syncId, then finish, which removes every product the sync did not send. A newer start replaces the running sync; calls with the older syncId then get 409.

Authorization

store
headerAuthorizationBearer <mnv_...>

The store connection key from the assistant's «فروشگاه» section: mnv_<store>_<secret>.

Request Body

application/json
  1. body
syncId*string
Match^[A-Za-z0-9_-]{8,40}$
phase*string
Value in"start""finish"

Response Body

application/json
  1. response
ok*boolean
removed*integer
products*integer
inStock*integer
Example Request
curl -X POST 'https://manova.ir/api/v1/external/store/sync' \  -H 'Content-Type: application/json' \  -d '{  "syncId": "string",  "phase": "start"}'
Example Response
{  "ok": true,  "removed": 0,  "products": 0,  "inStock": 0}