---
search:
  tags:
    - billing
    - POST
seo:
  description: >-
    What does this do? Reorders the manual… Reference for the POST
    /billing/potential-invoices/{id}/manual-positions/sort endpoint in the
    Leadtime Public API API.
sidebar:
  badge: POST
  label: Reorder manual positions in potential invoice
title: Reorder manual positions in potential invoice
type: openapi-operation
---
**What does this do?**
Reorders the manual positions in a potential invoice. The positions will appear in the order specified by the items array.

**When to use:**
- To change the display order of manual positions on the invoice
- To group related positions together
- To organize positions in a logical sequence

**How it works:**
- Updates the sort order of manual positions stored in the potential invoice metadata
- Only custom manual positions (type: manual) can be reordered
- Project manual positions (from project snapshots) maintain their original order
- The items array should contain all position IDs in the desired order
- Positions not included in the array will be placed at the end

**Position requirements:**
- All position IDs in the items array must exist in the potential invoice
- Only custom manual positions can be reordered
- The array can include a subset of positions (others will be placed at the end)

**Invoice ID Format:**
The invoice ID follows the format: &#123;type&#125;::&#123;projectId&#125;::&#123;dateFrom&#125;::&#123;dateTo&#125;
- Example: SingleProject::0e9d033a-ab41-4212-8637-66c4e3b01fe2::2025-10-01::2025-10-31

**Permission requirements:**
Requires Invoices.manage permission and access to the project.

<Operation source="api-reference" id="potentialinvoicescontroller-savemanualpositionssort" />
