Shop
The haravan API's shop object is a collection of the general settings and information about the shop.

Only the shop owner can edit this information from inside their shop admin dashboard by navigating to the "Settings" tab and selecting the "General" tab. The API doesn't let you do anything other than retrieve information about a shop.
What can you do with Shop?
The haravan API lets you do the following with the Shop resource. More detailed versions of these general actions may be available:
Shop Properties
address1 |
The shop's street address. |
city |
The city in which the shop is located. |
country |
The shop's country (by default equal to the two-letter country code). |
country_code |
The two-letter country code corresponding to the shop's country. |
country_name |
The shop's normalized country name. |
created_at |
The date and time when the shop was created. The API returns this value in ISO 8601 format. |
customer_email |
The customer's email. |
currency |
The three-letter code for the currency that the shop accepts. |
domain |
The shop's domain. |
The contact email address for the shop. | |
google_apps_domain |
Feature is present when a shop has a google app domain. It will be returned as a URL. If the shop does not have this feature enabled it will default to "null." |
google_apps_login_enabled |
Feature is present if a shop has google apps enabled. Those shops with this feature will be able to login to the google apps login. Shops without this feature enabled will default to "null." |
id |
A unique numeric identifier for the shop. |
latitude |
Geographic coordinate specifying the north/south location of a shop. |
longitude |
Geographic coordinate specifying the east/west location of a shop. |
money_format |
A string representing the way currency is formatted when the currency isn't specified. |
money_with_currency_format |
A string representing the way currency is formatted when the currency is specified. |
myharavan_domain |
The shop's 'myharavan.com' domain. |
name |
The name of the shop. |
plan_name |
The name of the haravan plan the shop is on. |
display_plan_name |
The display name of the haravan plan the shop is on. |
password_enabled |
Indicates whether the Storefront password protection is enabled. |
phone |
The contact phone number for the shop. |
primary_locale |
The shop's primary locale. |
province |
The shop's normalized province or state name. |
province_code |
The two-letter code for the shop's province or state. |
shop_owner |
The username of the shop owner. |
source |
|
tax_shipping |
Specifies wether or not taxes were charged for shipping. Valid values are: "true" or "false." |
taxes_included |
The setting for whether applicable taxes are included in product prices. Valid values are: "true" or "null." |
county_taxes |
The setting for whether the shop is applying taxes on a per-county basis or not (US-only). Valid values are: "true" or "null." |
timezone |
The name of the timezone the shop is in. |
iana_timezone |
The named timezone assigned by the IANA. |
zip |
The zip or postal code of the shop's address. |
has_storefront |
Indicates whether the shop has web-based storefront or not. |
Endpoints
GET/com/shop.json
GET/web/shop.json
Get the configuration of the shop account
fields | comma-separated list of fields to include in the response |
HTTP/1.1 200 OK { "shop": { "address1": "1 Infinite Loop", "city": "Cupertino", "country": "US", "created_at": "2007-12-31T19:00:00-05:00", "customer_email": "customers@apple.com", "domain": "shop.apple.com", "email": "steve@apple.com", "id": 690933842, "latitude": 45.45, "longitude": -75.43, "name": "Apple Computers", "phone": "1231231234", "primary_locale": "en", "primary_location_id": null, "province": "California", "source": null, "zip": "95014", "country_code": "US", "country_name": "United States", "currency": "USD", "timezone": "(GMT-05:00) Eastern Time (US & Canada)", "iana_timezone": "America\/New_York", "shop_owner": "Steve Jobs", "money_format": "$ ", "money_with_currency_format": "$ USD", "province_code": "CA", "taxes_included": null, "tax_shipping": null, "county_taxes": true, "plan_display_name": "haravan Plus", "plan_name": "enterprise", "myharavan_domain": "apple.myharavan.com", "google_apps_domain": null, "google_apps_login_enabled": null, "money_in_emails_format": "$", "money_with_currency_in_emails_format": "$ USD", "eligible_for_payments": true, "requires_extra_payments_agreement": false, "password_enabled": false, "has_storefront": true } }