GET/api/v1/shops

Get Shops

This API endpoint returns a list of all active shops in the account. No parameters are required for the GET request to retrieve the shop list. Users can specify the number of items per page in the request URL, and the page count parameter allows navigation through multiple pages to access the complete list of shops.
GET/api/v1/shops

Mandatory Fields

  • shopId

Parameter Details

NameInTypeRequiredDescription
pagequeryintegerOptionalThe page number to retrieve.
sizequeryintegerOptionalThe number of items to be displayed per page.

Responses

StatusMeaningDescriptionSchema
200OKSuccess
400Bad RequestRequest data failed validation(s)None
401UnauthorizedAuthentication Failed!None
429Too Many RequestsToo Many Requests.None
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X GET /api/v1/shops \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Example responses

200 Response
{
  "error": false,
  "shops": [
    {
      "_OD": [
        {
          "OD": "YXUYIB",
          "_flyFrom": "62b943e4dd59913b61a6b15b",
          "_flyTo": "62b943e4dd59913b61a6b15c"
        }
      ],
      "_sources": [
        "6239aec26c3c588d8f64ecfc"
      ],
      "_alternateSources": [
        "61515e50b77f75890e8acbaf"
      ],
      "_cabinClasses": [
        "6013a6abf553c71d4dfbe92d"
      ],
      "_carriers": [
        "6013a6abf553c71d4dfbe92d"
      ],
      "isRoundTrip": true,
      "horizons": [
        "0",
        "3-10",
        "02/05/2025",
        "10/06/2025-10/08/2025"
      ],
      "pax": {
        "adults": 1,
        "infants": 0,
        "children": 0
      },
      "noOfStops": "1",
      "los": 1,
      "duration": {
        "hour": 30,
        "minute": 33
      },
      "fareType": "Regular",
      "startDate": "2019-08-24",
      "_pos": "62a2e3ca581567e3cd67ce1a",
      "_currency": "5fa104806304832acf9c67f5",
      "shopName": "Flightshop name",
      "_user": "6411b27b79d2c995fc689c4b",
      "userName": "user@flightrates.com",
      "vertical": "flightrates",
      "posName": "POS/123",
      "isCustomerCreated": true,
      "deliveryMode": [
        "db"
      ],
      "isActiveStatus": true,
      "_id": "66fbd773cfa2fa105752dc26",
      "createdAt": "2023-03-10T06:30:25.288Z",
      "updatedAt": "2023-03-10T06:30:25.288Z",
      "id": "640ace815353bdb6454e191b"
    }
  ],
  "totalData": 3,
  "totalPages": 2,
  "page": 1,
  "size": 2
}

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.