8 API Reference‎ > ‎Resources‎ > ‎

Location

Location represents a physical location. It's used to define redemption locations of advertisers.

Common attributes:
  • id string.
  • name string.
  • address_line_1 string.
  • address_line_2 string.
  • city string.
  • state_code string.
  • postal_code string.
  • country_code string. See ISO 3166-1 alpha-2 standard country codes on wikipedia.
  • public_phone string.
Distribution API specific attributes:

Data Example

JSON

{
    "id": "",
    "name": "",
    "address_line_1": "",
    "address_line_2": "",
    "city": "",
    "state_code": "",
    "postal_code": "",
    "country_code": "",
    "lng": "",
    "lat": "",
    "references": LocationReferences
}

XML

<location>
    <id></id>
    <name></name>
    <address_line_1></address_line_1>
    <address_line_2></address_line_2>
    <city></city>
    <state_code></state_code>
    <postal_code></postal_code>
    <country_code></country_code>
    <lng></lng>
    <lat></lat>
    <references>LocationReferences</references>
</location>

Actions

No actions supported.



Comments