> 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
# GetPolicy
# Package: eventManagement
# Namespace: PolicyManagement
# Method link: https://dev.wix.com/docs/api-reference/business-solutions/events/event-management/policies-v2/get-policy.md
## Permission Scopes:
Read Policies: SCOPE.DC-EVENTS.READ-POLICIES
## Introduction
Retrieves a policy.
---
## REST API
### Schema
```
Method: getPolicy
Description: Retrieves a policy.
URL: https://www.wixapis.com/events/v2/policies/{policyId}
Method: GET
# Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
Required parameters: policyId
Method parameters:
param name: policyId | type: none | required: true
Return type: GetPolicyResponse
- name: policy | type: Policy | description: Retrieved policy.
- name: id | type: string | description: Policy GUID.
- name: revision | type: string | description: Revision number, which increments by 1 each time the policy is updated. To prevent conflicting changes, the current revision must be used when updating a policy.
- name: createdDate | type: string | description: Date and time the policy was created in `yyyy-mm-ddThh:mm:sssZ` format.
- name: updatedDate | type: string | description: Date and time the policy was updated in `yyyy-mm-ddThh:mm:sssZ` format.
- name: name | type: string | description: Policy name that is visible in the dashboard and checkout form. Min: 1 character
Max: 40 characters
- name: body | type: string | description: Policy body. Usually contains various terms and conditions. Min: 1 character Max: 50,000 characters Note: You can format text using various HTML tags such as `
`, ``, ` `, ``, ` Nobody will be allowed admission to the Event without a valid ticket or pass.`, etc.
- name: eventId | type: string | description: GUID of the event to which the policy belongs.
```
### Examples
### Get Policy
```curl
curl -X GET 'https://www.wixapis.com/events/v2/policies?7243931d-74e4-4d6a-91f0-4835fa79161e' \
-H 'Authorization:
Max: 40 characters
- name: body | type: string | description: Policy body. Usually contains various terms and conditions. Min: 1 character Max: 50,000 characters Note: You can format text using various HTML tags such as ``, etc.
- name: eventId | type: string | description: GUID of the event to which the policy belongs.
```
### Examples
### Get Policy
```javascript
import { policies } from '@wix/events';
// define policy ID
const policyId = '6933ddf1-26c7-46c3-9924-e78c833d6cca';
// get policy
async function getPolicy() {
try {
const result = await policies.getPolicy(policyId);
return result;
}
catch (error) {
console.error(error);
// Handle the error
}
};
/* Returns a promise that resolves to
the policy.
{
"_id": "6933ddf1-26c7-46c3-9924-e78c833d6cca",
"revision": "1",
"_createdDate": "2023-03-07T13:18:09.185Z",
"_updatedDate": "2023-03-07T13:18:09.185Z",
"name": "Terms and Conditions Event 2",
"body": "