1. Home
  2. Docs
  3. Data Partners API Documentation
  4. Merchant Location

Merchant Location

This step is needed when subscribers need to retrieve transactions at certain merchant locations.
To add a new location, a POST request is sent to the endpoint at

/merchant/location/

Along with their current api token (JWT) and the following location details:

  • Street
  • Street Number
  • Country
  • Zip code
  • City
  • Latitude
  • Longitude

For example:

In cUrl:

curl -X POST \
URL/merchant/location \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJ*********kd4' \
-d '{\
"location": {\
"countryCode": "GBR",\
"street": "Liverpool St",\
"streetNo": "162",\
"city": "London",\
"zip": "AAA 001"\
}\
}'

If the location was created successfully, the response should be as follows:
{
“error”: null,
“message”: “Location created”,
“locationId”: 2384347234
}

How can we help?