> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Tariff

> Create a new Tariff record.

## Authentication

<Note>
  This endpoint requires OAuth2 authentication. Include a valid bearer token in the `Authorization` header.
  The authenticated user must be a full unrestricted administrator or have the **`Tariff-Create`** role.
</Note>

## Enums

<Accordion title="eTariffType — SystemTariffType values">
  | Value | Name                  |
  | ----- | --------------------- |
  | 1     | FullTimePrivateOffice |
  | 2     | PartTimePrivateOffice |
  | 3     | FullTimeDedicatedDesk |
  | 4     | PartTimeDedicatedDesk |
  | 5     | FullTimeHotDesk       |
  | 6     | PartTimeHotDesk       |
  | 7     | FullTimeOther         |
  | 8     | PartTimeOther         |
  | 9     | Storage               |
  | 10    | VirtualOffice         |
  | 11    | Virtual               |
  | 99    | Other                 |
</Accordion>

<Accordion title="eTariffBookingDueDateStrategy — BookingDueDateStrategy values">
  | Value | Name                |
  | ----- | ------------------- |
  | 1     | RenewalDate         |
  | 2     | BookingEndDate      |
  | 3     | BookingCreationDate |
  | 4     | NextNthOfMonth      |
</Accordion>

<Accordion title="eIdentityCheckProvider — AddressIdentityCheckProvider values">
  | Value | Name           |
  | ----- | -------------- |
  | 1     | Manual         |
  | 2     | StripeIdentity |
</Accordion>

<Accordion title="eIdentityCheckRepeatPattern — AddressIdentityCheckRepeatPattern values">
  | Value | Name          |
  | ----- | ------------- |
  | 1     | Never         |
  | 2     | Every3Months  |
  | 3     | Every6Months  |
  | 4     | Every12Months |
  | 5     | Every24Months |
</Accordion>

## Request Body

### Required Fields

<ParamField body="BusinessId" type="integer" required>
  Business Id.
</ParamField>

<ParamField body="Name" type="string" required>
  Tariff name.
</ParamField>

<ParamField body="SystemTariffType" type="integer" required>
  System tariff type. Defaults to `eTariffType.FullTimePrivateOffice`.
</ParamField>

<ParamField body="Price" type="number" required>
  Price.
</ParamField>

<ParamField body="CurrencyId" type="integer" required>
  Currency Id.
</ParamField>

<ParamField body="CancellationPeriod" type="integer" required>
  Cancellation period in days.
</ParamField>

<ParamField body="DisplayOrder" type="integer" required>
  Display order.
</ParamField>

<ParamField body="InvoiceEvery" type="integer" required>
  Invoice every N months.
</ParamField>

<ParamField body="InvoiceEveryWeeks" type="integer" required>
  Invoice every N weeks.
</ParamField>

<ParamField body="BookingDueDateStrategy" type="integer" required>
  Booking due date strategy. Defaults to `eTariffBookingDueDateStrategy.RenewalDate`.
</ParamField>

<ParamField body="AddressIdentityCheckProvider" type="integer" required>
  Address identity check provider. Defaults to `eIdentityCheckProvider.Manual`.
</ParamField>

<ParamField body="AddressIdentityCheckRepeatPattern" type="integer" required>
  Address identity check repeat pattern. Defaults to `eIdentityCheckRepeatPattern.Never`.
</ParamField>

<ParamField body="IdentityCheckProvider" type="integer" required>
  Identity check provider. Defaults to `eIdentityCheckProvider.Manual`.
</ParamField>

<ParamField body="IdentityCheckRepeatPattern" type="integer" required>
  Identity check repeat pattern. Defaults to `eIdentityCheckRepeatPattern.Never`.
</ParamField>

### Optional Fields

<ParamField body="DefaultInvoicingDay" type="integer">
  Default invoicing day.
</ParamField>

<ParamField body="Visible" type="boolean">
  Whether the tariff is visible.
</ParamField>

<ParamField body="UseTimePasses" type="boolean">
  Whether to use time passes.
</ParamField>

<ParamField body="Description" type="string">
  Description.
</ParamField>

<ParamField body="InvoiceLineDisplayAs" type="string">
  Invoice line display text.
</ParamField>

<ParamField body="SignUpFee" type="number">
  Sign-up fee.
</ParamField>

<ParamField body="TaxRateId" type="integer">
  Tax Rate Id.
</ParamField>

<ParamField body="ReducedTaxRateId" type="integer">
  Reduced Tax Rate Id.
</ParamField>

<ParamField body="ExemptTaxRateId" type="integer">
  Exempt Tax Rate Id.
</ParamField>

<ParamField body="FinancialAccountId" type="integer">
  Financial Account Id.
</ParamField>

<ParamField body="TermsAndConditions" type="string">
  Terms and conditions.
</ParamField>

<ParamField body="NewContractDocumentUrl" type="string">
  New Contract Document Url.
</ParamField>

<ParamField body="ClearContractDocumentFile" type="boolean">
  Clear Contract Document File.
</ParamField>

<ParamField body="GroupName" type="string">
  Group name.
</ParamField>

<ParamField body="DisablePortalCancellations" type="boolean">
  Disable portal cancellations.
</ParamField>

<ParamField body="SubscribersLimit" type="integer">
  Subscribers limit.
</ParamField>

<ParamField body="CancellationLimitDays" type="integer">
  Cancellation limit in days.
</ParamField>

<ParamField body="DefaultContractTerm" type="integer">
  Default contract term in months.
</ParamField>

<ParamField body="CancelMemeberAccountAfter" type="integer">
  Cancel member account after days.
</ParamField>

<ParamField body="CheckinPricePlanLimit" type="integer">
  Check-in price plan limit.
</ParamField>

<ParamField body="CheckinMonthLimit" type="integer">
  Check-in month limit.
</ParamField>

<ParamField body="CheckinWeekLimit" type="integer">
  Check-in week limit.
</ParamField>

<ParamField body="VisitorMonthLimit" type="integer">
  Visitor month limit.
</ParamField>

<ParamField body="VisitorWeekLimit" type="integer">
  Visitor week limit.
</ParamField>

<ParamField body="VisitorDayLimit" type="integer">
  Visitor day limit.
</ParamField>

<ParamField body="HoursPricePlanLimit" type="integer">
  Hours price plan limit.
</ParamField>

<ParamField body="HoursMonthLimit" type="integer">
  Hours month limit.
</ParamField>

<ParamField body="HoursWeekLimit" type="integer">
  Hours week limit.
</ParamField>

<ParamField body="BookingMinuteWeekLimit" type="integer">
  Booking minute week limit.
</ParamField>

<ParamField body="BookingMinuteMonthLimit" type="integer">
  Booking minute month limit.
</ParamField>

<ParamField body="DiscountExtraServices" type="number">
  Discount percentage for extra services.
</ParamField>

<ParamField body="DiscountTimePasses" type="number">
  Discount percentage for time passes.
</ParamField>

<ParamField body="DiscountCharges" type="number">
  Discount percentage for charges.
</ParamField>

<ParamField body="AutoCancelAfter" type="integer">
  Auto cancel after days.
</ParamField>

<ParamField body="AdvanceInvoiceCycles" type="integer">
  Advance invoice cycles.
</ParamField>

<ParamField body="ProrateDayOfMonth" type="integer">
  Prorate day of month.
</ParamField>

<ParamField body="ProrateDaysBefore" type="integer">
  Prorate days before.
</ParamField>

<ParamField body="ProrateCancellations" type="boolean">
  Prorate cancellations.
</ParamField>

<ParamField body="ChargeAndExtend" type="integer">
  Charge and extend days.
</ParamField>

<ParamField body="ExcludeFromInvoice" type="boolean">
  Exclude From Invoice.
</ParamField>

<ParamField body="AutoRaiseInvoices" type="boolean">
  Auto raise invoices.
</ParamField>

<ParamField body="RaiseInvoiceEvery" type="integer">
  Raise invoice every N months.
</ParamField>

<ParamField body="RaiseInvoiceEveryWeeks" type="integer">
  Raise invoice every N weeks.
</ParamField>

<ParamField body="MinimumPrice" type="number">
  Minimum price.
</ParamField>

<ParamField body="MinimumPriceIncludeTimePasses" type="boolean">
  Include time passes in minimum price.
</ParamField>

<ParamField body="MinimumPriceIncludeExtraServices" type="boolean">
  Include extra services in minimum price.
</ParamField>

<ParamField body="MinimumPriceIncludeEvents" type="boolean">
  Include events in minimum price.
</ParamField>

<ParamField body="Archived" type="boolean">
  Whether the tariff is archived.
</ParamField>

<ParamField body="Starred" type="boolean">
  Whether the tariff is starred.
</ParamField>

<ParamField body="KeepNewAccountsOnHold" type="boolean">
  Keep new accounts on hold.
</ParamField>

<ParamField body="CanBePaused" type="boolean">
  Whether the tariff can be paused.
</ParamField>

<ParamField body="PauseYearlyLimit" type="integer">
  Pause yearly limit.
</ParamField>

<ParamField body="PauseCyclesLimit" type="integer">
  Pause cycles limit.
</ParamField>

<ParamField body="BookingDueDateDayOfMonth" type="integer">
  Booking due date day of month.
</ParamField>

<ParamField body="IsVirtualOffice" type="boolean">
  Whether this is a virtual office tariff.
</ParamField>

<ParamField body="RequestAddressIdentityCheck" type="boolean">
  Request address identity check.
</ParamField>

<ParamField body="AddressIdentityCheckDescription" type="string">
  Address identity check description.
</ParamField>

<ParamField body="KeepPausedIfAddressMismatch" type="boolean">
  Keep paused if address mismatch.
</ParamField>

<ParamField body="RequestIdentityCheck" type="boolean">
  Request identity check.
</ParamField>

<ParamField body="IdentityCheckDescription" type="string">
  Identity check description.
</ParamField>

<ParamField body="SendOnBoardingFormByEmail" type="boolean">
  Send onboarding form by email.
</ParamField>

<ParamField body="FormPageId" type="integer">
  Form Page Id.
</ParamField>

<ParamField body="ProductsStore" type="integer[]">
  Products Store.
</ParamField>

<ParamField body="ProductsForward" type="integer[]">
  Products Forward.
</ParamField>

<ParamField body="ProductsRecycle" type="integer[]">
  Products Recycle.
</ParamField>

<ParamField body="ProductsShred" type="integer[]">
  Products Shred.
</ParamField>

<ParamField body="ProductsScan" type="integer[]">
  Products Scan.
</ParamField>

<ParamField body="ProductsReturn" type="integer[]">
  Products Return.
</ParamField>

<ParamField body="ProductsDeposit" type="integer[]">
  Products Deposit.
</ParamField>

<ParamField body="ProductsCollect" type="integer[]">
  Products Collect.
</ParamField>

<ParamField body="DeliveryPreferencesMail" type="string">
  Delivery preferences for mail.
</ParamField>

<ParamField body="DeliveryPreferencesParcels" type="string">
  Delivery preferences for parcels.
</ParamField>

<ParamField body="DeliveryPreferencesChecks" type="string">
  Delivery preferences for checks.
</ParamField>

<ParamField body="DeliveryPreferencesPublicity" type="string">
  Delivery preferences for publicity.
</ParamField>

<ParamField body="DeliveryPreferencesOther" type="string">
  Delivery preferences for other.
</ParamField>

<ParamField body="MaximumDeliveryStorageDays" type="integer">
  Maximum delivery storage days.
</ParamField>

<ParamField body="MaximumCompanyAliases" type="integer">
  Maximum company aliases.
</ParamField>

<ParamField body="MaximumRecipients" type="integer">
  Maximum recipients.
</ParamField>

<ParamField body="MaximumAddresses" type="integer">
  Maximum addresses.
</ParamField>

<ParamField body="TransferProductsToContract" type="boolean">
  Transfer products to contract.
</ParamField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST \
    "https://spaces.nexudus.com/api/billing/tariffs" \
    -H "Authorization: Bearer YOUR_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "BusinessId": 0,
      "Name": "",
      "SystemTariffType": 0,
      "Price": 0,
      "CurrencyId": 0,
      "CancellationPeriod": 0,
      "DisplayOrder": 0,
      "InvoiceEvery": 0,
      "InvoiceEveryWeeks": 0,
      "BookingDueDateStrategy": 0,
      "AddressIdentityCheckProvider": 0,
      "AddressIdentityCheckRepeatPattern": 0,
      "IdentityCheckProvider": 0,
      "IdentityCheckRepeatPattern": 0
  }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/billing/tariffs',
    {
      method: 'POST',
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        BusinessId: 0,
        Name: '',
        SystemTariffType: 0,
        Price: 0,
        CurrencyId: 0,
        CancellationPeriod: 0,
        DisplayOrder: 0,
        InvoiceEvery: 0,
        InvoiceEveryWeeks: 0,
        BookingDueDateStrategy: 0,
        AddressIdentityCheckProvider: 0,
        AddressIdentityCheckRepeatPattern: 0,
        IdentityCheckProvider: 0,
        IdentityCheckRepeatPattern: 0
      })
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      'https://spaces.nexudus.com/api/billing/tariffs',
      headers={
          'Authorization': 'Bearer YOUR_TOKEN',
          'Content-Type': 'application/json'
      },
      json={
          'BusinessId': 0,
          'Name': '',
          'SystemTariffType': 0,
          'Price': 0,
          'CurrencyId': 0,
          'CancellationPeriod': 0,
          'DisplayOrder': 0,
          'InvoiceEvery': 0,
          'InvoiceEveryWeeks': 0,
          'BookingDueDateStrategy': 0,
          'AddressIdentityCheckProvider': 0,
          'AddressIdentityCheckRepeatPattern': 0,
          'IdentityCheckProvider': 0,
          'IdentityCheckRepeatPattern': 0
      }
  )

  data = response.json()
  ```
</CodeGroup>

## Response

### 200

<ResponseField name="Status" type="integer">
  HTTP status code. `200` on success.
</ResponseField>

<ResponseField name="Message" type="string">
  A human-readable message confirming the creation.
</ResponseField>

<ResponseField name="Value" type="object">
  Contains the `Id` of the newly created record.
</ResponseField>

<ResponseField name="WasSuccessful" type="boolean">
  `true` if the tariff was created successfully.
</ResponseField>

<ResponseField name="Errors" type="array">
  `null` on success.
</ResponseField>

```json Example Response theme={null}
{
  "Status": 200,
  "Message": "Tariff was successfully created.",
  "Value": {
    "Id": 87654321
  },
  "OpenInDialog": false,
  "OpenInWindow": false,
  "RedirectURL": null,
  "JavaScript": null,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "UpdatedBy": "admin@example.com",
  "Errors": null,
  "WasSuccessful": true
}
```

### 400

<ResponseField name="Message" type="string">
  A summary of the validation error(s), in the format `PropertyName: error message`.
</ResponseField>

<ResponseField name="Value" type="any">
  `null` on validation failure.
</ResponseField>

<ResponseField name="Errors" type="object[]">
  Array of validation errors.

  <Expandable>
    <ResponseField name="AttemptedValue" type="any">
      The value that was submitted for the field, or `null` if missing.
    </ResponseField>

    <ResponseField name="Message" type="string">
      The validation error message.
    </ResponseField>

    <ResponseField name="PropertyName" type="string">
      The name of the property that failed validation.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="WasSuccessful" type="boolean">
  `false` when the request fails validation.
</ResponseField>

```json Example Response theme={null}
{
  "Message": "Name: is a required field",
  "Value": null,
  "Errors": [
    {
      "AttemptedValue": null,
      "Message": "is a required field",
      "PropertyName": "Name"
    }
  ],
  "WasSuccessful": false
}
```
