---
title: "Delete a set of credits."
method: DELETE
path: "/api/v2/organizations/{orgSlug}/credits/{creditsId}"
tags: ["Credits"]
---

# Delete a set of credits.

`DELETE /api/v2/organizations/{orgSlug}/credits/{creditsId}`

## Request

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

Delete a set of credits. 

 Required scopes: `flex.space.credits.delete`

## Path parameters

- `creditsId` string, required
- `orgSlug` string, required

## Response `200`

- CreditsResultDto
  - `_id` string: The _id of the set of credits.
  - `company` string: The _id of the company with which the set of credits are associated.
  - `member` string: The _id of the member with which the set of credits are associated.
  - `fee` string: The _id of the one-off fee with which the set of credits are associated.
  - `membership` string: The _id of the membership with which the set of credits are associated.
  - `intervalLength` 'month' | 'once': Determines the recurrence of the credits. Can be either "month" or "once". If unspecified the set of credits issued will be set as "once".
  - `startDate` string: The start date of the monthly recurring credits. Should be used only for the set of credits with "intervalLength" set to "month".
  - `endDate` string: The end date of the monthly recurring credits.
  - `validFrom` string: The start date from which the credits are valid.
  - `validTo` string: The end date for which the credits are valid. Can be set for both monthly recurring are once credits.
  - `validFor` 'rates' | 'resourceTypes' | 'all': The type of the credits and what they're valid for.
  - `resourceTypes` string[]: The resource types for which the credits is applied.
  - `bookings` CreditBookingsResultDto[]: An array of bookings for which the credits are used.
    - `count` number: The number of bookings the set of credits is applied for.
    - `booking` string: The _id of the booking for which the credits are used.
    - `occurrenceDate` string: The occurrence date of the booking.
  - `parent` string: The parent set of credits of the current set of credits.
  - `resourceRates` string[]: An array that contains the _ids of the resource rates for which the credits will be valid. If left empty the credits will be valid for all rates.
  - `count` number: The number of credits granted.
  - `usedCount` number: The number of credits used.

---

[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)
