---
title: "Replace all invoices"
method: PUT
path: "/invoices"
---

# Replace all invoices

`PUT /invoices`

## Request

- Base URL: `https://gateway.pmnts-sandbox.io/v1.0`
- URL: `https://gateway.pmnts-sandbox.io/v1.0/invoices`
- Auth: HTTP basic

**Note: This action will replace all existing invoices.**

## Request body `text/csv`

- string: Raw CSV body, no header row. Each line: reference,description,currency,amount,payable

## Response `200`

200

- object
  - `successful` boolean
  - `response` object
    - `uuid` string
    - `status` string
  - `errors` unknown[]
    - unknown
  - `test` boolean

## Other responses

- `400`: 400 — empty body, malformed CSV, or a row without exactly 5 columns

## Changes

- **2026-11-03** `a62ddbae3800`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fatzebra/apis/gateway/changes/invoices/put.md)

---

[API](https://skmtc.dev/fatzebra/apis/gateway.md) - [All operations](https://skmtc.dev/fatzebra/apis/gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/fatzebra/apis/gateway/revisions/a62ddbae3800?raw)
