---
title: "Extend Invoice duration"
method: POST
path: "/invoices/{captureId}/extend-duration"
tags: ["Captures"]
---

# Extend Invoice duration

`POST /invoices/{captureId}/extend-duration`

## Request

- Base URL: `https://paella-sandbox.billie.io/api/v2`
- URL: `https://paella-sandbox.billie.io/api/v2/invoices/{captureId}/extend-duration`
- Auth: OAuth 2
  - Password
  - Token URL: `/oauth/token`
- TypeScript: <https://skmtc.dev/billie/apis/billie-direct-api/docs/invoices/:captureId/extend-duration/post.ts> (a function with typed inputs; its response is checked against the schema)

**Purpose:**

Extends the payment terms relating to a past capture on behalf of your buyer. Please provide the new full length of the payment term. 

**Preconditions:** 

- `uuid` of the capture
- The correctly calculated new due date

**Success:**

- Response Code: `HTTP 204`

**Attention:**

- The new due date is the full amount of days from time of shipping to when the payment will be due.
- If the due date is extended from 30 days by another 30 days, the new due date will be `60`

## Path parameters

- `captureId` string, uuid, required

## Request body

- object
  - `duration` integer, required

## Response `204`

Invoice extended successfully

## Other responses

- `400`: Invalid Request Data
- `401`: Unauthorized request or invalid credentials
- `422`: Unprocessable Entity
- `500`: Unexpected Server Error

## Changes

- **2026-11-03** `29d6a8a63ff9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/billie/apis/billie-direct-api/changes/invoices/:captureId/extend-duration/post.md)

---

[API](https://skmtc.dev/billie/apis/billie-direct-api.md) - [All operations](https://skmtc.dev/billie/apis/billie-direct-api/llms.txt) - [OpenAPI document](https://skmtc.dev/billie/apis/billie-direct-api/revisions/29d6a8a63ff9?raw)
