---
title: "Update Payment Allocations"
method: PATCH
path: "/api/v1/accounts-payable/payments/{payment_id}/allocations"
tags: ["v1", "Accounts Payable"]
---

# Update Payment Allocations

`PATCH /api/v1/accounts-payable/payments/{payment_id}/allocations`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/accounts-payable/payments/{payment_id}/allocations`
- Auth: none declared

Replace a payment's allocations (and optional top-level project).

Body shape:
  {
    "project_id": int | null,                   # optional top-level project
    "allocations": [                            # optional; replaces all existing
      { "project_id": int, "amount": number, "manual_material_item_id": int | null },
      ...
    ]
  }
Either field may be present. Sending an empty allocations array clears them.

## Path parameters

- `payment_id` integer, required

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
