> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetSiteProperties

# Package: forms

# Namespace: FormStandaloneService

# Method link: https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/get-site-properties.md

## Permission Scopes:
View Forms: SCOPE.FORMS.VIEW-FORM

## Introduction

Retrieves the currency and locale of the site your request is authorized for.

Use these values to display prices and labels correctly when you render a standalone form. Results may be cached,
so recent changes to the site's settings might not appear right away.

---

## REST API

### Schema

```
 Method: getSiteProperties
 Description: Retrieves the currency and locale of the site your request is authorized for.  Use these values to display prices and labels correctly when you render a standalone form. Results may be cached, so recent changes to the site's settings might not appear right away.
 URL: https://www.wixapis.com/forms/v4/standalone-forms/site-properties
 Method: GET
 Return type: GetSitePropertiesResponse
  - name: siteProperties | type: StandaloneMetaSiteProperties | description: Site's currency and locale.  
     - name: paymentCurrency | type: string | description: Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.  Empty if the site's payment currency isn't set.  
     - name: localeLanguageCode | type: string | description: Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.  Empty if the site's locale isn't set.  | validation: maxLength 2
     - name: localeCountry | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.  Empty if the site's locale isn't set.  | validation: maxLength 2

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: SITE_PROPERTIES_NOT_FOUND | Description: Couldn't find the site properties.


```

### Examples

### Get site properties
Retrieves the site's currency and locale.

```curl
curl -X GET \
'https://www.wixapis.com/forms/v4/standalone-forms/site-properties' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.standaloneForms.standaloneForms.getSiteProperties()
 Description: Retrieves the currency and locale of the site your request is authorized for.  Use these values to display prices and labels correctly when you render a standalone form. Results may be cached, so recent changes to the site's settings might not appear right away.
 Return type: PROMISE<GetSitePropertiesResponse>
  - name: siteProperties | type: StandaloneMetaSiteProperties | description: Site's currency and locale.  
     - name: paymentCurrency | type: string | description: Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.  Empty if the site's payment currency isn't set.  
     - name: localeLanguageCode | type: string | description: Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.  Empty if the site's locale isn't set.  | validation: maxLength 2
     - name: localeCountry | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.  Empty if the site's locale isn't set.  | validation: maxLength 2

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: SITE_PROPERTIES_NOT_FOUND | Description: Couldn't find the site properties.


```

### Examples

### Get site properties
Retrieves the site's currency and locale.

```javascript
import { standaloneForms } from "@wix/standalone-forms";

async function getSiteProperties() {
  const response = await standaloneForms.getSiteProperties();
}

/* Promise resolves to:
 * {
 *   "siteProperties": {
 *     "paymentCurrency": "EUR",
 *     "localeLanguageCode": "en",
 *     "localeCountry": "GB"
 *   }
 * }
 */

```

### getSiteProperties (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { standaloneForms } from '@wix/standalone-forms';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { standaloneForms },
  // Include the auth strategy and host as relevant
});


async function getSiteProperties() {
  const response = await myWixClient.standaloneForms.getSiteProperties();
};
```

---