---
updatedAt: 2026-07-31T14:21:16.000Z
agentTools:
  projectIndex: https://reference.fidel.uk/llms.txt
---

# List Locations by Offer

Lists all locations linked to an offer.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "fidel-api",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.fidel.uk/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Fidel-Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/offers/{offerId}/locations": {
      "get": {
        "summary": "List Locations by Offer",
        "description": "Lists all locations linked to an offer.",
        "operationId": "list-locations-by-offer",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Id of the offer.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "application/json",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Fidel-Key",
            "in": "header",
            "description": "test/live API secret key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of locations in the response",
            "schema": {
              "type": "string",
              "default": "100"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "Tells the API where the previous response left off. Use ${encodeURIComponent(JSON.stringify(last))}, where \"last\" is the parameter from the previous query.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "possible values [asc, desc] of 'created' date",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"count\": 2,\n  \"items\": [\n    {\n      \"city\": \"New York\",\n      \"timezone\": \"America/New_York\",\n      \"mastercard\": {\n        \"clearingTransactionId\": null,\n        \"auth\": false,\n        \"authTransactionId\": null,\n        \"clearing\": false,\n        \"status\": \"active\"\n      },\n      \"countryCode\": \"USA\",\n      \"activeDate\": \"2020-06-02T10:42:43.184Z\",\n      \"currency\": \"USD\",\n      \"id\": \"e5a9382d-ad68-4da0-b8c2-3ffaa06c36b4\",\n      \"live\": false,\n      \"address\": \"Madison Avenue\",\n      \"created\": \"2020-06-02T10:42:43.184Z\",\n      \"clo\": true,\n      \"postcode\": \"120000\",\n      \"searchBy\": {\n        \"merchantIds\": {\n          \"mastercard\": [\n            \"123456789\"\n          ],\n          \"visa\": [\n            \"123456789\"\n          ]\n        }\n      },\n      \"accountId\": \"3693ac7e-3e2b-432c-8c60-2b786453ca9b\",\n      \"amex\": {\n        \"clearingTransactionId\": null,\n        \"auth\": false,\n        \"authTransactionId\": null,\n        \"clearing\": false,\n        \"status\": \"active\"\n      },\n      \"visa\": {\n        \"clearingTransactionId\": null,\n        \"auth\": false,\n        \"authTransactionId\": null,\n        \"clearing\": false,\n        \"status\": \"active\"\n      },\n      \"brandId\": \"dfa6ae42-d5b6-496c-8a82-e8a76f51cba3\",\n      \"preonboard\": false,\n      \"stateCode\": \"NY\",\n      \"updated\": \"2020-06-02T10:42:55.097Z\",\n      \"programId\": \"bbb66abb-237a-439e-bb8a-d886c4532f28\",\n      \"geolocation\": {\n        \"latitude\": 51.5138332,\n        \"longitude\": -0.1318224\n      }\n    },\n    {\n      \"city\": \"New York\",\n      \"timezone\": \"America/New_York\",\n      \"mastercard\": {\n        \"estimatedActivationDate\": null,\n        \"clearingTransactionId\": null,\n        \"auth\": false,\n        \"authTransactionId\": null,\n        \"clearing\": false,\n        \"status\": \"active\"\n      },\n      \"countryCode\": \"USA\",\n      \"activeDate\": \"2020-04-21T13:49:11.729Z\",\n      \"currency\": \"USD\",\n      \"id\": \"31b31ed9-a4bc-4830-a367-25fae884eafd\",\n      \"live\": false,\n      \"address\": \"5th Avenue\",\n      \"created\": \"2020-04-21T13:49:11.729Z\",\n      \"clo\": true,\n      \"searchBy\": {\n        \"merchantIds\": {\n          \"mastercard\": [\n            \"1234567\"\n          ],\n          \"visa\": [\n            \"1234567\"\n          ]\n        }\n      },\n      \"postcode\": \"120000\",\n      \"accountId\": \"3693ac7e-3e2b-432c-8c60-2b786453ca9b\",\n      \"amex\": {\n        \"estimatedActivationDate\": null,\n        \"clearingTransactionId\": null,\n        \"auth\": false,\n        \"authTransactionId\": null,\n        \"clearing\": false,\n        \"status\": \"active\"\n      },\n      \"visa\": {\n        \"estimatedActivationDate\": null,\n        \"clearingTransactionId\": null,\n        \"auth\": false,\n        \"authTransactionId\": null,\n        \"clearing\": false,\n        \"status\": \"active\"\n      },\n      \"preonboard\": false,\n      \"brandId\": \"dfa6ae42-d5b6-496c-8a82-e8a76f51cba3\",\n      \"stateCode\": \"NY\",\n      \"updated\": \"2020-04-21T13:52:58.458Z\",\n      \"programId\": \"bbb66abb-237a-439e-bb8a-d886c4532f28\",\n      \"geolocation\": {\n        \"latitude\": 51.5138332,\n        \"longitude\": -0.1318224\n      }\n    }\n  ],\n  \"resource\": \"/v1/offers/cf22478e-c700-4f31-b75b-38016605e2a3/locations\",\n  \"status\": 200,\n  \"execution\": 34.753865\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "city": {
                            "type": "string",
                            "example": "New York"
                          },
                          "timezone": {
                            "type": "string",
                            "example": "America/New_York"
                          },
                          "mastercard": {
                            "type": "object",
                            "properties": {
                              "clearingTransactionId": {},
                              "auth": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "authTransactionId": {},
                              "clearing": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "status": {
                                "type": "string",
                                "example": "active"
                              }
                            }
                          },
                          "countryCode": {
                            "type": "string",
                            "example": "USA"
                          },
                          "activeDate": {
                            "type": "string",
                            "example": "2020-06-02T10:42:43.184Z"
                          },
                          "currency": {
                            "type": "string",
                            "example": "USD"
                          },
                          "id": {
                            "type": "string",
                            "example": "e5a9382d-ad68-4da0-b8c2-3ffaa06c36b4"
                          },
                          "live": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "address": {
                            "type": "string",
                            "example": "Madison Avenue"
                          },
                          "created": {
                            "type": "string",
                            "example": "2020-06-02T10:42:43.184Z"
                          },
                          "clo": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "postcode": {
                            "type": "string",
                            "example": "120000"
                          },
                          "searchBy": {
                            "type": "object",
                            "properties": {
                              "merchantIds": {
                                "type": "object",
                                "properties": {
                                  "mastercard": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "example": "123456789"
                                    }
                                  },
                                  "visa": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "example": "123456789"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "accountId": {
                            "type": "string",
                            "example": "3693ac7e-3e2b-432c-8c60-2b786453ca9b"
                          },
                          "amex": {
                            "type": "object",
                            "properties": {
                              "clearingTransactionId": {},
                              "auth": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "authTransactionId": {},
                              "clearing": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "status": {
                                "type": "string",
                                "example": "active"
                              }
                            }
                          },
                          "visa": {
                            "type": "object",
                            "properties": {
                              "clearingTransactionId": {},
                              "auth": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "authTransactionId": {},
                              "clearing": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "status": {
                                "type": "string",
                                "example": "active"
                              }
                            }
                          },
                          "brandId": {
                            "type": "string",
                            "example": "dfa6ae42-d5b6-496c-8a82-e8a76f51cba3"
                          },
                          "preonboard": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "stateCode": {
                            "type": "string",
                            "example": "NY"
                          },
                          "updated": {
                            "type": "string",
                            "example": "2020-06-02T10:42:55.097Z"
                          },
                          "programId": {
                            "type": "string",
                            "example": "bbb66abb-237a-439e-bb8a-d886c4532f28"
                          },
                          "geolocation": {
                            "type": "object",
                            "properties": {
                              "latitude": {
                                "type": "number",
                                "example": 51.5138332,
                                "default": 0
                              },
                              "longitude": {
                                "type": "number",
                                "example": -0.1318224,
                                "default": 0
                              }
                            }
                          }
                        }
                      }
                    },
                    "resource": {
                      "type": "string",
                      "example": "/v1/offers/cf22478e-c700-4f31-b75b-38016605e2a3/locations"
                    },
                    "status": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "execution": {
                      "type": "number",
                      "example": 34.753865,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"resource\": \"/v1/offers/b6a559e0-c1c3-430d-681-616aaec4e0c3/locations\",\n\t\"status\": 400,\n\t\"error\": {\n\t\t\"code\": \"uuid\",\n\t\t\"date\": \"2020-08-22T11:04:55.200Z\",\n\t\t\"message\": \"Invalid uuid\"\n\t},\n\t\"execution\": 4.444606\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "resource": {
                      "type": "string",
                      "example": "/v1/offers/b6a559e0-c1c3-430d-681-616aaec4e0c3/locations"
                    },
                    "status": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "uuid"
                        },
                        "date": {
                          "type": "string",
                          "example": "2020-08-22T11:04:55.200Z"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid uuid"
                        }
                      }
                    },
                    "execution": {
                      "type": "number",
                      "example": 4.444606,
                      "default": 0
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X GET \\\n  https://api.fidel.uk/v1/offers/cf22478e-c700-4f31-b75b-38016605e2a3/locations \\\n  -H 'Content-Type: application/json' \\\n  -H 'Fidel-Key: sk_test_50ea90b6-2a3b-4a56-814d-1bc592ba4d63'"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```