PUT/shop/{shopId}

Update Shop

Update Shop

Implementation Notes:

This method enables you to edit a shop by providing the shopID as an input.

PUT/shop/{shopId}

Parameter Details

NameInTypeRequiredDescription
shopIdpathintegerRequiredEnter shopId
bodybodyobjectOptionalnone
» shopNamebodystringOptionalshows the list of shops name
» hotelCodesbodyOptionalhotelCodes must be an array
» sourceCodesbodyOptionalshows the list of sourceCodes in an array
» shopTypebodynumberOptionalnone

Responses

StatusMeaningDescriptionSchema
200OKUpdated
400Bad RequestBad RequestNone
401UnauthorizedAuthorization FailedNone
404Not FoundNot foundNone
429Too Many RequestsToo Many RequestsNone
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X PUT http://localhost:3000/shop/{shopId} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Body parameter

{
  "shopName": "Abc",
  "hotelCodes": [
    1,
    123
  ],
  "sourceCodes": [
    1,
    283
  ],
  "shopType": 1
}

Example responses

200 Response
{
  "message": "Shops details updated successfully"
}

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.