Retailers

POST /get_retailer_locations

Changed on

Find retailer locations using either an address or coordinates

Request

  • Base URL
    https://api.paynearme-sandbox.com/json-api
  • Auth
    • OAuth 2
      Client credentials
      Token URLhttps://login.paynearme.com/oauth/token
    • or API key in query parameter signature

Request body

OR

Example request

{
  "street": "5201 Great America Pkwy",
  "city": "Santa Clara",
  "state": "CA",
  "postal_code": "95054"
}

Response

List of Retailers Created

OR

Example response

{
  "status": "ok",
  "locations": [
    {
      "retailer": "7-Eleven",
      "street": "486 Gov. Printz Blvd.",
      "city": "DE",
      "latitude": "39.75529",
      "longitude": "-75.49923",
      "distance": "1.17",
      "phone": "302-764-5180",
      "pnm_retailer_identifier": "7-Eleven"
    }
  ]
}

Changes

    • breaking

      removed the success response with the status

    • info

      api operation id get_retailer_locations was added

    • info

      the request property site_identifier with a default value became required

    4 more changes in this revision