---
title: "Add Payment Order to Invoice"
method: PUT
path: "/invoices/{id}/payment_orders/{payment_order_id}"
---

# Add Payment Order to Invoice

`PUT /invoices/{id}/payment_orders/{payment_order_id}`

## Request

- Base URL: `https://app.moderntreasury.com/api`
- URL: `https://app.moderntreasury.com/api/invoices/{id}/payment_orders/{payment_order_id}`
- Auth: HTTP basic

Add a Payment Order to an Invoice. The invoice must be in the `unpaid` state and the payment order must have matching `originating_account_id`, `amount`, `currency` to the invoice and must be in the direction of a `debit`.

## Path parameters

- `id` string, required
- `payment_order_id` string, required

## Response `200`

200

- object

---

[API](https://skmtc.dev/modern-treasury/apis/modern-treasury-api.md) - [All operations](https://skmtc.dev/modern-treasury/apis/modern-treasury-api/llms.txt) - [OpenAPI document](https://skmtc.dev/modern-treasury/apis/modern-treasury-api/revisions/e31c6638c72e?raw)
