---
title: "Update Invoice"
method: POST
path: "/invoices/{captureId}/update-details"
tags: ["Captures"]
---

# Update Invoice

`POST /invoices/{captureId}/update-details`

**Purpose:**

Provides the external code relating to a capture (the invoice number in your backend) and URL to your invoice document (allowing Billie to obtain it) if not already provided under Create Capture. 

**Preconditions:** 

- `captureId`: The unique identifier of the capture

**Success:** 

- Response Code: `HTTP 204`

**Attention:**

- Invoice Number and Invoice File will be replaced by the new items if already sent in the Create Capture call or previous Update Capture calls.

## Path parameters

- `captureId` string, uuid, required

## Request body

- UpdateInvoiceRequest — Invoice Update Request
  - `external_code` string
  - `invoice_url` string

## Response `204`

Invoice successfully updated

## Other responses

- `400` — Invalid Request Data
- `401` — Unauthorized request or invalid credentials
- `404` — Resource Not Found
- `500` — Unexpected Server Error

---

[API](https://skmtc.net/billie/apis/billie-direct-api.md) · [All operations](https://skmtc.net/billie/apis/billie-direct-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/billie/billie-direct-api/revisions/8cce15617825/schema)
