POST/api/v1/shops/bulk

Bulk Shop Upload

POST/api/v1/shops/bulk

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 POST /api/v1/shops/bulk \
  -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": "Successfully Uploaded !!",
  "shopName": [
    "Flightshopname1",
    "Flightshopname2",
    "Flightshopname3"
  ],
  "errorLog": []
}

Not Found

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

Not Found

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

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.