PUT/api/v1/shops/bulkupdate

Bulk Shop Update

PUT/api/v1/shops/bulkupdate

Parameter Details

NameInTypeRequiredDescription
bodybodyobjectRequirednone
ยป filebodystring(binary)RequiredThe CSV file to upload.

Responses

StatusMeaningDescriptionSchema
200OKSuccess
400Bad RequestBad Request
401UnauthorizedUnauthorized
404Not FoundNot Found
429Too Many RequestsToo Many Requests.
500Internal Server ErrorInternal Server Error

Example Request

# You can also use wget
curl -X PUT /api/v1/shops/bulkupdate \
  -H 'Content-Type: multipart/form-data' \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Body parameter

file: string

Example responses

200 Response
{
  "error": false,
  "statusCode": 200,
  "msg": "Shop successfully updated, shops count: 3",
  "shopID": [
    "1",
    "2",
    "3"
  ],
  "errorLog": []
}

Not Found

{
  "error": true,
  "statusCode": 404,
  "message": "No shop found to be updated!"
}

Not Found

{
  "error": true,
  "statusCode": 404,
  "message": "User not found or inactive."
}

Example 5

{
  "error": true,
  "statusCode": 404,
  "message": "Empty CSV!"
}

Example 6

{
  "error": true,
  "statusCode": 404,
  "message": "No data found!"
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.