PUT
/api/v1/shop/{shopId}Update Shop
PUT
/api/v1/shop/{shopId}Parameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
shopId | path | string(string) | Required | none |
body | body | shopPutReq | Required | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | schemashopputresp |
| 400 | Bad Request | Request data failed validation(s) | |
| 401 | Unauthorized | Authentication Failed! | |
| 429 | Too Many Requests | Too Many Requests. | |
| 500 | Internal Server Error | Internal Server Error | |
Example Request
# You can also use wget
curl -X PUT /api/v1/shop/{shopId} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: API_KEY'
Body parameter
{
"_OD": [
{
"OD": "YXZMAI",
"_flyFrom": "62b943e4dd59913b61a6b15b",
"_flyTo": "62b943e4dd59913b61a6b15c"
}
],
"_sources": [
"6239aec26c3c588d8f64ecfc"
],
"_alternateSources": [
"61515e50b77f75890e8acbaf"
],
"_cabinClasses": [
"6013a6abf553c71d4dfbe92d"
],
"_carriers": [
"6013a6abf553c71d4dfbe92d"
],
"isRoundTrip": false,
"los": 1,
"horizons": [
"0",
"3-10",
"02/05/2025",
"10/06/2025-10/08/2025"
],
"pax": {
"adults": 1,
"infants": 0,
"children": 0
},
"noOfStops": "1",
"duration": {
"hour": 40,
"minute": 30
},
"fareType": "Doctors",
"_pos": "62a2e3ca581567e3cd67ce1a",
"_currency": "5fa104806304832acf9c67f5",
"shopName": "Flightshop name",
"deliveryMode": [
"db"
],
"isActiveStatus": true
}
Example responses
200 Response
{
"error": false,
"shop": {
"_OD": [
{
"OD": "MXAIZS",
"_flyFrom": "62b943e4dd59913b61a6b15b",
"_flyTo": "62b943e4dd59913b61a6b15c"
}
],
"_sources": [
"6239aec26c3c588d8f64ecfc"
],
"_alternateSources": [
"61515e50b77f75890e8acbaf"
],
"_cabinClasses": [
"6013a6abf553c71d4dfbe92d"
],
"_carriers": [
"6013a6abf553c71d4dfbe92d"
],
"horizons": [
"0",
"3-10",
"02/05/2025",
"10/06/2025-10/08/2025"
],
"isRoundTrip": true,
"los": 1,
"pax": {
"adults": 1,
"infants": 0,
"children": 0
},
"duration": {
"hour": 32,
"minute": 40
},
"fareType": "Regular",
"startDate": "2019-08-24",
"_pos": "62a2e3ca581567e3cd67ce1a",
"_currency": "5fa104806304832acf9c67f5",
"shopName": "Flightshop name",
"_user": "6411b27b79d2c995fc689c4b",
"userName": "user@flightrates.com",
"vertical": "flightrates",
"posName": "POS/123",
"deliveryMode": [
"db"
],
"isActiveStatus": true,
"_id": "640ace815353bdb6454e191b",
"isCustomerCreated": true,
"createdAt": "2023-03-10T06:30:25.288Z",
"updatedAt": "2023-03-10T06:30:25.288Z",
"id": "640ace815353bdb6454e191b"
}
}
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.