---
title: "Create a routing."
method: POST
path: "/finance/v0-nsfw/routings"
tags: ["Routing"]
---

# Create a routing.

`POST /finance/v0-nsfw/routings`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/finance/v0-nsfw/routings`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `routings.create`, `routings.manage`, `admin`

<br>You must have at least one of these scopes: 'routings.create, routings.manage'.<br>For fine-grained clients, you must have this permission: 'core.routings.create'.

## Headers

- `Idempotency-Key` string

## Request body

- CreateRoutingModel: With this request you can create a routing
  - `bookingId` string, required: The ID of the booking
  - `propertyId` string, required: The ID of the property
  - `filter` CreateRoutingFilterModel
    - `folioIds` string[], nullable: The folio ids to filter by
    - `subAccountIds` string[], nullable: The subaccount ids to filter by
    - `serviceTypes` string[], nullable: The service types to filter by
    - `serviceIds` string[], nullable: The service ids to filter by
    - `from` string, date, nullable: The start date to filter by
    - `to` string, date, nullable: The end date to filter by
  - `destinationFolioId` string, required: The ID of the destination folio

## Response `201`

Routing successfully created.

- RoutingCreatedModel
  - `id` string, required: The ID of the routing

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `415`: Unsupported media type.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-finance-api-not-safe-for-work.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-finance-api-not-safe-for-work/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-finance-api-not-safe-for-work/revisions/72cbd31f02f4?raw)
