Vendor bills

Remove a payment from a vendor bill

Detaches a payment transaction from vendor bills, so the amount it covered becomes due again. Requires the vendor_bills:write permission.

DELETE
https://services.magicdoor.com/accounting/company-portal/vendor-bills/{vendorBillId}/payments/{transactionId}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

vendorBillIdstringrequired

Snowflake id of the vendor bill.

example: 1830472847398404200
transactionIdstringrequired

The payment transaction to detach.

example: 1830472847398404300

Response

204 · The allocations were removed. The response has no body. A transaction that was not allocated anywhere is also a 204.

401 · The access token is missing, expired, or not for this company.

403 · The caller does not hold the `vendor_bills:write` permission.

404 · No vendor bill with this id belongs to the caller's company, or it has been deleted.

The scope is the transaction, not the bill

vendorBillId is checked to belong to your company and to grant you access, but the removal itself is done by transaction: every vendor bill in the company that has an allocation for transactionId loses it, not just this one. The transaction itself is left alone — only the links to the bills are removed.