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

# Create Location

Creating a location requires a programId, brandId, and address details. Optionally, you can add merchantIDs.

# 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": {
    "/programs/{programId}/locations": {
      "post": {
        "summary": "Create Location",
        "description": "Creating a location requires a programId, brandId, and address details. Optionally, you can add merchantIDs.",
        "operationId": "create-location",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "application/json",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "programId",
            "in": "path",
            "description": "The program you wish to add the location to.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Fidel-Key",
            "in": "header",
            "description": "test/live API secret key.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "address",
                  "brandId",
                  "city",
                  "countryCode",
                  "postcode"
                ],
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "2 - 100 characters."
                  },
                  "brandId": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string",
                    "description": "2 - 100 characters."
                  },
                  "countryCode": {
                    "type": "string",
                    "description": "allowedValues\":[\"CAN\",\"DNK\",\"FIN\",\"GBR\",\"IRL\",\"JPN\",\"NOR\",\"SWE\",\"USA\"]"
                  },
                  "postcode": {
                    "type": "string",
                    "description": "4 - 20 characters."
                  },
                  "stateCode": {
                    "type": "string",
                    "description": "(Only for USA locations) 2-letter US state code from the ANSI standard INCITS 38:2009"
                  },
                  "searchBy": {
                    "type": "object",
                    "description": "searchBy object, containing a merchantIds object with three keys, amex, visa and mastercard. These three keys have arrays of strings as values. The ​searchBy field is a means by which customers can associate a MID with a location if they already know it.",
                    "properties": {
                      "merchantIds": {
                        "type": "object",
                        "description": "merchantIds object containing Visa/ Mastercard and American Express keys and arrays of strings as values. This field should only be seen as an input method (to supply the MIDs you already have) and not relied on as an output (to look for MIDs).",
                        "properties": {
                          "amex": {
                            "type": "array",
                            "description": "Array of Amex merchant ids",
                            "items": {
                              "type": "string"
                            }
                          },
                          "mastercard": {
                            "type": "array",
                            "description": "Array of mastercard merchant ids",
                            "items": {
                              "type": "string"
                            }
                          },
                          "visa": {
                            "type": "array",
                            "description": "Array of Visa merchant ids",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  },
                  "metadata": {
                    "properties": {
                      "customKey": {
                        "type": "string",
                        "description": "Custom key/value."
                      }
                    },
                    "required": [],
                    "type": "object",
                    "description": "Metadata object with custom key value pairs. Object size limited to 2kb."
                  },
                  "status": {
                    "type": "string",
                    "description": "Optional parameter that can be set to \"syncing\" if locations should auto sync on creations in a program. Only works in the live environment, all test environment locations are active (synced) by default.",
                    "default": "syncing"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Create Test Location": {
                    "value": "{\n  \"items\": [\n    {\n      \"accountId\": \"3693ac7e-3e2b-432c-8c60-2b786453ca9b\",\n      \"address\": \"55 West 46th Street\",\n      \"brandId\": \"838d648e-5614-48a7-8e8b-6b3014638c66\",\n      \"city\": \"New York\",\n      \"countryCode\": \"USA\",\n      \"currency\": \"USD\",\n      \"stateCode\": \"NY\",\n      \"live\": false,\n      \"metadata\": {\n        \"customKey1\": \"customValue1\",\n        \"customKey2\": \"customValue2\"\n      },\n      \"postcode\": \"10036\",\n      \"programId\": \"b58d8057-9159-4daf-a003-1397e28f6822\",\n      \"geolocation\": {\n        \"latitude\": 51.5138332,\n        \"longitude\": -0.1318224\n      },\n      \"preonboard\": false,\n      \"searchBy\": {\n        \"merchantIds\": {\n          \"amex\": [\n            \"1357986420\"\n          ],\n          \"mastercard\": [\n            \"1234567\",\n            \"7654321\"\n          ],\n          \"visa\": [\n            \"1234567\",\n            \"7654321\"\n          ]\n        }\n      },\n      \"timezone\": \"America/New_York\",\n      \"updated\": \"2020-08-19T17:21:36.327Z\",\n      \"created\": \"2020-08-19T17:21:36.327Z\",\n      \"id\": \"e8e44865-190b-46d0-9fcb-d23718cc6698\",\n      \"amex\": {\n        \"auth\": false,\n        \"authTransactionId\": null,\n        \"clearing\": false,\n        \"clearingTransactionId\": null,\n        \"estimatedActivationDate\": null,\n        \"status\": \"active\"\n      },\n      \"mastercard\": {\n        \"auth\": false,\n        \"authTransactionId\": null,\n        \"clearing\": false,\n        \"clearingTransactionId\": null,\n        \"estimatedActivationDate\": null,\n        \"status\": \"active\"\n      },\n      \"visa\": {\n        \"auth\": false,\n        \"authTransactionId\": null,\n        \"clearing\": false,\n        \"clearingTransactionId\": null,\n        \"estimatedActivationDate\": null,\n        \"status\": \"active\"\n      },\n      \"activeDate\": \"2020-08-19T17:21:36.327Z\",\n      \"active\": true\n    }\n  ],\n  \"resource\": \"/v1/programs/b58d8057-9159-4daf-a003-1397e28f6822/locations\",\n  \"status\": 201,\n  \"execution\": 91.052125\n}"
                  },
                  "Create Live Auto Sync Location": {
                    "value": "{\n \"items\": [\n  {\n   \"accountId\": \"4ed4b62b-aa4c-43a1-8064-da6d1368e17a\",\n   \"address\": \"55 West 46th Street\",\n   \"brandId\": \"8c092cdb-e53d-4512-8168-c2a7f6b87286\",\n   \"city\": \"New York\",\n   \"countryCode\": \"USA\",\n   \"currency\": \"USD\",\n   \"stateCode\": \"NY\",\n   \"live\": true,\n   \"postcode\": \"10036\",\n   \"programId\": \"1ed2d0a4-b778-4ea4-b991-b5ede2d4eeaa\",\n   \"geolocation\": {\n    \"latitude\": 51.5152825,\n    \"longitude\": -0.1331279\n   },\n   \"preonboard\": false,\n   \"searchBy\": {\n    \"merchantIds\": {\n     \"visa\": [\n      \"1234567\",\n      \"7654321\"\n     ],\n     \"mastercard\": [\n      \"1234567\",\n      \"7654321\"\n     ]\n    }\n   },\n   \"timezone\": \"America/New_York\",\n   \"updated\": \"2020-09-16T13:27:08.198Z\",\n   \"created\": \"2020-09-16T13:27:08.198Z\",\n   \"id\": \"6bd91a11-3344-4c66-8907-f7bbe078df7b\",\n   \"amex\": {\n    \"auth\": false,\n    \"authTransactionId\": null,\n    \"clearing\": false,\n    \"clearingTransactionId\": null,\n    \"estimatedActivationDate\": null,\n    \"status\": \"sync\"\n   },\n   \"mastercard\": {\n    \"auth\": false,\n    \"authTransactionId\": null,\n    \"clearing\": false,\n    \"clearingTransactionId\": null,\n    \"estimatedActivationDate\": null,\n    \"status\": \"sync\"\n   },\n   \"visa\": {\n    \"auth\": false,\n    \"authTransactionId\": null,\n    \"clearing\": false,\n    \"clearingTransactionId\": null,\n    \"estimatedActivationDate\": null,\n    \"status\": \"sync\"\n   },\n   \"active\": false\n  }\n ],\n \"resource\": \"/v1/programs/1ed2d0a4-b778-4ea4-b991-b5ede2d4eeaa/locations\",\n \"status\": 201,\n \"execution\": 819.48814\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Create Test Location",
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "accountId": {
                                "type": "string",
                                "example": "3693ac7e-3e2b-432c-8c60-2b786453ca9b"
                              },
                              "address": {
                                "type": "string",
                                "example": "55 West 46th Street"
                              },
                              "brandId": {
                                "type": "string",
                                "example": "838d648e-5614-48a7-8e8b-6b3014638c66"
                              },
                              "city": {
                                "type": "string",
                                "example": "New York"
                              },
                              "countryCode": {
                                "type": "string",
                                "example": "USA"
                              },
                              "currency": {
                                "type": "string",
                                "example": "USD"
                              },
                              "stateCode": {
                                "type": "string",
                                "example": "NY"
                              },
                              "live": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "metadata": {
                                "type": "object",
                                "properties": {
                                  "customKey1": {
                                    "type": "string",
                                    "example": "customValue1"
                                  },
                                  "customKey2": {
                                    "type": "string",
                                    "example": "customValue2"
                                  }
                                }
                              },
                              "postcode": {
                                "type": "string",
                                "example": "10036"
                              },
                              "programId": {
                                "type": "string",
                                "example": "b58d8057-9159-4daf-a003-1397e28f6822"
                              },
                              "geolocation": {
                                "type": "object",
                                "properties": {
                                  "latitude": {
                                    "type": "number",
                                    "example": 51.5138332,
                                    "default": 0
                                  },
                                  "longitude": {
                                    "type": "number",
                                    "example": -0.1318224,
                                    "default": 0
                                  }
                                }
                              },
                              "preonboard": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "searchBy": {
                                "type": "object",
                                "properties": {
                                  "merchantIds": {
                                    "type": "object",
                                    "properties": {
                                      "amex": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "example": "1357986420"
                                        }
                                      },
                                      "mastercard": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "example": "1234567"
                                        }
                                      },
                                      "visa": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "example": "1234567"
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "timezone": {
                                "type": "string",
                                "example": "America/New_York"
                              },
                              "updated": {
                                "type": "string",
                                "example": "2020-08-19T17:21:36.327Z"
                              },
                              "created": {
                                "type": "string",
                                "example": "2020-08-19T17:21:36.327Z"
                              },
                              "id": {
                                "type": "string",
                                "example": "e8e44865-190b-46d0-9fcb-d23718cc6698"
                              },
                              "amex": {
                                "type": "object",
                                "properties": {
                                  "auth": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "authTransactionId": {},
                                  "clearing": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "clearingTransactionId": {},
                                  "estimatedActivationDate": {},
                                  "status": {
                                    "type": "string",
                                    "example": "active"
                                  }
                                }
                              },
                              "mastercard": {
                                "type": "object",
                                "properties": {
                                  "auth": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "authTransactionId": {},
                                  "clearing": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "clearingTransactionId": {},
                                  "estimatedActivationDate": {},
                                  "status": {
                                    "type": "string",
                                    "example": "active"
                                  }
                                }
                              },
                              "visa": {
                                "type": "object",
                                "properties": {
                                  "auth": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "authTransactionId": {},
                                  "clearing": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "clearingTransactionId": {},
                                  "estimatedActivationDate": {},
                                  "status": {
                                    "type": "string",
                                    "example": "active"
                                  }
                                }
                              },
                              "activeDate": {
                                "type": "string",
                                "example": "2020-08-19T17:21:36.327Z"
                              },
                              "active": {
                                "type": "boolean",
                                "example": true,
                                "default": true
                              }
                            }
                          }
                        },
                        "resource": {
                          "type": "string",
                          "example": "/v1/programs/b58d8057-9159-4daf-a003-1397e28f6822/locations"
                        },
                        "status": {
                          "type": "integer",
                          "example": 201,
                          "default": 0
                        },
                        "execution": {
                          "type": "number",
                          "example": 91.052125,
                          "default": 0
                        }
                      }
                    },
                    {
                      "title": "Create Live Auto Sync Location",
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "accountId": {
                                "type": "string",
                                "example": "4ed4b62b-aa4c-43a1-8064-da6d1368e17a"
                              },
                              "address": {
                                "type": "string",
                                "example": "55 West 46th Street"
                              },
                              "brandId": {
                                "type": "string",
                                "example": "8c092cdb-e53d-4512-8168-c2a7f6b87286"
                              },
                              "city": {
                                "type": "string",
                                "example": "New York"
                              },
                              "countryCode": {
                                "type": "string",
                                "example": "USA"
                              },
                              "currency": {
                                "type": "string",
                                "example": "USD"
                              },
                              "stateCode": {
                                "type": "string",
                                "example": "NY"
                              },
                              "live": {
                                "type": "boolean",
                                "example": true,
                                "default": true
                              },
                              "postcode": {
                                "type": "string",
                                "example": "10036"
                              },
                              "programId": {
                                "type": "string",
                                "example": "1ed2d0a4-b778-4ea4-b991-b5ede2d4eeaa"
                              },
                              "geolocation": {
                                "type": "object",
                                "properties": {
                                  "latitude": {
                                    "type": "number",
                                    "example": 51.5152825,
                                    "default": 0
                                  },
                                  "longitude": {
                                    "type": "number",
                                    "example": -0.1331279,
                                    "default": 0
                                  }
                                }
                              },
                              "preonboard": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "searchBy": {
                                "type": "object",
                                "properties": {
                                  "merchantIds": {
                                    "type": "object",
                                    "properties": {
                                      "visa": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "example": "1234567"
                                        }
                                      },
                                      "mastercard": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "example": "1234567"
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "timezone": {
                                "type": "string",
                                "example": "America/New_York"
                              },
                              "updated": {
                                "type": "string",
                                "example": "2020-09-16T13:27:08.198Z"
                              },
                              "created": {
                                "type": "string",
                                "example": "2020-09-16T13:27:08.198Z"
                              },
                              "id": {
                                "type": "string",
                                "example": "6bd91a11-3344-4c66-8907-f7bbe078df7b"
                              },
                              "amex": {
                                "type": "object",
                                "properties": {
                                  "auth": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "authTransactionId": {},
                                  "clearing": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "clearingTransactionId": {},
                                  "estimatedActivationDate": {},
                                  "status": {
                                    "type": "string",
                                    "example": "sync"
                                  }
                                }
                              },
                              "mastercard": {
                                "type": "object",
                                "properties": {
                                  "auth": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "authTransactionId": {},
                                  "clearing": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "clearingTransactionId": {},
                                  "estimatedActivationDate": {},
                                  "status": {
                                    "type": "string",
                                    "example": "sync"
                                  }
                                }
                              },
                              "visa": {
                                "type": "object",
                                "properties": {
                                  "auth": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "authTransactionId": {},
                                  "clearing": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "clearingTransactionId": {},
                                  "estimatedActivationDate": {},
                                  "status": {
                                    "type": "string",
                                    "example": "sync"
                                  }
                                }
                              },
                              "active": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              }
                            }
                          }
                        },
                        "resource": {
                          "type": "string",
                          "example": "/v1/programs/1ed2d0a4-b778-4ea4-b991-b5ede2d4eeaa/locations"
                        },
                        "status": {
                          "type": "integer",
                          "example": 201,
                          "default": 0
                        },
                        "execution": {
                          "type": "number",
                          "example": 819.48814,
                          "default": 0
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Missing Property": {
                    "value": "{\n\t\"resource\": \"/v1/programs/6139f5b1-ea74-44f3-b5b3-86268dcfc4d7/locations\",\n\t\"status\": 400,\n\t\"error\": {\n\t\t\"code\": \"schema\",\n\t\t\"date\": \"2020-08-22T08:38:42.239Z\",\n\t\t\"message\": \"Invalid schema\",\n\t\t\"metadata\": [\n\t\t\t{\n\t\t\t\t\"keyword\": \"required\",\n\t\t\t\t\"dataPath\": \"\",\n\t\t\t\t\"schemaPath\": \"#/required\",\n\t\t\t\t\"params\": {\n\t\t\t\t\t\"missingProperty\": \"address\"\n\t\t\t\t},\n\t\t\t\t\"message\": \"should have required property 'address'\"\n\t\t\t}\n\t\t]\n\t},\n\t\"execution\": 44.03092\n}"
                  },
                  "Invalid Id": {
                    "value": "{\n\t\"resource\": \"/v1/programs/6139f5b1-ea74-44f3-b5b3-86268dcfc4d7/locations\",\n\t\"status\": 400,\n\t\"error\": {\n\t\t\"code\": \"schema\",\n\t\t\"date\": \"2020-08-22T08:39:36.000Z\",\n\t\t\"message\": \"Invalid schema\",\n\t\t\"metadata\": [\n\t\t\t{\n\t\t\t\t\"keyword\": \"format\",\n\t\t\t\t\"dataPath\": \".brandId\",\n\t\t\t\t\"schemaPath\": \"#/properties/brandId/format\",\n\t\t\t\t\"params\": {\n\t\t\t\t\t\"format\": \"uuid\"\n\t\t\t\t},\n\t\t\t\t\"message\": \"should match format \\\"uuid\\\"\"\n\t\t\t}\n\t\t]\n\t},\n\t\"execution\": 15.899673\n}"
                  },
                  "Sync Test Location": {
                    "value": "{\n \"resource\": \"/v1/programs/b58d8057-9159-4daf-a003-1397e28f6822/locations\",\n \"status\": 400,\n \"error\": {\n  \"code\": \"location-status-invalid\",\n  \"date\": \"2020-09-16T13:19:02.967Z\",\n  \"message\": \"Test location cannot be created with status syncing\"\n },\n \"execution\": 25.671015\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Missing Property",
                      "type": "object",
                      "properties": {
                        "resource": {
                          "type": "string",
                          "example": "/v1/programs/6139f5b1-ea74-44f3-b5b3-86268dcfc4d7/locations"
                        },
                        "status": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "schema"
                            },
                            "date": {
                              "type": "string",
                              "example": "2020-08-22T08:38:42.239Z"
                            },
                            "message": {
                              "type": "string",
                              "example": "Invalid schema"
                            },
                            "metadata": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "keyword": {
                                    "type": "string",
                                    "example": "required"
                                  },
                                  "dataPath": {
                                    "type": "string",
                                    "example": ""
                                  },
                                  "schemaPath": {
                                    "type": "string",
                                    "example": "#/required"
                                  },
                                  "params": {
                                    "type": "object",
                                    "properties": {
                                      "missingProperty": {
                                        "type": "string",
                                        "example": "address"
                                      }
                                    }
                                  },
                                  "message": {
                                    "type": "string",
                                    "example": "should have required property 'address'"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "execution": {
                          "type": "number",
                          "example": 44.03092,
                          "default": 0
                        }
                      }
                    },
                    {
                      "title": "Invalid Id",
                      "type": "object",
                      "properties": {
                        "resource": {
                          "type": "string",
                          "example": "/v1/programs/6139f5b1-ea74-44f3-b5b3-86268dcfc4d7/locations"
                        },
                        "status": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "schema"
                            },
                            "date": {
                              "type": "string",
                              "example": "2020-08-22T08:39:36.000Z"
                            },
                            "message": {
                              "type": "string",
                              "example": "Invalid schema"
                            },
                            "metadata": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "keyword": {
                                    "type": "string",
                                    "example": "format"
                                  },
                                  "dataPath": {
                                    "type": "string",
                                    "example": ".brandId"
                                  },
                                  "schemaPath": {
                                    "type": "string",
                                    "example": "#/properties/brandId/format"
                                  },
                                  "params": {
                                    "type": "object",
                                    "properties": {
                                      "format": {
                                        "type": "string",
                                        "example": "uuid"
                                      }
                                    }
                                  },
                                  "message": {
                                    "type": "string",
                                    "example": "should match format \"uuid\""
                                  }
                                }
                              }
                            }
                          }
                        },
                        "execution": {
                          "type": "number",
                          "example": 15.899673,
                          "default": 0
                        }
                      }
                    },
                    {
                      "title": "Sync Test Location",
                      "type": "object",
                      "properties": {
                        "resource": {
                          "type": "string",
                          "example": "/v1/programs/b58d8057-9159-4daf-a003-1397e28f6822/locations"
                        },
                        "status": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "location-status-invalid"
                            },
                            "date": {
                              "type": "string",
                              "example": "2020-09-16T13:19:02.967Z"
                            },
                            "message": {
                              "type": "string",
                              "example": "Test location cannot be created with status syncing"
                            }
                          }
                        },
                        "execution": {
                          "type": "number",
                          "example": 25.671015,
                          "default": 0
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X POST \\\n  https://api.fidel.uk/v1/programs/b58d8057-9159-4daf-a003-1397e28f6822/locations \\\n  -H 'content-type: application/json' \\\n  -H 'fidel-key: sk_test_50ea90b6-2a3b-4a56-814d-1bc592ba4d63' \\\n  -d '{\n    \"address\": \"55 West 46th Street\", \n    \"brandId\": \"838d648e-5614-48a7-8e8b-6b3014638c66\", \n    \"city\": \"New York\", \n    \"countryCode\": \"USA\",\n    \"postcode\": \"10036\",\n    \"stateCode\": \"NY\",\n    \"metadata\": {\n      \"customKey1\": \"customValue1\",\n      \"customKey2\": \"customValue2\"\n    },\n    \"searchBy\": {\n      \"merchantIds\": {\n      \t\"amex\": [\"1357986420\"],\n      \t\"mastercard\": [\"1234567\",\"7654321\"],\n      \t\"visa\": [\"1234567\",\"7654321\"]\n      }\n    }\n}'",
              "name": "Test Location"
            },
            {
              "language": "curl",
              "code": "curl -X POST \\\n  https://api.fidel.uk/v1/programs/1ed2d0a4-b778-4ea4-b991-b5ede2d4eeaa/locations \\\n  -H 'content-type: application/json' \\\n  -H 'fidel-key: sk_live_b2e6a6ab-1a11-47ec-831c-81c2b23fd5a0' \\\n  -d '{\n    \"address\": \"55 West 46th Street\", \n    \"brandId\": \"8c092cdb-e53d-4512-8168-c2a7f6b87286\", \n    \"city\": \"New York\", \n    \"countryCode\": \"USA\",\n    \"postcode\": \"10036\",\n    \"stateCode\": \"NY\",\n    \"status\": \"syncing\",\n    \"searchBy\": {\n    \t\"merchantIds\": {\n    \t\t\"visa\": [\"1234567\",\"7654321\"],\n    \t\t\"mastercard\": [\"1234567\",\"7654321\"]\n    \t}\n    }\n}'",
              "name": "Auto Sync Location"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```