---
title: "Add a new set of day passes"
method: POST
path: "/api/v2/organizations/{orgSlug}/passes"
tags: ["Passes"]
---

# Add a new set of day passes

`POST /api/v2/organizations/{orgSlug}/passes`

## Request

- Base URL: `https://app.officernd.com`
- URL: `https://app.officernd.com/api/v2/organizations/{orgSlug}/passes`
- Auth: OAuth 2
  - Authorization code: `https://identity.officernd.com/auth/authorize`
  - Client credentials
  - Token URL: `https://identity.officernd.com/auth/token` scopes: `flex.space.passes.create`

Add a new set of day passes 

 Required scopes: `flex.space.passes.create`

## Path parameters

- `orgSlug` string, required

## Request body

- AddPassesDto
  - `startDate` string, date-time, required: The start date of the monthly recurring passes. Should be used only for credits with "intervalLength" set to "month".
  - `count` number, required: The number of passes granted.
  - `intervalLength` number, required: Determines the recurrence of the passes. Can be either "month" or "once". If unspecified the credits issued will be set as "once".
  - `endDate` string, date-time: The end date of the monthly recurring passes. Should be used only for credits with "intervalLength" set to "month".
  - `company` string: The _id of the company with which the passes are associated.
  - `member` string: The _id of the member with which the passes are associated.
  - `isPersonal` boolean, required: Shows if the set of passes is for a single member or if its shared for a company.
  - `resourceType` string, required: The type of the resource associated to the set of passes.

## Response `201`

- PassesResultDto
  - `_id` string: The _id of the set of passes.
  - `count` number: The number of passes granted.
  - `usedCount` number: The number of used passes.
  - `intervalLength` number: Determines the recurrence of the passes. Can be either "month" or "once". If unspecified the credits issued will be set as "once".
  - `startDate` string, date-time: The start date of the monthly recurring passes. Should be used only for credits with "intervalLength" set to "month".
  - `endDate` string, date-time: The end date of the monthly recurring passes. Should be used only for credits with "intervalLength" set to "month".
  - `renewDate` string, date-time: The renew date of the monthly recurring passes. Should be used only for credits with "intervalLength" set to "month".
  - `validFrom` string, date-time: The start date from which the passes are valid.
  - `validTo` string, date-time: The end date for which the passes are valid.
  - `company` string: The _id of the company with which the passes are associated.
  - `member` string: The _id of the member with which the passes are associated.
  - `isPersonal` boolean: Shows if the set of passes is for a single member or if its shared for a company.
  - `membership` string: The _id of the membership with which the passes are associated.
  - `fee` string: Shows if the set of fee is for a single member or if its shared for a company.
  - `shouldGrantActiveStatus` boolean: Shows if the set of passes grants active status to members that do not have active memberships.
  - `resourceType` string: The type of the resource associated to the set of passes.
  - `status` 'used' | 'valid' | 'expired' | 'pending': The status of the set of passes.
  - `createdAt` string, date-time: The date and time of the creation of the set of passes.
  - `createdBy` string: The user that created the set of passes.
  - `modifiedAt` string, date-time: The date and time of the last update the set of passes.
  - `modifiedBy` string: The user that last updated the set of passes.

---

[API](https://skmtc.dev/officernd/apis/space-api.md) - [All operations](https://skmtc.dev/officernd/apis/space-api/llms.txt) - [OpenAPI document](https://skmtc.dev/officernd/apis/space-api/revisions/f7e2e1e4ba60?raw)
